site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Hello list, I have some problems with PackageMaker and I can't find the answer. I have spent some time now going through the archives, reading Apple's delivery guide and experimenting but still nothing. I'm using PackageMaker 3.0.4 on Snow Leopard 10.6.2. My questions/problems are: 1. How can I tell from a preinstall script, whether this is a fresh install or an upgrade? I need to distinguish these two so I can stop/unload my deamons before upgrading them. I have checked the environment and parameters passed to the scripts, but there is nothing. Older versions of PackageMaker were able to specify also preupgrade and postupgrade scripts. Do I need to check for older version of the receipt again manually in preinstall/postinstall? 2. Can I somehow tell installer during an upgrade, that a system reboot is needed after the end of installation? I'm installing a KEXT, so the older version sometimes can't be unloaded as it may be referenced by the kernel. In this case a system reboot is needed to get the new version loaded. The thing is, that with clean install, or when the unload succeeds, the reboot is not needed. That is why I don't want to set it as an action for the package. 3. I have run some tests with installing simple darwin command-line tool. I made two versions of the binary and two installers. One has a package version set to 1.0 and the other to 2.0. There is no Info.plist, just one executable in every installer. Therefore there are no components displayed in PackageMaker so I can't check/uncheck the allow donwgrade checkbox. Now if I run the installer with version 2.0, it installs the package and writes the receipt with version 2.0. Then if I run the installer with version 1.0, it just replaces the binary and rewrites the receipts with version 1.0 :-( Can anyone please help me solve this problems? Thanks a lot, Jakub _______________________________________________ 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