Re: Renaming application and the relocatable flag on upgrade
Re: Renaming application and the relocatable flag on upgrade
- Subject: Re: Renaming application and the relocatable flag on upgrade
- From: Jaroslav Ć najdr <email@hidden>
- Date: Wed, 07 Mar 2012 11:32:15 +0100
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.
Hello Stephane,
thanks for the suggestions. I prefer solution number two, because it solves the rename problem once and for all, not leaving us with any historical baggage.
After implementing, it works perfectly. However, there is one error message in the install.log that indicates that there might be something wrong:
installd[634]: PackageKit: Writing receipt for com.example.myapplication.pkg to /private/var/db/receipts
installd[634]: Error -43 getting LS info for file://localhost/Applications/OldApplication.app
installd[634]: Installed "New Application" ()
After the OldApplication.app has been renamed to NewApplication.app, the installer still tries to find something in the app bundle under the old name.
Any idea what this error means and whether we can safely ignore it?
Deleting the previous version during the preinstall script won't give the expected result.
Why?
Jarda
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden