Don,
IIRC the post install scripts are shell scripts. email@hidden would be a better place to ask this question.
Would it be more friendly to your users to duplicate the file as an operation upon first launch of your app?
Two reasons why this might be preferable are
1: You may not have permissions to rename the current file, 2: If your user reverts to your previous version the old support file will now be missing if it has been renamed.
(1) is unlikely since I think post install scripts run as a root user, however (2) could result in a support call, especially if you user cannot perform the task he wants in the new version of your application.
What is this file you want to rename? Does it have to be done prior to launching your app? If it's a static file, could you just install the new one?
- Douglas
On Aug 6, 2012, at 1:49 PM, Donald Hall wrote: The PackageMaker documentation doesn't state what kinds of scripts I can use as a post install script.
Does it have to be a shell script or can I use AppleScript? I need to change the name of a support file on the systems of my existing clients and I have an AppleScript script that does this. I'd like to automatically run it after my app is installed.
Could I use the "Open File" post install Action to do this if I made the script an application?
Thanks, Don
------------ Don Hall Apps & More Software Design, Inc. email@hidden
|