- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Struggling with folder access rights in IS 2019
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Struggling with folder access rights in IS 2019
Hi,
I'm trying to limit the access to some of the installed folders (BasicMSI project) to administrators only.
In my installation, I set "Destination Permissions" to deny access "Read" for [%USERDOMAIN]\Users. Unfortunately the result is that I can't even access the folder as administrator anymore unless I take ownership of the folder.
It seems to me the problem is that InstallShield sets the logged on non-admin user as owner of all files even though the setup requires administrator rights. When read access is denied to normal users, Windows seems to have problems because the owner himself can't read the folder anymore.
Is there any trick to avoid this problem or is the only way to use icacls in a custom action? Of course I'd prefer to use standard functionality of InstallShield instead of custom actions.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @Pizzamampf ,
There are two ways InstallShield sets the folder permissions. See which one is working for you.
• Custom InstallShield handling—InstallShield adds a custom table and custom actions to your project to set permissions on the target system. This is the default value.
• Traditional Windows Installer handling—InstallShield uses the LockPermissions table in the .msi database to store permissions information for your product.
You can find more information in the below links:
https://helpnet.flexerasoftware.com/installshield25helplib/helplibrary/SecurityPermissions.htm
If the above options are not working, then you can try SetObjectPermission or icacls through installscript custom action.