Inno Setup - How to set full permission on a folder, not just for it's contents

后端 未结 2 368
小蘑菇
小蘑菇 2020-12-28 18:15

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

相关标签:
2条回答
  • 2020-12-28 18:36

    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.

    0 讨论(0)
  • 2020-12-28 18:38

    Simply using the following code works for me and I think it is more secured:

    [Dirs]
    Name: "{app}\logs"; Permissions: users-full
    
    0 讨论(0)
提交回复
热议问题