Detecting upgrade in postinstall
Detecting upgrade in postinstall
- Subject: Detecting upgrade in postinstall
- From: sakshi <email@hidden>
- Date: Thu, 5 Aug 2010 00:50:47 +0530
Sorry if these have been answered before.
I am creating a distribution package with 10.5 compatibility using PackageMaker.
1. I do not have option of writing preupgrade/postupgrade scripts. I
am guessing preflight and postflight have been updated to be the new
preinstall and postinstall. How do I differentiate between install and
upgrade in my postinstall script?
2. How does one component package become aware that another component
package was not selected during installation? I need to perform an
action if a particular choice is deselected. I am thinking: create a
hidden choice that is off by default. Its selection should be set to
be the opposite of the one I want to track. Perform the action in the
hidden choice. Does this sound right? I tried toggling the states
using the Requirements tab of the choice but it does not seem to work.
Is there a way to do this?
Thanks!
Sakshi
_______________________________________________
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