On Sat, Mar 4, 2017 at 2:33 AM, Stephen Kay <sk@karma-lab.com> wrote:
I'm replacing a MindVision VISE X installer with Packages...
My (ancient) app is installed in a folder in the /Applications directory (I know, this is not the ideal way) but in any case, it was a simple task in VISE to specify that the app folder be opened after installation.
I gather that with Packages you would do this via a Post-installation shell script on the application's package.
I'm not very skilled with shell scripts, can any of you geniuses share how to find the folder (when you don't know for sure where it might be installed) and pass the result to the 'open' command?
This can be done by attaching a post-installation script to the bundle of the application in the payload and using the $2 parameter (which is the location of the application). What can be done in the script is: - do nothing if the installation is not done via the UI: -> check the COMMAND_LINE_INSTALL en var. - open the folder %2/.. using the current user -> http://s.sudre.free.fr/Stuff/Installer/Installation_Scripts/InstallationScri... -if necessary, it might be possible to only do this on the first installation but I don't remember whether the following solution works as-is for bundle scripts: http://s.sudre.free.fr/Software/Packages/Q&A_5.html To attach the script to the app bundle: http://s.sudre.free.fr/Software/documentation/Packages/en/Package_Payload.ht... _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com