I'm trying to build simple application installers (one for 10.4, one for 10.5+) 
that place required files into Application Support as well as the application 
itself into the Applications folder.  Our current installers (built with a 
superset of the script below) work fine on a clean machine.  The problem is 
that if a version of the app already exists somewhere else on disk when 
installer is run, the installer overwrites that copy of the app instead of 
installing into the Applications folder - what we'd like.   This could create a 
number of tech-support issues that we'd rather avoid.  Is there a reasonable 
way to get the installer behaviour we want (always simply have it install a 
fresh copy of our app into /Applications?)  The version of PackageMaker is 
3.0.2 (174).
Thanks,-- Paul

mkdir "$STAGINGDIR/software"mkdir "$STAGINGDIR/software/Applications"ditto -v 
"$APPDIR/$APPNAME.app" "$STAGINGDIR/software/Applications/$APPNAME.app"
mkdir "$STAGINGDIR/software/Library"mkdir 
"$STAGINGDIR/software/Library/Application Support"mkdir 
"$STAGINGDIR/software/Library/Application Support/$COMPANY"mkdir 
"$STAGINGDIR/software/Library/Application Support/$COMPANY/$APPNAME"ditto -v 
"$APPSUPPORTDIR/$COMPANY/$APPNAME/Version 3" 
"$STAGINGDIR/software/Library/Application Support/$COMPANY/$APPNAME/Version 3"
$PACKAGEMAKER \  --root "$STAGINGDIR/software" \  --out "$OUTPUTDIR/$OUTPUT" 
\  --title "$APPNAME 3 for OS X 10.5" \  --id 
"com.our-company.our-product.3.osx105" \  --version 1 --target 10.5 --domain 
system --verbose --root-volume-only

(The 10.4 installer is built similarly, but with "--target 10.4")
                                          
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to