Jas*_*nga 5 windows-installer wix burn wix3.6
如何在刻录(WiX)引导程序中引用RebootPending属性?我知道属性名称是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>
Run Code Online (Sandbox Code Playgroud)
但是,即使Windows Update刚刚完成更新并需要重新启动,也总是如此。
我的语法错误吗?我的条件应该改为[RebootPending]吗?
在获知Burn内的RebootPending属性可能与Windows Installer使用的属性不完全对应之后,我还要如何确保我的应用程序在重新引导待处理时不尝试安装?
Burn不使用MSI的MsiSystemRebootPending,因为它在安装事务之外运行。因此Burn使用ISystemInformation :: RebootRequired代替。不能保证MSI和ISystemInformation :: RebootRequired对于是否需要重新启动具有相同的想法,因为MSI没有通过MsiSystemRebootPending进行文档说明。