Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recursive setting of folder permissions with InnoSetup

Tags:

inno-setup

I have a folder tree that I copy to C:\ProgramData The software that I am installing (don't blame me for this, I did not architect, write or design it) requires full control for everyone for this data.

So I put the following line in [Files] sectionL

Source: "C:\ProgramData\PFPS\MapDataServer\*"; DestDir: "C:\ProgramData\PFPS\FalconViewCommand"; Flags: ignoreversion createallsubdirs recursesubdirs; Permissions: everyone-full; Excludes: "*.LDF"

yes, this does give everyone full control of each individual file, but the program needs to create files and the folder permissions (directory) are not set for everyone.

I tried to add a [Dirs] section but that did not work:

[Dirs]
Name: "C:\ProgramData\PFPS\FalconViewCommand"; Flags: uninsalwaysuninstall; Permissions: everyone-full

What do the guru's say?

like image 471
Dr.YSG Avatar asked Sep 02 '25 10:09

Dr.YSG


1 Answers

This works for me:

[Dirs]    
Name:"{app}\"; Permissions:everyone-modify
like image 134
user1161013 Avatar answered Sep 06 '25 03:09

user1161013