wix - 如何在 Burn (WiX) 中引用 Reboot Pending 属性

标签 wix windows-installer wix3.6 burn

如何在 Burn 中引用 RebootPending 属性(WiX) bootstrap ?
我知道属性名称是 RebootPending,它实际上引用了 Windows Installer 中的 MsiSystemRebootPending 属性。

我目前正在尝试这样的事情:

<bal:Condition Message="There is a restart pending. Please restart your computer before  attempting to install !(loc.ProductName).">RebootPending = 0</bal:Condition>

但这始终是正确的,即使 Windows 更新刚刚完成更新并需要重新启动。

我的语法错了吗?我的情况应该改为 [RebootPending] 吗?

被告知 Burn 中的 RebootPending 属性可能与 Windows Installer 使用的属性不完全对应,我还能如何确保我的应用程序在重新启动挂起时不会尝试安装?

最佳答案

Burn 不使用 MSI 的 MsiSystemRebootPending,因为它在安装事务之外运行。所以 Burn 使用 ISystemInformation::RebootRequired反而。不能保证 MSI 和 ISystemInformation::RebootRequired 关于是否需要重新启动有相同的想法,因为 MSI 没有记录 MsiSystemRebootPending 反射(reflect)。

关于wix - 如何在 Burn (WiX) 中引用 Reboot Pending 属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10875227/

相关文章:

windows-services - Wix:卸载时停止 Windows 服务

c# - MSI 安装程序文件/文件夹权限

wix - 如何在 SendTo 文件夹中为所有 WiX 用户创建快捷方式?

WiX-提交多个属性以延迟自定义操作

wix - 是否有用于安装 MMC 管理单元/扩展的 WIX 扩展?

wix - 在使用 WiX 显示 UI 后,如何确保 FindRelatedProducts 运行?

c# - 基于 Wix 安装程序的 TopShelf Windows 服务无法启动

wix - 快捷方式图标

windows - Wix - 卸载不同的产品

wix - 为什么 setup.exe 不显示 ARPCOMMENTS & WIXUIBanner.bmp 但 setup.msi 显示这些东西?