Re: [WiX-users] Reboots

2015-03-12 Thread Phil Wilson
1. Call MsiSetMode (..) with one of the reboot choices depending on when you want the reboot to happen. 2. Condition the dialog on the ReplacedInUseFiles property. That should work, if not use MsiGetMode() to see if a reboot is pending. However Windows Installer will show a dialog anyway and

Re: [WiX-users] Reboots

2015-03-12 Thread Phil Wilson
-users] Reboots MsiSetMode does not seem to work when called from deferred custom action. So, my question should have been How do I tell Windows Installer from deferred custom action written in C that reboot is required

Re: [WiX-users] Reboots

2015-03-12 Thread Hoover, Jacob
: er = SUCCEEDED(hr) ? ERROR_SUCCESS : ERROR_INSTALL_FAILURE; return WcaFinalize(er); } -Original Message- From: Ivanoff, Alex [mailto:alex.ivan...@shavlik.com] Sent: Thursday, March 12, 2015 2:25 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Reboots Rob

Re: [WiX-users] Reboots

2015-03-12 Thread Ivanoff, Alex
Rob, Can you be more specific? I am not that familiar with wcautil.lib. -Original Message- From: Phil Wilson [mailto:phildgwil...@gmail.com] Sent: Thursday, March 12, 2015 12:08 To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Reboots MsiDoAction

Re: [WiX-users] Reboots

2015-03-12 Thread Nir Bar
WiX uses a method similar to what's described in this post: http://forum.installsite.net/index.php?showtopic=7745p=20726 Only instead of using a file with a predefined name in %TMP% dir it uses a global atom-table string. To use it call WcaDeferredActionRequiresReboot from your deferred CA code

Re: [WiX-users] Reboots

2015-03-12 Thread Rob Mensching
, 2015 11:42 AM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Reboots MsiSetMode does not seem to work when called from deferred custom action. So, my question should have been How do I tell Windows Installer from deferred custom action written in C that reboot is required

Re: [WiX-users] Reboots

2015-03-11 Thread Ivanoff, Alex
: Wednesday, March 11, 2015 12:18 To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Reboots 1. Call MsiSetMode (..) with one of the reboot choices depending on when you want the reboot to happen. 2. Condition the dialog on the ReplacedInUseFiles property. That should work

[WiX-users] Reboots

2015-03-10 Thread Ivanoff, Alex
I have two questions related to reboots. 1. How do I tell Windows Installer from custom action written in C that reboot is required? 2. I need to show some custom UI at the end of installation if reboot is pending (pure WIX, no Burn).