如何在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的文档反映.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows – 如何在XP上设置wirble colorize
- windows-server-2003 – 如何检查Windows服务器是否是虚拟服
- windows – 将NTLM身份验证从本地代理服务器转发到公司代理
- windows – Win32 ListBox控件是否有SetText消息?
- windows – 指定NVCC用于编译主机代码的编译器
- Windows – 安装Visual Studio Community 2013时,无法将当前
- windows – 获取CPU /内存使用情况的历史记录
- 有没有办法通过tsql获取Windows任务管理器的详细信息?
- 录音 – 地铁应用中的音频捕捉
- 如何使用Windows 7打开.vhdx?