加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

如何在Burn(WiX)中引用重启Pending属性

发布时间:2020-12-14 04:36:58 所属栏目:Windows 来源:网络整理
导读:如何在 Burn(WiX)引导程序中引用RebootPending属性? 我知道属性名称是RebootPending,它实际上引用了Windows Installer中的MsiSystemRebootPending属性. 我正在尝试这样的事情: bal:Condition Message="There is a restart pending. Please restart your co
如何在 Burn(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>

但它总是如此,即使Windows Update刚刚完成更新并需要重新启动.

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

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

解决方法

Burn不使用MSI的MsiSystemRebootPending,因为它在安装事务之外运行.所以Burn使用 ISystemInformation::RebootRequired代替.无法保证MSI和ISystemInformation :: RebootRequired对是否需要重新启动有相同的想法,因为MSI没有带有MsiSystemRebootPending的文档反映.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读