My kit created with Inno Setup installs my application in C:\\Program Files\\MyApp
.
When my application starts, it tries to create new log files in
Setting permissions for logs
folder under [Dirs] section worked for me:
[Dirs]
Name: "{app}";
Name: "{app}\logs"; Permissions: everyone-full
[Files]
Source: logs\*; DestDir: {app}\logs\; Flags: ignoreversion recursesubdirs createallsubdirs; Permissions: everyone-full
But, as in this post, i'm not sure if it's the proper way to do it.
Simply using the following code works for me and I think it is more secured:
[Dirs]
Name: "{app}\logs"; Permissions: users-full