Home Forums Software InstaDMG CS5 + NEW AdobeEnterpriseDeployment + InstaDMG

Viewing 15 posts - 1 through 15 (of 44 total)
  • Author
    Posts
  • #378675
    vogtstev
    Participant

    Greetings!

    I downloaded the Adobe CS5 Enterprise Deployment Tool yesterday which totes that it will make the crazy Adobe installers into pkg’s! YES!
    http://www.adobe.com/devnet/creativesuite/enterprisedeployment.html

    So, I gave it a shot. The repackaging was a breeze and I was actually kind of impressed with Adobe. (Yes I said that! )
    I can even use the package and manually install them on machines. So far so good.

    Alas, the problem came when I dropped them in InstaDMG. They are failing on what looks like a preflight script. I wanted to post this here to see if anyone had similar issues or found a workaround. In my next two posts I will post some logs so each post is easier to read.

    Let me know if you have any ideas. If this works, it will be what we’ve been waiting for from Adobe!

    Thanks!

    #378676
    vogtstev
    Participant

    Adobe Photoshop Installation section of debug log (Same happens for all CS products that I’ve tried):

    Working on folder 07 (17:33:58)
    Installing photoshopcs5_Install.pkg from ./InstallerFiles/CustomPKG/07 (07)
    Package name is Adobe Setup
    Installing at base path /private/tmp/InstaDMG_temp_folder.D9bsiJ/mount_point.6VV8Tc
    PHASE:Preparing for installation…
    -[IFPKGDerivedDocument sortedPackageLocations]: result = (
    “file://localhost”
    )
    -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
    -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/InstaDMG/./InstallerFiles/CustomPKG/07/photoshopcs5_Install.pkg
    Will use PK session
    Starting installation:
    PHASE:Preparing the disk…
    Configuring volume “Macintosh HD”
    Preparing disk for local booted install.
    Free space on “Macintosh HD”: 307.77 GB (307771772928 bytes).
    Create temporary directory “/var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Tmp-//Install.57068fYGJEb”
    PHASE:Preparing Adobe Setup…
    IFPKInstallElement (1 packages)
    PHASE:Waiting for other installations to complete…
    PackageKit: —– Begin install —–
    PackageKit: request=PKInstallRequest <1 packages, destination=/tmp/InstaDMG_temp_folder.D9bsiJ/mount_point.6VV8Tc>
    PackageKit: packages=(
    “PKJaguarPackage
    )
    PHASE:Configuring the installation…
    STATUS:
    PackageKit: Extracting /InstaDMG/InstallerFiles/CustomPKG/07/photoshopcs5_Install.pkg/Contents/Archive.pax.gz (destination=/private/tmp/InstaDMG_temp_folder.D9bsiJ/mount_point.6VV8Tc/.PKInstallSandbox-tmp/Root, uid=0)
    PHASE:Writing files…
    %7.221037
    PackageKit: Executing script “./preinstall” in /InstaDMG/InstallerFiles/InstaUp2DatePackages/photoshopcs5_Install.pkg/Contents/Resources
    ./preinstall: AAMEE Installer : preinstall launched…
    ./preinstall: AAMEE Installer : Working directory is /InstaDMG/InstallerFiles/InstaUp2DatePackages/photoshopcs5_Install.pkg/Contents/Resources
    ./preinstall: AAMEE Installer : Launching AdobeDeploymentManager…
    PHASE:Running package scripts…
    %13.801331
    PHASE:Running package scripts…
    %19.754815
    ./preinstall: Starting Installer…
    ./preinstall: In Silent mode.
    PHASE:Running package scripts…
    %24.629150
    PHASE:Running package scripts…
    %28.930575
    PHASE:Running package scripts…
    %73.873952
    PHASE:Running package scripts…
    %74.351350
    ./preinstall: Exiting Installer with Code: 0
    ./preinstall: Begin Adobe Setup
    ./preinstall: UI mode: Silent
    PHASE:Running package scripts…
    %74.810281
    PHASE:Running package scripts…
    %75.251380
    [b]./preinstall: Error : INSTALLDIR check failed
    ./preinstall: Exit Code: 22
    ./preinstall: AAMEE Installer : Exit code of AdobeDeploymentManager is (127)
    ./preinstall: AAMEE Installer : Exit … [/b]
    PackageKit: Install Failed: PKG: pre-install scripts for “com.adobe.Enterprise.install.E420041C-1497-41F2-BB5B-1DE9A7007470”
    Error Domain=PKInstallErrorDomain Code=112 UserInfo=0x105005210 “An error occurred while running scripts from the package “photoshopcs5_Install.pkg”.” {
    NSFilePath = “./preinstall”;
    NSLocalizedDescription = “An error occurred while running scripts from the package U201cphotoshopcs5_Install.pkgU201d.”;
    NSURL = “file://localhost/InstaDMG/./InstallerFiles/CustomPKG/07/photoshopcs5_Install.pkg”;
    PKInstallPackageIdentifier = “com.adobe.Enterprise.install.E420041C-1497-41F2-BB5B-1DE9A7007470”;
    }
    install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 UserInfo=0x105005210 “An error occurred while running scripts from the package “photoshopcs5_Install.pkg”.”
    %97.750000
    Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
    The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
    Folder 07 done (17:34:23)

    #378677
    vogtstev
    Participant

    Adobe InstallCheck Script:

    #!/bin/sh

    if [ -f “/System/Library/CoreServices/SystemVersion.plist” ]
    then
    OS_VERSION=`/usr/bin/defaults read /System/Library/CoreServices/SystemVersion ProductVersion`

    else
    if [ -f “/System/Library/CoreServices/ServerVersion.plist” ]
    then
    OS_VERSION=`/usr/bin/defaults read /System/Library/CoreServices/ServerVersion ProductVersion`
    else
    #err will be of the type “An error was encountered while running the InstallationCheck tool for package .”
    exit 100
    fi
    fi

    OS_MAJOR_VERSION=`echo $OS_VERSION | cut -f1 -d’.’`
    OS_MINOR_VERSION=`echo $OS_VERSION | cut -f2 -d’.’`
    OS_PATCH_VERSION=`echo $OS_VERSION | cut -f3 -d’.’`

    if [ “$OS_MAJOR_VERSION” -lt “10” ] || [[ “$OS_MAJOR_VERSION” -eq “10” && “$OS_MINOR_VERSION” -lt “5” ]]
    then
    #err will be of the type “The software cannot be installed on this computer”
    exit 97
    fi

    SYS_TYPE=`sysctl -n hw.cputype`
    if [ “$SYS_TYPE” -ne “7” ] && [ “$SYS_TYPE” -ne “71” ]
    then
    #err will be of the type “The software cannot be installed on this computer”
    exit 97
    fi

    exit 0

    #378678
    vogtstev
    Participant

    Adobe preinstall script:

    #!/bin/sh

    echo “AAMEE Installer : preinstall launched…”

    oldWD=`pwd`

    parentDir=`dirname “$0″`
    cd “$parentDir”
    WD=`pwd`

    cd “$oldWD”

    if [ -f “$WD/AdobeDeploymentManager” ]
    then
    echo “AAMEE Installer : Working directory is $WD”
    else
    echo “AAMEE Installer : Working directory is not valid $WD”
    echo “AAMEE Installer : Trying to find relative path from pkg”
    WD=”$1/Contents/Resources”
    if [ -f “$WD/AdobeDeploymentManager” ]
    then
    echo “AAMEE Installer : Working directory is $WD”
    else
    echo “AAMEE Installer : Working directory is not valid $WD”
    echo “AAMEE Installer : AdobeDeploymentManager is not present in the working directory. Corrupted Installer. ”
    exit -1
    fi
    fi

    echo “AAMEE Installer : Launching AdobeDeploymentManager…”
    “$WD/AdobeDeploymentManager” –optXMLPath=”$WD/optionXML.xml” –setupBasePath=”$WD/” –installDirPath=”$2″ –mode=install
    ADMExitCode=$?

    echo “AAMEE Installer : Exit code of AdobeDeploymentManager is ($ADMExitCode)”
    echo “AAMEE Installer : Exit …”
    exit $ADMExitCode

    #378679
    vogtstev
    Participant

    From preinstall script I wonder if this could be the problem:

    –installDirPath=”$2″

    Not sure what it should be though. I’m assuming $3 won’t work in this case.

    #378680
    dead2sin
    Participant

    I had the same problem. If we can get it working, I’d be thrilled, but I’m not holding my breath 🙂

    #378682
    Allister Banks
    Participant

    Hey Steve,
    Thanks for going and testing what we’ll all be hoping to do real soon! What version of instaDMG are you using and what OS are you building(just so we don’t assume, since 10.5 should be completely chrooted and therefore not be experiencing this issue)? By version, please be specific as the which revision is listed in the instadmg.bash script, line 12, or line 2 of either the debug or package logs.
    it would be too easy if changing it to $3 is all you needed, as in the ‘target’ volume, so let us know if you give it a shot

    Allister

    #378683
    dead2sin
    Participant

    I changed the $2 to $3 to see if it likes that better, I’ll report back here the results as well 🙂 If that doesn’t work, I might try a few other things.

    I am not familiar with the specifics of how InstaDMG installs to the disk image, so I was wondering what the full path would be to the disk image it is working on.

    Thanks,

    Nate

    #378684
    vogtstev
    Participant

    The changing to $3 didn’t work. I’m still thinking that maybe something in that line off the preinstall script can help. Otherwise, I don’t see where it could be unless it’s in the binary we can’t see.

    I am using 10.6.3 of my build machine.
    My out images and I am installing 10.6, then running the 10.6.3 Combo
    I am running 1.6b2 of InstaDMG
    .4b of InstaUp2Date

    #378685
    vogtstev
    Participant

    I just added some echo statements to the preinstall script. Maybe it will help us, but unless I’m not noticing something look ok?

    ./preinstall: –optXMLPath=/InstaDMG/InstallerFiles/InstaUp2DatePackages/photoshopcs5_Install.pkg/Contents/Resources/optionXML.xml
    ./preinstall: –setupBasePath=/InstaDMG/InstallerFiles/InstaUp2DatePackages/photoshopcs5_Install.pkg/Contents/Resources/
    ./preinstall: –installDirPath=/tmp/InstaDMG_temp_folder.8wCrG9/mount_point.J5YYZn

    #378686
    Allister Banks
    Participant

    Hey Steve,

    According to a Mr. Lee on the Mac Enterprise Deployment list, and I quote:

    You’d want

    –installDirPath=”${3}/${2}”

    endquote
    Could you please give that a spin? And could you actually tell us the revision, not the version numbers you’re using? eg. 261 for instadmg.bash? Thanks,

    Allister

    #378687
    dead2sin
    Participant

    Running this now.

    #378688
    dead2sin
    Participant

    Same error for me with –installDirPath=”${3}/${2}” in the preflight. 🙁

    #378689
    vogtstev
    Participant

    Same error here. Here is the latest echo statements:

    ./preinstall: –optXMLPath=/InstaDMG/InstallerFiles/InstaUp2DatePackages/photoshopcs5_Install.pkg/Contents/Resources/optionXML.xml
    ./preinstall: –setupBasePath=/InstaDMG/InstallerFiles/InstaUp2DatePackages/photoshopcs5_Install.pkg/Contents/Resources/
    ./preinstall: –installDirPath=/tmp/InstaDMG_temp_folder.EFlOzu/mount_point.sDv44w
    ./preinstall: –newinstallDirPath=/private/tmp/InstaDMG_temp_folder.EFlOzu/mount_point.sDv44w//tmp/InstaDMG_temp_folder.EFlOzu/mount_point.sDv44w

    I looks like the $3 and $2 are almost duplicates just slightly different.

    #378690
    Allister Banks
    Participant

    Hey Steve and dead2sin(tag team testing effort- love it!),

    Really need to know the revision you’re using, especially if it’s being handed this package with instaUp2Date. I think you might be experiencing the path doubling issue that I have a fix for, described here:
    [url] groups.google.com/group/instadmg-dev/browse_thread/thread/13625ead97619c1f [/url]

    If you don’t want to monkey around with the code, try throwing the pkg into a dmg, here’s a one liner culled from the wisdom of Mr. Neagle:

    /usr/bin/hdiutil create -srcfolder /path/to/pkg /path/to/pkg.dmg

    If that works then we’re golden. Thanks,

    Allister

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

Comments are closed