Very interesting thread. :) The goal appears to be to produce a PKG or MPKG zero-touch installer for a typical drag-install application (in this example Firefox). The requirements of the PKG or MPKG: 1. Installer needs to check that target Mac meets requirements: http://www.mozilla.org/en-US/firefox/13.0/system-requirements/ Operating Systems • Mac OS X 10.5 • Mac OS X 10.6 • Mac OS X 10.7 Recommended Hardware • Macintosh computer with an Intel x86 processor • 512 MB of RAM • 200 MB hard drive space 2. Find and kill process if it's running (appears to be named "Firefox") 3. Remove the existing /Applications/Firefox.app application. 4. Install the new /Applications/Firefox.app application. At the end of the day, need a zero-touch package (can be double-clicked, or pushed via ARD/Casper/SSH). For continuity the resulting *.pmdoc would be reused when Firefox updates are released so new package can be created. PackageMaker 3.0.4 is being used on a Mac running 10.6, logged in as local admin user. Wanted to jump in to make sure the requirements and goals were clearly outlined, hoping the above could be a simple, easy to document and repeatable process. Seems like there might be some bugs in PackageMaker? :) Thanks, Don vishnu kulkarni <vishnu5876@gmail.com> wrote:
Hi Stephane,
Below details i get from installer log when the script is included with the package. I tried modifying the dist file but to no avail. Any suggestions to get it running? I have been modifying the distribution.dist file using text edit.
One more question I have is , How to use Actions menu within packagemaker?
Jun 27 18:06:29 cgmacjss installd[5799]: PackageKit: ----- Begin install ----- Jun 27 18:06:31 cgmacjss installd[5799]: PackageKit: Install Failed: PKG: pre-flight scripts for "com.wb.firefoxtest.Firefox.pkg"\nError Domain=PKInstallErrorDomain Code=112 UserInfo=0x100118c80 "An error occurred while running scripts from the package “firefox.pkg”." {\n NSFilePath = "./preflight";\n NSLocalizedDescription = "An error occurred while running scripts from the package \U201cfirefox.pkg\U201d.";\n NSURL = "./Contents/Packages/firefox.pkg -- file://localhost/Users/admin/Documents/Firefox.test5.mpkg/";\n PKInstallPackageIdentifier = "com.wb.firefoxtest.Firefox.pkg";\n}
Stephane Sudre <dev.iceberg@gmail.com> wrote:
vishnu kulkarni <vishnu5876@gmail.com> wrote:
Hi Stephane,
Thanks for explanation. But if i include only memory requirement, it does not create any dist file. When I add Disk space requirement and include a preflight script along with the package it fails while installing. If I do not include the script it works fine or vice versa, If i include script and removed disk space requirement it works. I think it's something to do with the dist file. I have pasted just a line from the dist file, I tried changing it though. But i guess you might help me out .
options customize="never" allow-external-scripts="no" ( Script fails because of this ? ) Do i need to allow external scripts to run?
rootVolumeOnly="true"/> <installation-check script="pm_install_check();"/> <volume-check script="pm_volume_check();"/>
If you're calling an external shell script from the installation- or volume-check scripts, yes you need to allow external scripts. Even if the shell script ends up being embedded in the distribution.
_______________________________________________ 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: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com