[wix-users] Reboot WixStandardBootstrapperApplication vs ManagedBootstrapperApplicationHos
Sean Hall
r.sean.hall at gmail.com
Mon Dec 12 08:15:50 PST 2016
The relevant line in the WixStandardBA log is
[00EC:00E8][2016-12-12T16:32:11]i004: Bootstrapper application requested
restart at shutdown. Planned to restart already: No.
This comes from the OnShutdown method at line 269 in
WixStandardBootstrapperApplication.cpp (
https://github.com/wixtoolset/wix3/blob/develop/src/ext/BalExtension/wixstdba/WixStandardBootstrapperApplication.cpp#L269
).
The ManagedBootstrapperApplicationHost is just infrastructure to help you
write a custom BA in managed code. You are actually comparing the
WixStandardBA to WixBA. You would have to add a similar OnShutdown handler
to the managed BA and the result to Restart.
On Mon, Dec 12, 2016 at 9:51 AM, Baumann Ingo <i.baumann at commend.com> wrote:
> It seems that WixStandardBootstrapperApplication and
> ManagedBootstrapperApplicationHost do not handle scheduled reboot in msi
> in the same way.
>
> First of all I created a simple demo msi installing a txt file and
> scheduling a reboot before install finalize.
>
> <InstallExecuteSequence>
> <ScheduleReboot Before="InstallFinalize" >NOT Installed</ScheduleReboot>
> </InstallExecuteSequence>
>
> Then I tested the msi with WixStandardBootstrapperApplication and
> ManagedBootstrapperApplicationHost I built from source
> https://github.com/wixtoolset/wix3/tree/develop/src/Setup/WixBA. Only the
> WixStandardBootstrapperApplication comes up with the restart message box
> after installation of the msi is finished. The
> ManagedBootstrapperApplicationHost doesn't show any message box
> concerning reboot after installation. Reboot is recognized on re-run of the
> managed bootstrapper though.
>
> Does anybody know how to change the managed bootstrapper to show (default)
> reboot message box after installation of the package(s)? Setting variable
> RebootPending didn't work.
>
> Log WixStandardBootstrapperApplication:
>
> [00EC:00E8][2016-12-12T16:32:00]i001: Burn v3.10.3.3007, Windows v10.0
> (Build 14393: Service Pack 0), path: C:\Users\admin\AppData\Local\
> Temp\{21E15DFC-E38A-47A3-A66A-8CBF400F3BD1}\.cr\BootstrapperRebootTest.exe
> [00EC:00E8][2016-12-12T16:32:00]i009: Command Line:
> '-burn.clean.room=C:\tmp\BootstrapperRebootTest.exe
> -burn.filehandle.attached=468 -burn.filehandle.self=472'
> [00EC:00E8][2016-12-12T16:32:00]i000: Setting string variable
> 'WixBundleOriginalSource' to value 'C:\tmp\BootstrapperRebootTest.exe'
> [00EC:00E8][2016-12-12T16:32:00]i000: Setting string variable 'WixBundleOriginalSourceFolder'
> to value 'C:\tmp\'
> [00EC:00E8][2016-12-12T16:32:00]i000: Setting string variable
> 'WixBundleLog' to value 'C:\Users\admin\AppData\Local\
> Temp\BootstrapperRebootTest_20161212163200.log'
> [00EC:00E8][2016-12-12T16:32:00]i000: Setting string variable
> 'WixBundleName' to value 'BootstrapperRebootTest'
> [00EC:00E8][2016-12-12T16:32:00]i000: Setting string variable
> 'WixBundleManufacturer' to value 'Demo'
> [00EC:00D0][2016-12-12T16:32:00]i000: Setting numeric variable
> 'WixStdBALanguageId' to value 1033
> [00EC:00D0][2016-12-12T16:32:00]i000: Setting version variable
> 'WixBundleFileVersion' to value '1.0.0.0'
> [00EC:00E8][2016-12-12T16:32:00]i100: Detect begin, 1 packages
> [00EC:00E8][2016-12-12T16:32:00]i101: Detected package:
> DemoRebootSetup.msi, state: Absent, cached: None
> [00EC:00E8][2016-12-12T16:32:00]i199: Detect complete, result: 0x0
> [00EC:00D0][2016-12-12T16:32:02]i000: Setting numeric variable
> 'EulaAcceptCheckbox' to value 1
> [00EC:00E8][2016-12-12T16:32:02]i200: Plan begin, 1 packages, action:
> Install
> [00EC:00E8][2016-12-12T16:32:02]i000: Setting string variable
> 'WixBundleRollbackLog_DemoRebootSetup.msi' to value
> 'C:\Users\admin\AppData\Local\Temp\BootstrapperRebootTest_
> 20161212163200_000_DemoRebootSetup.msi_rollback.log'
> [00EC:00E8][2016-12-12T16:32:02]i000: Setting string variable
> 'WixBundleLog_DemoRebootSetup.msi' to value 'C:\Users\admin\AppData\Local\
> Temp\BootstrapperRebootTest_20161212163200_000_DemoRebootSetup.msi.log'
> [00EC:00E8][2016-12-12T16:32:02]i201: Planned package:
> DemoRebootSetup.msi, state: Absent, default requested: Present, ba
> requested: Present, execute: Install, rollback: Uninstall, cache: Yes,
> uncache: No, dependency: Register
> [00EC:00E8][2016-12-12T16:32:02]i299: Plan complete, result: 0x0
> [00EC:00E8][2016-12-12T16:32:02]i300: Apply begin
> [00EC:00E8][2016-12-12T16:32:02]i010: Launching elevated engine process.
> [00EC:00E8][2016-12-12T16:32:06]i011: Launched elevated engine process.
> [00EC:00E8][2016-12-12T16:32:06]i012: Connected to elevated engine.
> [0DA0:1748][2016-12-12T16:32:06]i358: Pausing automatic updates.
> [0DA0:1748][2016-12-12T16:32:06]i359: Paused automatic updates.
> [0DA0:1748][2016-12-12T16:32:06]i360: Creating a system restore point.
> [0DA0:1748][2016-12-12T16:32:06]w363: Could not create system restore
> point, error: 0x80070422. Continuing...
> [0DA0:1748][2016-12-12T16:32:06]i370: Session begin, registration key:
> SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{
> 941f02fe-dd4a-4ac1-a5e1-b24ddab0c1b9}, options: 0x7, disable resume: No
> [0DA0:1748][2016-12-12T16:32:06]i000: Caching bundle from:
> 'C:\Users\admin\AppData\Local\Temp\{3FFD1888-B963-46B4-AE29-
> 323713CEC6D5}\.be\BootstrapperRebootTest.exe' to: 'C:\ProgramData\Package
> Cache\{941f02fe-dd4a-4ac1-a5e1-b24ddab0c1b9}\BootstrapperRebootTest.exe'
> [0DA0:1748][2016-12-12T16:32:06]i320: Registering bundle dependency
> provider: {941f02fe-dd4a-4ac1-a5e1-b24ddab0c1b9}, version: 1.0.0.0
> [0DA0:1748][2016-12-12T16:32:06]i371: Updating session, registration key:
> SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{
> 941f02fe-dd4a-4ac1-a5e1-b24ddab0c1b9}, resume: Active, restart initiated:
> No, disable resume: No
> [0DA0:17BC][2016-12-12T16:32:06]i305: Verified acquired payload:
> DemoRebootSetup.msi at path: C:\ProgramData\Package Cache\.unverified\DemoRebootSetup.msi,
> moving to: C:\ProgramData\Package Cache\{BDEF8141-4FE2-42D0-
> AE12-A916EE09BD88}v1.0.0.0\DemoRebootSetup.msi.
> [0DA0:1748][2016-12-12T16:32:06]i323: Registering package dependency
> provider: {BDEF8141-4FE2-42D0-AE12-A916EE09BD88}, version: 1.0.0.0,
> package: DemoRebootSetup.msi
> [0DA0:1748][2016-12-12T16:32:06]i301: Applying execute package:
> DemoRebootSetup.msi, action: Install, path: C:\ProgramData\Package
> Cache\{BDEF8141-4FE2-42D0-AE12-A916EE09BD88}v1.0.0.0\DemoRebootSetup.msi,
> arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7"'
> [00EC:00E8][2016-12-12T16:32:08]i319: Applied execute package:
> DemoRebootSetup.msi, result: 0x0, restart: Required
> [0DA0:1748][2016-12-12T16:32:08]i325: Registering dependency:
> {941f02fe-dd4a-4ac1-a5e1-b24ddab0c1b9} on package provider:
> {BDEF8141-4FE2-42D0-AE12-A916EE09BD88}, package: DemoRebootSetup.msi
> [0DA0:1748][2016-12-12T16:32:08]i372: Session end, registration key:
> SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{
> 941f02fe-dd4a-4ac1-a5e1-b24ddab0c1b9}, resume: ARP, restart: Required,
> disable resume: No
> [0DA0:1748][2016-12-12T16:32:08]i371: Updating session, registration key:
> SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{
> 941f02fe-dd4a-4ac1-a5e1-b24ddab0c1b9}, resume: ARP, restart initiated:
> No, disable resume: No
> [00EC:00E8][2016-12-12T16:32:09]i399: Apply complete, result: 0x0,
> restart: Required, ba requested restart: No
> [00EC:00E8][2016-12-12T16:32:11]i500: Shutting down, exit code: 0xbc2
> [00EC:00E8][2016-12-12T16:32:11]i004: Bootstrapper application requested
> restart at shutdown. Planned to restart already: No.
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable: EulaAcceptCheckbox = 1
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable: WixBundleAction = 5
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable: WixBundleElevated = 1
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable: WixBundleFileVersion =
> 1.0.0.0
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable: WixBundleInstalled = 0
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable: WixBundleLog =
> C:\Users\admin\AppData\Local\Temp\BootstrapperRebootTest_
> 20161212163200.log
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable:
> WixBundleLog_DemoRebootSetup.msi = C:\Users\admin\AppData\Local\
> Temp\BootstrapperRebootTest_20161212163200_000_DemoRebootSetup.msi.log
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable: WixBundleManufacturer =
> Demo
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable: WixBundleName =
> BootstrapperRebootTest
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable: WixBundleOriginalSource =
> C:\tmp\BootstrapperRebootTest.exe
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable:
> WixBundleOriginalSourceFolder = C:\tmp\
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable: WixBundleProviderKey =
> {941f02fe-dd4a-4ac1-a5e1-b24ddab0c1b9}
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable: WixBundleRollbackLog_DemoRebootSetup.msi
> = C:\Users\admin\AppData\Local\Temp\BootstrapperRebootTest_
> 20161212163200_000_DemoRebootSetup.msi_rollback.log
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable:
> WixBundleSourceProcessFolder = C:\tmp\
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable:
> WixBundleSourceProcessPath = C:\tmp\BootstrapperRebootTest.exe
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable: WixBundleTag =
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable: WixBundleVersion = 1.0.0.0
> [00EC:00E8][2016-12-12T16:32:11]i410: Variable: WixStdBALanguageId = 1033
> [00EC:00E8][2016-12-12T16:32:11]i007: Exit code: 0xbc2, restarting: Yes
> [00EC:00E8][2016-12-12T16:32:11]w005: Restarting computer...
> =======================================
>
> Log ManagedBootstrapperApplicationHost:
>
> [1584:1588][2016-12-12T16:40:26]i001: Burn v3.10.3.3007, Windows v10.0
> (Build 14393: Service Pack 0), path: C:\Users\admin\AppData\Local\
> Temp\{D2314010-9411-4503-8EFF-2B7BFA4A399D}\.cr\Bootstrapper.exe
> [1584:1588][2016-12-12T16:40:26]i009: Command Line:
> '-burn.clean.room=C:\tmp\Bootstrapper.exe -burn.filehandle.attached=468
> -burn.filehandle.self=472'
> [1584:1588][2016-12-12T16:40:26]i000: Setting string variable
> 'WixBundleOriginalSource' to value 'C:\tmp\Bootstrapper.exe'
> [1584:1588][2016-12-12T16:40:26]i000: Setting string variable 'WixBundleOriginalSourceFolder'
> to value 'C:\tmp\'
> [1584:1588][2016-12-12T16:40:27]i000: Setting string variable
> 'WixBundleLog' to value 'C:\Users\admin\AppData\Local\Temp\Bootstrapper_
> 20161212164027.log'
> [1584:1588][2016-12-12T16:40:27]i000: Setting string variable
> 'WixBundleName' to value 'Bootstrapper'
> [1584:1588][2016-12-12T16:40:27]i000: Setting string variable
> 'WixBundleManufacturer' to value 'Demo'
> [1584:1588][2016-12-12T16:40:29]i000: Loading managed bootstrapper
> application.
> [1584:1588][2016-12-12T16:40:31]i000: Creating BA thread to run
> asynchronously.
> [1584:15B8][2016-12-12T16:40:33]i000: Running the WiX BA.
> [1584:1588][2016-12-12T16:40:33]i100: Detect begin, 2 packages
> [1584:1588][2016-12-12T16:40:33]i000: Setting string variable
> 'NETFRAMEWORK45' to value '394802'
> [1584:1588][2016-12-12T16:40:33]i052: Condition 'NETFRAMEWORK45 >=
> 379893' evaluates to true.
> [1584:1588][2016-12-12T16:40:33]i101: Detected package: NetFx452Redist,
> state: Present, cached: None
> [1584:1588][2016-12-12T16:40:33]i101: Detected package:
> DemoRebootSetup.msi, state: Absent, cached: None
> [1584:15B8][2016-12-12T16:40:33]i000: Creating a UI.
> [1584:1588][2016-12-12T16:40:33]i052: Condition 'NETFRAMEWORK35_SP_LEVEL
> < 1' evaluates to false.
> [1584:1588][2016-12-12T16:40:33]i199: Detect complete, result: 0x0
> [1584:1588][2016-12-12T16:40:42]i200: Plan begin, 2 packages, action:
> Install
> [1584:1588][2016-12-12T16:40:42]w321: Skipping dependency registration on
> package with no dependency providers: NetFx452Redist
> [1584:1588][2016-12-12T16:40:42]i000: Setting string variable
> 'WixBundleRollbackLog_DemoRebootSetup.msi' to value
> 'C:\Users\admin\AppData\Local\Temp\Bootstrapper_20161212164027_000_
> DemoRebootSetup.msi_rollback.log'
> [1584:1588][2016-12-12T16:40:42]i000: Setting string variable
> 'WixBundleLog_DemoRebootSetup.msi' to value 'C:\Users\admin\AppData\Local\
> Temp\Bootstrapper_20161212164027_000_DemoRebootSetup.msi.log'
> [1584:1588][2016-12-12T16:40:42]i201: Planned package: NetFx452Redist,
> state: Present, default requested: Present, ba requested: Present, execute:
> None, rollback: None, cache: No, uncache: No, dependency: None
> [1584:1588][2016-12-12T16:40:42]i201: Planned package:
> DemoRebootSetup.msi, state: Absent, default requested: Present, ba
> requested: Present, execute: Install, rollback: Uninstall, cache: Yes,
> uncache: No, dependency: Register
> [1584:1588][2016-12-12T16:40:42]i299: Plan complete, result: 0x0
> [1584:1588][2016-12-12T16:40:42]i300: Apply begin
> [1584:1588][2016-12-12T16:40:42]i010: Launching elevated engine process.
> [1584:1588][2016-12-12T16:40:45]i011: Launched elevated engine process.
> [1584:1588][2016-12-12T16:40:45]i012: Connected to elevated engine.
> [16F4:16F8][2016-12-12T16:40:45]i358: Pausing automatic updates.
> [16F4:16F8][2016-12-12T16:40:45]i359: Paused automatic updates.
> [16F4:16F8][2016-12-12T16:40:45]i360: Creating a system restore point.
> [16F4:16F8][2016-12-12T16:40:46]w363: Could not create system restore
> point, error: 0x80070422. Continuing...
> [16F4:16F8][2016-12-12T16:40:46]i370: Session begin, registration key:
> SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{
> fd453abc-1315-4159-ae8d-9b61937c6016}, options: 0x7, disable resume: No
> [16F4:16F8][2016-12-12T16:40:46]i000: Caching bundle from:
> 'C:\Users\admin\AppData\Local\Temp\{A6D2AAAA-F99C-4EC3-8DF5-
> 05C3920C8DEC}\.be\Bootstrapper.exe' to: 'C:\ProgramData\Package
> Cache\{fd453abc-1315-4159-ae8d-9b61937c6016}\Bootstrapper.exe'
> [16F4:16F8][2016-12-12T16:40:46]i320: Registering bundle dependency
> provider: {fd453abc-1315-4159-ae8d-9b61937c6016}, version: 1.0.0.0
> [16F4:16F8][2016-12-12T16:40:46]i371: Updating session, registration key:
> SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{
> fd453abc-1315-4159-ae8d-9b61937c6016}, resume: Active, restart initiated:
> No, disable resume: No
> [16F4:170C][2016-12-12T16:40:46]i305: Verified acquired payload:
> DemoRebootSetup.msi at path: C:\ProgramData\Package Cache\.unverified\DemoRebootSetup.msi,
> moving to: C:\ProgramData\Package Cache\{B2762CD1-9482-4C11-
> B876-30FD74B0CCDC}v1.0.0.0\DemoRebootSetup.msi.
> [16F4:16F8][2016-12-12T16:40:46]i323: Registering package dependency
> provider: {B2762CD1-9482-4C11-B876-30FD74B0CCDC}, version: 1.0.0.0,
> package: DemoRebootSetup.msi
> [16F4:16F8][2016-12-12T16:40:46]i301: Applying execute package:
> DemoRebootSetup.msi, action: Install, path: C:\ProgramData\Package
> Cache\{B2762CD1-9482-4C11-B876-30FD74B0CCDC}v1.0.0.0\DemoRebootSetup.msi,
> arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7"'
> [1584:1588][2016-12-12T16:40:47]i319: Applied execute package:
> DemoRebootSetup.msi, result: 0x0, restart: Required
> [16F4:16F8][2016-12-12T16:40:47]i325: Registering dependency:
> {fd453abc-1315-4159-ae8d-9b61937c6016} on package provider:
> {B2762CD1-9482-4C11-B876-30FD74B0CCDC}, package: DemoRebootSetup.msi
> [16F4:16F8][2016-12-12T16:40:47]i372: Session end, registration key:
> SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{
> fd453abc-1315-4159-ae8d-9b61937c6016}, resume: ARP, restart: Required,
> disable resume: No
> [16F4:16F8][2016-12-12T16:40:47]i371: Updating session, registration key:
> SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{
> fd453abc-1315-4159-ae8d-9b61937c6016}, resume: ARP, restart initiated:
> No, disable resume: No
> [1584:1588][2016-12-12T16:40:47]i399: Apply complete, result: 0x0,
> restart: Required, ba requested restart: No
> [1584:1588][2016-12-12T16:40:49]i500: Shutting down, exit code: 0x0
> [1584:1588][2016-12-12T16:40:49]i410: Variable: NETFRAMEWORK45 = 394802
> [1584:1588][2016-12-12T16:40:49]i410: Variable: WixBundleAction = 5
> [1584:1588][2016-12-12T16:40:49]i410: Variable: WixBundleElevated = 1
> [1584:1588][2016-12-12T16:40:49]i410: Variable: WixBundleLog =
> C:\Users\admin\AppData\Local\Temp\Bootstrapper_20161212164027.log
> [1584:1588][2016-12-12T16:40:49]i410: Variable:
> WixBundleLog_DemoRebootSetup.msi = C:\Users\admin\AppData\Local\
> Temp\Bootstrapper_20161212164027_000_DemoRebootSetup.msi.log
> [1584:1588][2016-12-12T16:40:49]i410: Variable: WixBundleManufacturer =
> Demo
> [1584:1588][2016-12-12T16:40:49]i410: Variable: WixBundleName =
> Bootstrapper
> [1584:1588][2016-12-12T16:40:49]i410: Variable: WixBundleOriginalSource =
> C:\tmp\Bootstrapper.exe
> [1584:1588][2016-12-12T16:40:49]i410: Variable:
> WixBundleOriginalSourceFolder = C:\tmp\
> [1584:1588][2016-12-12T16:40:49]i410: Variable: WixBundleProviderKey =
> {fd453abc-1315-4159-ae8d-9b61937c6016}
> [1584:1588][2016-12-12T16:40:49]i410: Variable: WixBundleRollbackLog_DemoRebootSetup.msi
> = C:\Users\admin\AppData\Local\Temp\Bootstrapper_20161212164027_000_
> DemoRebootSetup.msi_rollback.log
> [1584:1588][2016-12-12T16:40:49]i410: Variable:
> WixBundleSourceProcessFolder = C:\tmp\
> [1584:1588][2016-12-12T16:40:49]i410: Variable:
> WixBundleSourceProcessPath = C:\tmp\Bootstrapper.exe
> [1584:1588][2016-12-12T16:40:49]i410: Variable: WixBundleTag =
> [1584:1588][2016-12-12T16:40:49]i410: Variable: WixBundleVersion = 1.0.0.0
> [1584:1588][2016-12-12T16:40:49]i007: Exit code: 0x0, restarting: No
>
> Many thanks
> Ingo
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
More information about the wix-users
mailing list