Set directory permissions using Inno Setup

Posted on April 4, 2015 at 11:26 am

Add this in your Inno Setup script:

[Dirs]                     
Name: "{commonappdata}\YourProgramName\LogsFolder\"; Permissions: users-modify; Flags: uninsneveruninstall

The desired folder will have write and modify permissions for all users:

innosetup-folder-permissions-users-modify

Standard User Accounts will be able to modify/write to files inside that folder.

Other useful links:

http://www.jrsoftware.org/ishelp/topic_dirssection.htm
http://www.jrsoftware.org/ishelp/index.php?topic=consts

Other Posts

Updated Posts