开发者

How do I make InnoSetup remove permissions on a folder for everyone but the current user?

开发者 https://www.devze.com 2023-03-22 17:40 出处:网络
I have an \"Install Just for me\" option on my InnoSetup installer.If this option is chosen the program files are written to a folder off the users loc开发者_如何学Goal settings application data folde

I have an "Install Just for me" option on my InnoSetup installer. If this option is chosen the program files are written to a folder off the users loc开发者_如何学Goal settings application data folder, rather than C:\Program Files.

It seems that other admin users can still poke around and find this folder and therefore execute the app, which I want to avoid if the user is installing "just for me".

How do I specify that this folder (nominally {userappdata}\MyApp\Program Files\) has permissions removed for everyone except the user running the installer?


You can use cacls.exe or use the various permission directives. But no matter what you do, an administrators can always give themselves permission to access the file. They are administrators after all...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号