Package manager non admin installs failing
I'm attempting to make a .pkg installer; the installer basically installs my program (configurable by the user, but typically will be to a subfolder of their home directory), and then runs a postflight script. Neither of these actions (I believe) should require root access; the script simply makes some changes (via sed) to some of the files installed, and then launches another .pkg file (via open) which was installed along with everything else in the directory the user chose.
When creating the pkg I selected "No authorization required", as I would like users without root access to be able to install my software, if possible.
Attached is the error log produced when my .pkg was run. It seems to be an error deleting the package's scratch temp folder. Any illumination provided would be greatly appreciated. Many thanks.
Aug 23 16:29:31 macbook installd[4727]: PackageKit: ----- Begin install -----
Aug 23 16:29:31 macbook installd[4727]: PackageKit: Install Failed: (null)\nError Domain=NSCocoaErrorDomain Code=513 UserInfo=0x10ec40 "PKInstallSandbox-tmp couldn’t be removed because you don’t have permission to access it." {\n NSFilePath = "/var/folders/aG/aGKQOtmVG6uGFEox-dSF-E +TI/-Tmp-/PKInstallSandbox-tmp";\n NSUserStringVariant = Remove;\n}
Aug 23 16:29:32 macbook Installer[4714]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Aug 23 16:29:33 macbook Installer[4714]: Displaying 'Install Failed' UI.
Aug 23 16:29:33 macbook Installer[4714]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
Mac OS X (10.6.3)