Skip to content
⌘ NSIS Forum Archive

How to set executable right for Common Files

2 posts

Thalion77#

How to set executable right for Common Files

Hello!

I would like to save several files into a sub folder of "C:\Program Files\Common Files". Some of our customers do not have the executable right for the files saved in the Common Files Folder. Is there a way in NSIS to set that right explicitely for everyone while installing?

Robert
Afrow UK#
Use AccessControl plugin to set permissions for "Everyone" on the folder before placing the files in it. When files are placed in folders they inherit the permissions applied to that folder.

Be warned, however, that "Everyone" does not exist on all systems and the AccessControl plugin happily displays an error MessageBox and there's no way to remove it unless you modify the plugin's source code.

-Stu