[wix-users] Force reboot immediately after .Net 4.5.1 install

Ziller, Ralf Ralf.Ziller at sartorius-stedim.com
Thu May 19 07:23:00 PDT 2016


Hello,

I have a Burn Bootstrapper (WiX 3.8) that installs .Net Framework 4.5.1. When the .Net 4.5.1 installer wants a restart I need to trigger it before the installation chain proceeds to the next package.
So I added
<ExitCode Value="1641" Behavior="forceReboot"/> <ExitCode Value="3010" Behavior="forceReboot"/> <ExitCode Value="0" Behavior="success"/> <ExitCode Behavior="error"/> But this does not trigger the reboot.
In the log I find the following lines
 [0C14:0370][2016-05-19T15:11:32]e000: Error 0x80070bc2: Process returned error: 0x80070bc2
[0C14:0370][2016-05-19T15:11:33]e000: Error 0x80070bc2: Failed to execute EXE package.
[0C28:068C][2016-05-19T15:11:33]i319: Applied execute package: NetFx451Redist, result: 0x0, restart: Required

So actually burn seems to recognize that a restart is needed but does not use the mapped forceReboot.
The lower two bytes of the error code 0x80070bc2 actually represent 3010.
How do I correctly map the result to forceReboot.
Using
<ExitCode Behavior="forceReboot" /> does work but actually is plain wrong because I want to fail the installation on any real error.

Ralf




Disclaimer :
Neither the footer, e-mail auto-signature, nor anything else in this e-mail
is intended to constitute an electronic signature binding the parties hereto
in the absence of an express written statement by the sender to the contrary.
The information contained in this e-mail is intended only for the individual addressed,
may contain confidential and/or privileged information, and may be legally protected
from disclosure via separate written agreement or otherwise. If you have received
this e-mail by mistake, please notify us immediately by return reply. Be sure to
delete this message and all its attachments from your system. Please note that any
unauthorized review, copying, disclosure or any other use of this information is
strictly prohibited.
WARNING: E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, received late or
incomplete, or could contain viruses. The sender therefore does not accept any
liability for any error or omission in the content of this message, either of which
are caused as a result of e-mail transmission.
Thank you.


More information about the wix-users mailing list