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?