VMware Cloud Community
mgrabinski
Contributor
Contributor

MacOS Error setting folder permissions on existing folder

We get an error when running an InstallBuilder installer "on top" of an existing install.  This is on MacOS Catalina and Big Sur.  The existing install was created using the Mac package installer.  It is in the Documents folder.  

The InstallBuilder installer has hardened runtime enabled and is signed and notarized.  It does not require Administrator privileges to run.

When we run the installer it does not ask permissions to access the Documents folder.

It fails setting permissions on a particular folder.  No manner of fiddling with permissions on this folder seems to change fix the error.  The permissions look just like the permissions on the other folders.  Owner, group and everyone permissions are identical to the others.  If I rename the offending folder, the installation goes fine.

A clean install works fine.

First, any ideas what might be causing this.  When we dig in, it looks like the error occurs in the MacOS app sandbox.

Second, is there a way to make installbuilder skip setting permissions on existing files and folders?

0 Kudos
1 Reply
michieldhont_
Hot Shot
Hot Shot

Hi @mgrabinski,

Since users need so explicitly give permissions for an app to write to the Documents and Downloads folder it could be due to these restrictions. We recommend using other folders when possible.

   Second, is there a way to make installbuilder skip setting permissions on existing files and folders?

You can create an upgrade installer, which you can configure not to overwrite files unless they are newer, using the overWriteFile propery.

https://clients.bitrock.com/installbuilder/docs/installbuilder-userguide.html#_updates

Regards,

Michiel

 

 

 

0 Kudos