【问题标题】:Providing File permissions in Installshield在 Installshield 中提供文件权限
【发布时间】:2014-08-21 06:22:35
【问题描述】:
  1. 我在 Installshield X 中创建了一个安装程序。
  2. 非管理员 Windows 帐户中完成安装后,我想为少数文件授予“写入权限”(默认情况下它只有“读取”权限)。
  3. 如果我选择单个文件并转到属性(在 Installshield 内),我有权限选项卡,其中提供了域、只读、完全控制、修改等选项。我已经测试了这些选项,但它不会影响 msi文件。(特定文件没有写权限)。我做错了什么吗?
  4. 还有另一种方法,即编写脚本
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


    【解决方案1】:

    您可以创作MsiLockPermissionEx table,但您根本不应该将此类自定义权限应用于安装文件夹。相反,您应该让应用程序将您的设置文件存储在用户配置文件中或注册表中的 HKCU 中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-19
      • 1970-01-01
      • 2023-03-29
      • 1970-01-01
      • 1970-01-01
      • 2021-04-08
      • 2017-03-30
      相关资源
      最近更新 更多