Home Forums Software InstaDMG Develper Tools

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #370521
    thegooch49
    Participant

    Hello, has anyone been able to successfully install XCode 3.0 via instadmg? They are package installers, but they are pretty complicated (lots of pre-flight, post-flight, etc). They also require that I am booted off of the target drive, which is obviously not the case on instaDMG.

    I have used logGen and pkgGen to create my own package, but I fear that this is not perfect. I would rather use Apple’s stock installers if possible. Someone suggested opening the package w/ an editor, and remove the volumecheck() method so it doesn’t require the boot volume.

    If anyone has done this successfully, let me know.

    -Jeff

    #371186
    simbimbo
    Participant

    I am also looking for an answer to this question.

    #371187
    thegooch49
    Participant

    Hello, I used logGen and pkgGen, and created my own package for these. It works fine to my knowledge, I haven’t had any problems yet. If you need some guidance, there is a link below that will help.

    http://blog.irisink.com/?p=106

    #371188
    simbimbo
    Participant

    I added this line right below the initial installer line and it seems to work??

    /usr/sbin/installer -verbose -pkg “$CURRENT_OS_INSTALL_MOUNT/Optional Installs/Xcode Tools/XcodeTools.mpkg” -target $CURRENT_IMAGE_MOUNT -lang en >> $LOG_FILE

    #371288
    thegooch49
    Participant

    Hi, great tip! I actually made another function for the developer tools. The line you posted works fine if you are running this off of a retail DVD. It wouldn’t work with the 2 disk system restore disks. This function quickly checks which type of install is running, and installs it off of the DVD if it’s retail, and disk 2 if it’s system restore disks.

    [code]# Install the Developer Tools
    # If disk 2 is mounted, it will install off of that.
    # If it’s running off of the Retail DVD, it will nstall from there.
    install_DevTools() {
    /bin/echo $CREATE_DATE >> $LOG_FILE
    /bin/echo $CREATE_DATE >> $PKG_LOG
    /bin/echo “Beginning Installation of Developer Tools” >> $LOG_FILE
    /bin/echo “Beginning Installation of Developer Tools” >> $PKG_LOG
    if [ -d /Volumes/Mac\ OS\ X\ Install\ Disc\ 2/Xcode\ Tools/XcodeTools.mpkg ]
    then
    /usr/sbin/installer -verbose -pkg “/Volumes/Mac OS X Install Disc 2/Xcode Tools/XcodeTools.mpkg” -target $CURRENT_IMAGE_MOUNT -lang en >> $LOG_FILE
    else
    /usr/sbin/installer -verbose -pkg “$CURRENT_OS_INSTALL_MOUNT/Optional Installs/Xcode Tools/XcodeTools.mpkg” -target $CURRENT_IMAGE_MOUNT -lang en >> $LOG_FILE
    fi
    }
    [/code]

    I then added install_DevTools after install_system where the functions are called. This worked great for me.

    #372340
    johnemac
    Participant

    Thanks for the handler. I found that I had to remove XcodeTools.mpkg from the path in order for it to install the tools.

    Was
    if [ -d /Volumes/Mac\ OS\ X\ Install\ Disc\ 2/Xcode\ Tools/XcodeTools.mpkg ]

    Changed to
    if [ -d /Volumes/Mac\ OS\ X\ Install\ Disc\ 2/Xcode\ Tools/ ]

    #372346
    thegooch49
    Participant

    I made a slight modification after finding that my if statement wasn’t working. The code below does the trick.

    [code]
    # Install the Developer Tools
    # If disk 2 is mounted, it will install off of that.
    # If it’s running off of the Retail DVD, it will nstall from there.
    install_DevTools() {
    /bin/echo $CREATE_DATE >> $LOG_FILE
    /bin/echo $CREATE_DATE >> $PKG_LOG
    /bin/echo “Beginning Installation of Developer Tools” >> $LOG_FILE
    /bin/echo “Beginning Installation of Developer Tools” >> $PKG_LOG
    if [ -d /Volumes/Mac\ OS\ X\ Install\ Disc\ 2/Xcode\ Tools/]
    then
    /usr/sbin/installer -verbose -pkg “/Volumes/Mac OS X Install Disc 2/Xcode Tools/XcodeTools.mpkg” -target $CURRENT_IMAGE_MOUNT -lang en >> $LOG_FILE
    else
    /usr/sbin/installer -verbose -pkg “$CURRENT_OS_INSTALL_MOUNT/Optional Installs/Xcode Tools/XcodeTools.mpkg” -target $CURRENT_IMAGE_MOUNT -lang en >> $LOG_FILE
    fi
    }
    [/code]

    #372537
    ewhite
    Participant

    gooch: Thanks for the tip, I’m trying this right now!

    #372570
    ewhite
    Participant

    I was able to get this to work only when I got rid of the if statement. Who knows…

    [code]# Install the Developer Tools
    # If disk 2 is mounted, it will install off of that.
    # If it’s running off of the Retail DVD, it will nstall from there.
    install_DevTools() {
    /bin/echo $CREATE_DATE >> $LOG_FILE
    /bin/echo $CREATE_DATE >> $PKG_LOG
    /bin/echo “Beginning Installation of Developer Tools” >> $LOG_FILE
    /bin/echo “Beginning Installation of Developer Tools” >> $PKG_LOG
    /usr/sbin/installer -verbose -pkg “$CURRENT_OS_INSTALL_MOUNT/Optional Installs/Xcode Tools/XcodeTools.mpkg” -target $CURRENT_IMAGE_MOUNT -lang en >> $LOG_FILE
    }
    [/code]

    #372619
    jeffrey.c
    Participant

    ewhite,

    Make sure your closing bracket in your “if” statement has a space before it.

    I copied and pasted from this forum and had problems too.

    CORRECT =

    if [ -d /Volumes/Mac\ OS\ X\ Install\ Disc\ 2/Xcode\ Tools/XcodeTools.mpkg ]

    INCORRECT =

    if [ -d /Volumes/Mac\ OS\ X\ Install\ Disc\ 2/Xcode\ Tools/XcodeTools.mpkg/]

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

Comments are closed