This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- File permissions with UAC
Subscribe
- 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
Sep 01, 2011
02:33 PM
File permissions with UAC
I have a Basic MSI project and am installing on Windows 7. My install requires an administrator to run, and during install it creates a file on the target system. I execute a script to set full permissions on the file for the Everyone group. However, if I try to edit and save the file as a non-admin, I get an Access Denied error. I check the permissions, and I should have rights. I even enable full permissions for the Users group, and still get access denied. This only happens with the UAC enabled during installation. How can I get access to this file for normal users?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 01, 2011
03:52 PM
I've done some testing and found something interesting. The config file I'm talking about gets edited during the install using a deferred in system context CA that uses the ConfigFileLoad, ConfigAdd, and ConfigFileSave functions. When I removed this CA from the sequence, so the file was unedited, I was able to edit it just fine post-install. Do these built-in functions have a conflict with UAC? Is there another way to edit a properties file?