- This topic has 9 replies, 4 voices, and was last updated 13 years, 3 months ago by
macanics.
-
AuthorPosts
-
December 14, 2011 at 3:56 pm #381493
macanics
ParticipantI’m trying to get the Adobe Flash Player pkg (extracted from within the enterprise installer) to install. As I’d read elsewhere, it won’t work just adding the pkg to the InstaDMG build (the prefpane gets added, but not the plugins). I saw a recommendation to run the installation from the firstboot script. I created a pkg to drop the Flash Player pkg into /private/tmp as part of the build, and that seems to work OK, as I can see it’s there when I examine the built image. However, attempting to run and then delete the package with the following commands in the script fails with installer reporting “no file found” in the system logs, and the rm fails too for the same reason.
[code]…
installer=”/usr/sbin/installer”
…
# Install Flash, as InstaDMG does not seem to run the current pkg correctly
$installer -pkg “/private/tmp/Adobe Flash Player.pkg” -target /
rm -R “/private/tmp/Adobe Flash Player.pkg”
…
[/code]So am I putting the file in an inappropriate location for this? The installer command works fine when executed from the mounted dmg of the build.
cheers, —john—December 14, 2011 at 6:06 pm #381494Greg Neagle
Participant/private/tmp is usually cleared out on boot, so most likely the file is not found because it was deleted on the first boot of the newly imaged machine.
Consider using a different place to cache the package.December 14, 2011 at 6:54 pm #381495macanics
ParticipantYes, that makes a deal of sense. Is there any other file system location that’s commonly used as a temporary folder? I’d like to play by the rules, if there are any…
December 15, 2011 at 4:27 pm #381496macanics
ParticipantAll now sorted. In case it’s of benefit to others here’s what I did:
1) Extracted Adobe Flash Player.pkg from the /Contents/Resources/ folder within ‘Install Adobe Flash Player.app’ downloaded from the enterprise website
2) Created a text file ‘mms.cfg’ with just the following line:
[code]AutoUpdateDisable=1[/code]
3) Created a package in Iceberg that drops /private/var/tmp/Adobe Flash Player.pkg and /Library/Application Support/Macromedia/mms.cfg
4) Added the following to first boot.sh:
[code]…
installer=”/usr/sbin/installer”
fileTmpDir=”/var/tmp”
…
# Install Flash
$installer -pkg “$fileTmpDir/Adobe Flash Player.pkg” -target /
rm -R “$fileTmpDir/Adobe Flash Player.pkg”
…[/code]December 16, 2011 at 12:03 am #381498bw38
ParticipantI simply re-packaged Adobe Flash using Composer. It was pretty straight forward (did a before and after snapshot) to package and include in the InstaDMG image.
December 16, 2011 at 12:26 am #381499macanics
ParticipantI don’t have Composer unfortunately. Is there a free/open source alternative for snapshotting?
December 16, 2011 at 12:12 pm #381500Allister Banks
ParticipantPackageMaker, bundled with ARD or apple’s dev tools(Xcode)
At least two other, older products do it as well.
AllisterDecember 16, 2011 at 1:49 pm #381501bw38
Participant• JAMF Composer – h*tp://www.jamfsoftware.com/products/composer
• InstallEase – h*tp://www.lanrev.com/solutions/package-building.html
• Apple PackageMaker – h*tp://developer.apple.com/xcode/
• IceBerg – h*tp://s.sudre.free.fr/Software/Iceberg.html
• Packages – h*tp://s.sudre.free.fr/Software/Packages/about.htmlDecember 16, 2011 at 1:56 pm #381502bw38
ParticipantCan’t seem to get around spam filter. There is another program which I can’t seem to type out due to the spam filter which is also free.
EDIT: The list of programs are here: h*tp://docs.google.com/leaf?id=0B076ltIv-IH-N2YzYWNiNTgtZDVlMS00NDJkLWE2ZmYtMWZmZGQ4Yjg2Y2Ux&hl=en_US
Page 26 includes the 6th program I couldn’t post.December 21, 2011 at 4:34 pm #381513macanics
ParticipantThanks to all for the help.
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed