Re: Renaming application and the relocatable flag on upgrade
On Wed, Mar 7, 2012 at 11:32 AM, Jaroslav Šnajdr <jsnajdr@kerio.com> wrote:
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?
-43 looks like the old Mac OS Toolbox error when a file can not be found. So it probably just means that the LaunchServices API used to get information about the app that has been deleted can not find the file. Now, can it be ignored? I would tend to believe it can. To confirm this, it could be interesting to check what pkgutil says about the receipt for your package.
Deleting the previous version during the preinstall script won't give the expected result.
Why?
This deleted the old version and did not install the new one when I tested it. _______________________________________________ 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