I'm using a custom BA with WiX and I'd like to detect if there is a pending reboot to warn my user before they try to install, only to have it fail. How do I reference the Reboot Pending Property in Burn (WiX) That question only showed me what doesn't work, and the OP marked an answer so no one has answered his followup question of, "Having been informed that the RebootPending property inside Burn may not correspond exactly to the property that Windows Installer uses, how else would I ensure that my application does not attempt to install when a reboot is pending?" That is what I'd like to know.
相关问题
- How does the setup bootstrapper detect if prerequi
- Wix: How can I set, at runtime, the text to be dis
- Wix variable name formats with spaces and other ch
- WiX: Multiple MSI files?
- Help with one step build all projects + installer
相关文章
- How do I require a value in a textbox in a Wix cus
- How to prevent WiX bundle with same UpgradeCode/Ve
- How do I pass a default 'install location'
- Running msiexec from a service (Local System accou
- Can I use msilib or other Python libraries to extr
- WIX 3.8 msiexec.exe /quiet Error 1603
- Wix Harvest: Same Component/File ID when files are
- Cancel Installation and Rollback using wix burn Bo
Use the
RebootPending
Burn variable like soIf it's
"1"
then a reboot is pendingSince I'm using a managed installer bootstrapper application I ended up doing this in C# using:
Entries in that key are files waiting for a reboot so they can be changed. Although this isn't bulletproof, it gives a likely indicator that the install might fail because of a pending reboot.