Upgrade problems
Upgrade problems
- Subject: Upgrade problems
- From: Yun Zhi Lin <email@hidden>
- Date: Mon, 27 Aug 2007 18:33:29 +0800
Hi all
I encounter a problem with upgrading my application.I search the mail list but not found any solution. Can anyone give me your suggestion about this?
Thanks in advanced.
I have both postinstall and postupgrade scripts in my package, and I do different things in the scripts.
During installation, the Install.app determines if the installation is a clean install or upgrade based on the Receipts.
The problem is:
If users have installed the package before, then they removed the application,but not remove the receipt.
During the second time they try to install the package, the Install.app would regard this as an upgrade, it runs postupgrade instead of postinstall.
This is not my expected result. Since the application has been removed from local system, the postinstall should be run to configure the app.
I have considered two ways to solve this problem,both of which seem not quite good:
1. merge the postinstall and postupgrade together , and determine the expected behaviour by code.
2. remove the receipt in the postflight.then it will always be postinstall
This problem always happens if there are differences between postinstall and postupgrade scripts. Most users on Mac uninstall applications by dragging the bundle to Trash, and the receipts are left on local system.
Any suggested solution?
_______________________________________________
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