Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
PackageMaker 3.0.4
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="charlesevans" data-source="post: 925802" data-attributes="member: 127247"><p>Hello all,</p><p></p><p>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.</p><p></p><p>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.</p><p></p><p>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:</p><p></p><p>com.apple.message.domain: com.apple.SecurityAgent.DialogFrequency</p><p>com.apple.message.result: noop</p><p>com.apple.message.siugnature: Installer.app</p><p></p><p>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.</p><p></p><p>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.</p><p></p><p>Hopefully someone else there can point me in the right direction.</p><p></p><p>Thanks in advance,</p><p>Charles</p></blockquote><p></p>
[QUOTE="charlesevans, post: 925802, member: 127247"] 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: com.apple.message.domain: com.apple.SecurityAgent.DialogFrequency com.apple.message.result: noop com.apple.message.siugnature: Installer.app 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, Charles [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
PackageMaker 3.0.4
Top