New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

PackageMaker 3.0.4

Post Reply New Thread Subscribe

Thread Tools

Member Since: Oct 16, 2009
Posts: 1
charlesevans is on a distinguished road

charlesevans is offline
Hello all,

I have just started to use PackageMaker to package our application seeing as our very old version of Installshield no longer works on Snow Leopard based on the fact that it needed Java 1.4.

I have managed to setup the package but am running into a problem when the "Upgrade" function seems to fail if the files are already there. The "Upgrade" option is shown when the application has already been installed (.PKG file exists in /Library/Requests). Deleting all the files still shows that it will upgrade, however, seeing as the files aren't there the install completes successfully.

I tried a preflight bash script to check if the files were there and then delete them but this always fails when it tries to execute the rm -r command. I get a weird Diagnostic Message, leading me to believe it is security/rights related, that reads: noop

I do know my BASH script is executing because a simple mkdir command works. It only seems to complain if I try and delete the folder.

I have also tried creating a "File exists on Target" requirement that forces the user to delete the folder manually if it exists but this does not give me the correct behavior. I don't think this requirement works. I configured a folder and whether I have the "Pass If" value as True or False it still brings back the error message. This was a last resort and not a very elegant solution.

Hopefully someone else there can point me in the right direction.

Thanks in advance,
QUOTE Thanks

Post Reply New Thread Subscribe

« duplicate symbol _OBJC_METACLASS_$ | Template Cocoa Template generated from Cannot NSLog »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
PackageMaker Prefligt is not working in MAC 10.6 (Snow Leopard) jobyabraham1983 OS X - Development and Darwin 0 09-18-2009 11:00 AM
PackageMaker PreFlight question jonculloty OS X - Development and Darwin 1 09-18-2009 10:36 AM
PackageMaker - postflight actions don't work? sw55 OS X - Development and Darwin 0 04-20-2009 06:00 PM
Help with PackageMaker needed Tiemo OS X - Development and Darwin 0 02-12-2009 08:27 AM
Installing PackageMaker paramasivan OS X - Apps and Games 4 04-17-2008 11:57 AM

All times are GMT -4. The time now is 02:35 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?