简体   繁体   中英

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

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 local 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...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM