- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 WiX 创建一个中等复杂的安装程序。我有一个 0 级功能,我想有条件地安装它,但也总是在管理员安装期间安装,以便更容易地通过管理员镜像进行修补。我已经尝试了几件事:
在 AdminUISequence 的 CostFinalize 操作之前设置一个属性(这是 msdn 声称评估条件表的时间)。这种情况下的情况如下:
<Condition Level="1">( VersionNT >= 601 AND NOT FASTINSTALL = "1" ) OR INSTALLCONDFEATURE = "1"</Condition>
其中 FASTINSTALL 和 INSTALLCONDFEATURE 都是 Secure 和 Admin。
使用 Windows Installer ACTION 或 EXECUTEACTION 属性。在这种情况下,条件类似于:
<Condition Level="1">( VersionNT >= 601 AND NOT FASTINSTALL = "1" ) OR ACTION = "ADMIN"</Condition>
这些似乎都不起作用。我只是遗漏了什么,还是有其他更好的方法来做到这一点?
最佳答案
根据 MSI SDK,Feature/@Level="0"的功能永远不会安装在管理员安装中:
During an administrative installation, the installer creates a source image for all features in the product except those feature with 0 in the Level column of the Feature table.
所以你需要反转你的逻辑;将功能级别设置为大于零的值,并使用条件将其设置为零以进行非管理员安装。
关于wix - 如何确保在 Windows Installer AdminInstall 期间安装功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5411358/
我正在使用 WiX 创建一个中等复杂的安装程序。我有一个 0 级功能,我想有条件地安装它,但也总是在管理员安装期间安装,以便更容易地通过管理员镜像进行修补。我已经尝试了几件事: 在 AdminUISe
我是一名优秀的程序员,十分优秀!