1

I have PostInstall Script Named postinstall. I have added in Post install section.When I try to build it it build successfully but with warning "User 504 does not match 502 of root volume for /Library/Internet Plug-Ins...make sure to have disk permission repaired with disk utility" and run the package it show that Installation Failed.

I repaired the package after that also I am getting message Installation failed message.I checked the log an got following message PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “MyTestApp”."

I have tried with permission as well but its not working.I am using OSX 10.7 and Package Maker 3.0.5 PLease help me.

// postinstall script

!/bin/sh

echo "My Scripts"
exit 0

Steps I am doing

On Terminal

Step 1 vi postinstall
Step 2 add shell script code
Step 3 save and exit the file
Step 4 "chmod +x postinstall"
Step 5 Add the script and build

Community
  • 1
  • 1
Vikram Ranabhatt
  • 7,268
  • 15
  • 70
  • 133

1 Answers1

0

Try a postflight script that looks like this:

#!/bin/sh
#
# postflight script 
#

echo "My Scripts"

exit 0
Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215