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=7745&p=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 Hoover, Jacob
ilure(hr, "Failed to SetProperty for Foo"); } LExit: 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

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() on

Re: [WiX-users] Reboots

2015-03-12 Thread Phil Wilson
sm to do that. > > _ > Short replies here. Complete answers over there: http://www.firegiant.com/ > > > -Original Message- > From: Ivanoff, Alex [mailto:alex.ivan...@shavlik.com] > Sent: Wednesday, March 11, 2015 11:42 AM > To: General discussion about th

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 req

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 o

Re: [WiX-users] Reboots

2015-03-11 Thread Ivanoff, Alex
com] Sent: 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

Re: [WiX-users] Reboots

2015-03-11 Thread Ivanoff, Alex
: 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, if not use MsiGetMode() to see if a