Inno Setup change c:\\ permission

2019-01-26 22:51发布

问题:

I have to set ACL of "C:\" folder (only this folder, not its subfolders!) to accept read/write from all users. Is it possibile by Inno setup script?

回答1:

you can use icacls.exe from inno setup to set permissions

try to execute the following with the Exec or shellexec functions in the inno-setup

icacls "C:\" /grant Users:F

this might helpful, please check icacls Information