I'm trying to prevent the problem of all my installed files being owned by System, which happens because I ask the user to enter an admin password. I tried to remedy this by using "defaultUnixOwner", which doesn't work for me because the installer tries to change the owner of /Applications, which OS X doesn't like. That folder already exists, of course, and I'm installing the files into a new folder inside /Applications. I don't understand why the software tries to do this. Is there a workaround?

The message from InstallBuilder is

There has been an error. Error changing ownership of /Applications to myusername The application will exit now.

Thanks- Scott

asked 10 Jun '16, 15:13

wscjr1's gravatar image

accept rate: 0%

Could you contact us at support@bitrock.com attaching your project XML file?

(15 Jun '16, 09:00) alejandror ♦♦

A suggested workaround (from Support) is to change installdir from /Applications to one level below, where the files are actually going, which requires changes in the xml. Even if I do that I still have to verify the owner and group of thousands of files, not all of which are the same. So I decided to put up my own admin password dialog with "runProgram":
osascript -e 'do shell script "/bin/sleep 1" with administrator privileges' where the sleep is just a harmless placeholder.

(17 Jun '16, 15:46) wscjr1
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 10 Jun '16, 15:13

Seen: 334 times

Last updated: 17 Jun '16, 15:46