Home Forums Software InstaDMG Problems installing Flash Player

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #381493
    macanics
    Participant

    I’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—

    #381494
    Greg 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.

    #381495
    macanics
    Participant

    Yes, 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…

    #381496
    macanics
    Participant

    All 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]

    #381498
    bw38
    Participant

    I 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.

    #381499
    macanics
    Participant

    I don’t have Composer unfortunately. Is there a free/open source alternative for snapshotting?

    #381500
    Allister Banks
    Participant

    PackageMaker, bundled with ARD or apple’s dev tools(Xcode)
    At least two other, older products do it as well.
    Allister

    #381501
    bw38
    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.html

    #381502
    bw38
    Participant

    Can’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.

    #381513
    macanics
    Participant

    Thanks to all for the help.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.

Comments are closed