- This topic has 9 replies, 5 voices, and was last updated 16 years, 11 months ago by
jeffrey.c.
-
AuthorPosts
-
November 14, 2007 at 7:22 pm #370521
thegooch49
ParticipantHello, 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
January 21, 2008 at 8:45 pm #371186simbimbo
ParticipantI am also looking for an answer to this question.
January 21, 2008 at 9:24 pm #371187thegooch49
ParticipantHello, 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.
January 21, 2008 at 10:38 pm #371188simbimbo
ParticipantI 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
January 25, 2008 at 9:51 pm #371288thegooch49
ParticipantHi, 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.
April 20, 2008 at 4:50 pm #372340johnemac
ParticipantThanks 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/ ]April 21, 2008 at 5:09 pm #372346thegooch49
ParticipantI 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]May 2, 2008 at 3:07 pm #372537ewhite
Participantgooch: Thanks for the tip, I’m trying this right now!
May 5, 2008 at 3:35 pm #372570ewhite
ParticipantI 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]May 7, 2008 at 6:56 pm #372619jeffrey.c
Participantewhite,
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/]
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed