Detecting upgrade in postinstall
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=/81gImEB3SWsyb+PWoR6Qd0aVqnb1x/VzocyVD98nXw=; b=C8n2jmeNpKjoXC1Gn0rL9+nR4cl/rLsKT73A+VxuVO1OETvZYRfg02ian5TqGVaDI5 +Ii8ZSSWcWRH8MQKkOwTb4JMb+AA7UOfdBuLIoOch/UL5uCJCc6Oj0mcT1t1fNk2RbKa AwFgPSyxIuPi7/gINAWEb7McpvAwqlOd1RAnU= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=xzrpvnzKNkd3VWiNLGDPsRfYPDOmJl7aIaAgcoMnfn01tDUx0R4mc8agCU8r+SmLt/ 0dFxmSqNCLFOr+AwG0O+TepxOUSZKh8ebMhEcHPh54ocgu+uofH2hcMDBerDmC6zplS0 FkHYlGyPpsX/+RckqhKqUWNLq1aBhSblflmac= 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
sakshi