Re: Renaming application and the relocatable flag on upgrade
On Tue, Mar 6, 2012 at 8:25 AM, Jaroslav Ć najdr <jsnajdr@kerio.com> wrote:
Hello everyone,
we have an application that, in current version, is named OldApplication.app and is installed under this name to /Applications by our PackageMaker package.
Now we'd like to rename the app to "NewApplication.app" in the new version. However, the upgrade turns out to be a little problematic.
a) If the package allows relocation, then the installer finds an already installed version in /Applications/OldApplication.app. It decides to relocate the installation to that directory. That means that the app remains installed with the old bundle name.
b) If I turn off the relocation, then the app is installed correctly into /Applications/NewApplication.app. However, the old version remains installed as /Applications/OldApplication.app. The only solution I see is to delete the old version by the postflight script. And of course, if the previous version was installed in a custom location, the installer won't find it. The benefits of relocation are lost.
What I would like to see is the best of both options: leave the relocation on, but please rename the bundle to the new name. Is that possible?
2 possible solutions: You just change the name of the application and not the name of the files. That is, you use the InfoPlist.strings file to "localize" the name of the application with the new name. or You rename the application within the postinstall script attached to the application bundle. $2 is the location of your app. Side note: Deleting the previous version during the preinstall script won't give the expected result. Hope this can help. _______________________________________________ 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
participants (1)
-
Stephane Sudre