【发布时间】:2014-08-21 06:22:35
【问题描述】:
- 我在 Installshield X 中创建了一个安装程序。
- 在非管理员 Windows 帐户中完成安装后,我想为少数文件授予“写入权限”(默认情况下它只有“读取”权限)。
- 如果我选择单个文件并转到属性(在 Installshield 内),我有权限选项卡,其中提供了域、只读、完全控制、修改等选项。我已经测试了这些选项,但它不会影响 msi文件。(特定文件没有写权限)。我做错了什么吗?
- 还有另一种方法,即编写脚本
Set objShell=CreateObject("WScript.Shell")
installDir = Session.Property("INSTALLDIR.5A884667_3CC4_41EC_B0F2_BEEAB457BB8C")
supportDir = Session.Property("SUPPORTDIR")
length = Len(installDir)
lastChar = Right(installDir, 1)
if (lastChar = "\") Then
installDir = Left(installDir, length - 1)
end if
'MsgBox supportDir & "\setacl.exe """ & installDir & """ /dir /set S-1-5-32-545 /full /p:yes /sid /silent"
objshell.Run supportDir & "\setacl.exe """ & installDir & """ /dir /set S-1-5-32-545 /full /p:yes /sid /silent",0,true
有人可以解释一下这里发生了什么吗?最后一组 s-1-5-32-545。
谢谢
【问题讨论】:
标签: installation windows-installer installshield