[wix-users] Forcing a reboot after installing an MSI from a Bundle

rpapo at comcast.net rpapo at comcast.net
Fri Sep 11 12:09:07 PDT 2020


I am building with Rob's suggestion right now, though I really wonder about
the "reboot before installfinalize" aspect of it.  Would that not allow some
installer tasks to not happen before the reboot?

In any case, we lost our InstallShield setup some six months ago, and I have
been reimplementing everything with the WiX Toolset v3.14.  One of the
things the old installer did, and which is a requirement for most systems,
is to install the Visual Studio 2008 redistributables.  I found, through
trial and error, that installing the VS2008 runtimes using the merge modules
was not sufficient if I only installed the base merge modules.  I also had
to install the policy modules.  And when I did that, and did not reboot
afterwards, then not everything was in place properly.  The merge modules
scheduled a reboot, but again, nothing was going to happen until after the
entire rest of the installation was successful.  But before then, two
services and a tray application were to be started, and they all failed with
Window SXS errors because the Side-By-Side policy rules were not yet in
place.

--Rick

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Herman
van Drie via wix-users
Sent: Friday, September 11, 2020 2:52 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Herman van Drie <hvandrie at outlook.com>
Subject: Re: [wix-users] Forcing a reboot after installing an MSI from a
Bundle

What does your prerequisite package do that would require a reboot?
I always look why it needs that, and if it's just to start a driver/service,
I would make sure it gets started using a CA before continuing.
So, instead of making the scenario unnecessarily complex, rather deal with
original issue.

Mean, can help you, but you need to provide better info about your
prerequisite package.

Cheers,

Herman

Get Outlook for Android<https://aka.ms/ghei36>

________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Rob
Mensching via wix-users <wix-users at lists.wixtoolset.org>
Sent: Friday, September 11, 2020 8:44:17 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Rob Mensching <rob at firegiant.com>
Subject: Re: [wix-users] Forcing a reboot after installing an MSI from a
Bundle

https://docs.microsoft.com/en-us/windows/win32/msi/forcereboot-action ?

---
Short replies here. Complete answers here:
https://www.firegiant.com/services/

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Rick
Papo via wix-users
Sent: Friday, September 11, 2020 11:40 AM
To: 'WiX Toolset Users Mailing List' <wix-users at lists.wixtoolset.org>
Cc: rpapo at comcast.net
Subject: Re: [wix-users] Forcing a reboot after installing an MSI from a
Bundle

More info: The MSI already the following in it.

    <InstallExecuteSequence>
      <ScheduleReboot After="InstallFinalize"/>
    </InstallExecuteSequence>

When you run the MSI directly, it reboots as requested.  When you run it
from within a Bundle, the reboot request is saved for later.   I need it to
happen at once, and for the installer to continue after the reboot.

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Rick
Papo via wix-users
Sent: Friday, September 11, 2020 1:51 PM
To: 'WiX Toolset Users Mailing List' <wix-users at lists.wixtoolset.org>
Cc: rpapo at comcast.net
Subject: [wix-users] Forcing a reboot after installing an MSI from a Bundle

I find information online about how to force a reboot after an <ExePackage>
executes, but nothing about how to force an immediate reboot if an
<MsiPackage> requests it.  I have a situation where a prerequisite package
required for certain machines requires a reboot afterwards.  If that reboot
does not happen, then other things (service starts, mainly) will blow up
later in the installation.

Any ideas?

--Rick Papo


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/




More information about the wix-users mailing list