I am trying to create a bash script that automates all parts of a .dmg/pkg software install.
For example, the script should pull the installer from here: http://download.techsmith.com/snagitmac/enu/Snagit.dmg
It should pull the installer from online, run the installer, automatically proceed past all the user prompts, and run root so the user should just have to run the script.
Is there anyway to make the snag it installer proceed without human interaction and finish the installer via this script?
This is the script I have so far:
#!/bin/bash -e cd ~/Desktop curl -O http://download.techsmith.com/snagitmac/enu/Snagit.dmg