本文介绍了Inno Setup更改c:\权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须设置 C:\文件夹的ACL(仅此文件夹,而不是其子文件夹!)才能接受所有用户的读/写。
是否可以通过Inno安装脚本进行操作?
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?
推荐答案
您可以使用 icacls.exe
从inno设置中设置权限
you can use icacls.exe
from inno setup to set permissions
尝试在inno-setup中使用Exec或shellexec函数执行以下操作
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
这篇关于Inno Setup更改c:\权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!