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:received:received:mime-version:in-reply-to :references:content-type:message-id:content-transfer-encoding:from :subject:date:to:x-mailer; bh=PEj2Qf7qwL/WMxahrPWPdoBeKmNgeq08ymQtRqynC+4=; b=KjyMMIn4OHjD6kJh1gcpUef73FRT7ZUtz/3wJvDZqX6fAruPbq2WihkHL4c19/JHDi Yf3bI19Sez5SSCPJDwb8T98UFd1b+eEd8+gqC+K7sS3ky8DA978L35NtSZzAT+23U0Vy sP+moYTEpxpiGmXmksJ7o1oCnGbbffO9P6ml0= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:content-type:message-id :content-transfer-encoding:from:subject:date:to:x-mailer; b=QAKNnEP+4uB/17pVI2XXW3LqiaccOGZELUu+9f5824uPnuWF/I10/aao7fG7FQR/1Z 36NTjQxfgji9wjDKEBHJdnkA8Bs5xkXn861dLwpr2vRH+QoJUNkXc+ZBlWUnFbQQVHmK C57VZLjzVRvbkx0cul6NY05sF6fMpK361h424= On Feb 21, 2010, at 8:42 PM, Matt Ronge wrote: On Feb 18, 2010, at 4:14 PM, Iceberg-Dev wrote: On Feb 18, 2010, at 3:08 AM, Matt Ronge wrote: Hi, _______________________________________________ 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... I'm having a strange problem with PackageMaker. My installer makes sure an app (Mail in this case) is not running, and if it does, quits it. I used the Actions tab of PackageMaker to build this action. It is a "Get App" attached to a "Quit App". Now here is where it gets strange... If build the installer with PackageMaker.app, it works great. If Mail is running it quits it and proceeds with with installation. HOWEVER if I build the installer with the command line tool /Developer/usr/bin/ packagemaker, it installs but it WON'T quit Mail if it's running. It just leaves it running and does the install anyway. Why the difference in behavior? I use this to build on the cmd line: "/Developer/usr/bin/packagemaker -d installer/ myinstaller.pmdoc -o build/MyInstaller.pkg" Have you checked if there's any difference between the package you get when you use the UI and the one you get when you use the command line? I extracted the contents of both packages using Pacifist. The one built using the UI has a preflight.pkg inside of it, while the command line one doesn't. So they are very clearly different. Has anyone seen this before? The xxxxpreflight.pkg package is a trick. Basically, it's an empty payload package with the postinstall actions. Maybe a possible workaround would be to use the postinstall option in the Scripts tab of the package settings. You can always extract the scripts used by PackageMaker for the actions (Pacifist is the easiest solution for this). This email sent to site_archiver@lists.apple.com