Re: [WiX-users] Restart - setting from CA and checking from Custon BA

2015-04-28 Thread ronif
Thanks for your answers! eventually I ended up doing this: from CA: session.SetMode(InstallRunMode.RebootNow, true); return ActionResult.SkipRemainingActions; and from CBA: private void BootstrapperApplication_ExecutePackageComplete(object sender, ExecutePackageCompleteEventArgs eventAr

Re: [WiX-users] Restart - setting from CA and checking from Custon BA

2015-04-27 Thread Phill Hogland
>>Is it possible .and to check it from my WPF custom bootstrapper application? In the ApplyComplete handler (see WixBA InstallationViewModel of wix src) in code similar to this: if (this.root.State != this.root.PreApplyState) { this.root.State = Hresult.Succeeded(

Re: [WiX-users] Restart - setting from CA and checking from Custon BA

2015-04-27 Thread Phil Wilson
If you can call MsiSetMode (installation handle, MSIRUNMODE_REBOOTATEND) then that will result in a ERROR_SUCCESS_REBOOT_REQUIRED returned (assuming no other errors). --- Phil Wilson On Mon, Apr 27, 2015 at 7:05 AM, ronif wrote: > Hi, > > Is it possible to set in my c# Custom action

[WiX-users] Restart - setting from CA and checking from Custon BA

2015-04-27 Thread ronif
Hi, Is it possible to set in my c# Custom action that a restart is required and to check it from my WPF custom bootstrapper application? -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Restart-setting-from-CA-and-checking-from-Custon-BA-tp7600110.