[wix-users] My fist custom bootstrapper application

Helge Kruse Helge.Kruse at gmx.net
Tue Jul 4 13:39:52 PDT 2017


Am 03.07.2017 um 07:12 schrieb Helge Kruse:
> But finally I can use WixBalExtensionExt now.

Well, at least I don't get error messages. But I get a strange result. I
can compile link the bundle and run the resulting EXE File. But the
chained MSI seams to be not installed. If I run the MSI standalone
everything works as expected.


Here are the parameters to candle and light:

candle -ext ..\WixBalExtensionExt.dll WixExtBA_Boot.wxs
Light -ext ..\WixBalExtensionExt.dll WixExtBA_Boot.wixobj


The Bundel.wxs source code is here:

<?xml version="1.0" encoding="UTF-8"?>
<Wix
  xmlns="http://schemas.microsoft.com/wix/2006/wi"
  xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
  xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
  <Bundle Name="WixExtBA_Boot" Version="1.0.0.0" Manufacturer="Helge"
UpgradeCode="898e6cdc-441b-4c09-8d05-12c1692b81c0">

    <BootstrapperApplicationRef
Id="WixExtendedBootstrapperApplication.HyperlinkLicense">
    </BootstrapperApplicationRef>

    <WixVariable Id="WixExtbaLicenseUrl" Value="License.htm" />

    <Chain DisableSystemRestore="yes">
      <MsiPackage Id="Setup" Compressed="yes"
SourceFile="WixExtBA_Experiment.msi" Vital="yes">
      </MsiPackage>
    </Chain>
  </Bundle>
</Wix>

When I run the resulting WixExtBA_Boot.exe I get the attached log.

What's wrong with this WixBalExtensionExt.dll? If I replace the
ApplicationRef Id to the WixStandardBootstrapperApplication and the
corresponding -ext path then the MSI gets installed.

Best regards
Helge

-------------- next part --------------
[30B8:165C][2017-07-04T22:33:51]i001: Burn v3.10.3.3007, Windows v10.0 (Build 14393: Service Pack 0), path: C:\Users\Helge\AppData\Local\Temp\{31BAAE5A-9FD9-4E66-87DD-0B90CE681AC1}\.cr\Bundel.exe
[30B8:165C][2017-07-04T22:33:51]i009: Command Line: '-burn.clean.room=C:\Users\Helge\Documents\Projects\HowTo\SetUp\Experiment2\WixExtBA_Boot\Bundel.exe -burn.filehandle.attached=468 -burn.filehandle.self=472'
[30B8:165C][2017-07-04T22:33:51]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\Helge\Documents\Projects\HowTo\SetUp\Experiment2\WixExtBA_Boot\Bundel.exe'
[30B8:165C][2017-07-04T22:33:51]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\Helge\Documents\Projects\HowTo\SetUp\Experiment2\WixExtBA_Boot\'
[30B8:165C][2017-07-04T22:33:51]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\Helge\AppData\Local\Temp\WixExtBA_Boot_20170704223351.log'
[30B8:165C][2017-07-04T22:33:51]i000: Setting string variable 'WixBundleName' to value 'WixExtBA_Boot'
[30B8:165C][2017-07-04T22:33:51]i000: Setting string variable 'WixBundleManufacturer' to value 'Helge'
[30B8:2E3C][2017-07-04T22:33:51]i000: Setting version variable 'WixBundleFileVersion' to value '1.0.0.0'
[30B8:165C][2017-07-04T22:33:51]i100: Detect begin, 1 packages
[30B8:165C][2017-07-04T22:33:51]i101: Detected package: Setup, state: Absent, cached: Complete
[30B8:165C][2017-07-04T22:33:51]i199: Detect complete, result: 0x0
[30B8:2E3C][2017-07-04T22:33:54]i000: Setting numeric variable 'EulaAcceptCheckbox' to value 1
[30B8:165C][2017-07-04T22:33:54]i200: Plan begin, 1 packages, action: Cache
[30B8:165C][2017-07-04T22:33:54]i201: Planned package: Setup, state: Absent, default requested: Cache, ba requested: Cache, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[30B8:165C][2017-07-04T22:33:54]i299: Plan complete, result: 0x0
[30B8:165C][2017-07-04T22:33:54]i300: Apply begin
[30B8:165C][2017-07-04T22:33:54]i010: Launching elevated engine process.
[30B8:165C][2017-07-04T22:33:55]i011: Launched elevated engine process.
[30B8:165C][2017-07-04T22:33:55]i012: Connected to elevated engine.
[23A8:3698][2017-07-04T22:33:55]i358: Pausing automatic updates.
[23A8:3698][2017-07-04T22:33:55]i359: Paused automatic updates.
[23A8:3698][2017-07-04T22:33:55]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{818104ab-acca-465c-9ac9-3e49cfd1d657}, options: 0x7, disable resume: No
[23A8:3698][2017-07-04T22:33:56]i000: Caching bundle from: 'C:\Users\Helge\AppData\Local\Temp\{9C0FFE9B-5A12-47C6-A64C-F5A0ECB5E7C8}\.be\Bundel.exe' to: 'C:\ProgramData\Package Cache\{818104ab-acca-465c-9ac9-3e49cfd1d657}\Bundel.exe'
[23A8:3698][2017-07-04T22:33:56]i320: Registering bundle dependency provider: {818104ab-acca-465c-9ac9-3e49cfd1d657}, version: 1.0.0.0
[23A8:3698][2017-07-04T22:33:56]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{818104ab-acca-465c-9ac9-3e49cfd1d657}, resume: Active, restart initiated: No, disable resume: No
[23A8:1840][2017-07-04T22:33:56]i304: Verified existing payload: Setup at path: C:\ProgramData\Package Cache\{941D4795-1BAB-4390-BDD8-4A6C9EFFC0A0}v1.0.0.0\WixExtBA_Experiment.msi.
[23A8:1840][2017-07-04T22:33:56]i304: Verified existing payload: cabC34DD87399DD3DB38CAF2ACF028BC082 at path: C:\ProgramData\Package Cache\{941D4795-1BAB-4390-BDD8-4A6C9EFFC0A0}v1.0.0.0\cab1.cab.
[23A8:3698][2017-07-04T22:33:56]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{818104ab-acca-465c-9ac9-3e49cfd1d657}, resume: None, restart: None, disable resume: No
[23A8:3698][2017-07-04T22:33:56]i330: Removed bundle dependency provider: {818104ab-acca-465c-9ac9-3e49cfd1d657}
[23A8:3698][2017-07-04T22:33:56]i352: Removing cached bundle: {818104ab-acca-465c-9ac9-3e49cfd1d657}, from path: C:\ProgramData\Package Cache\{818104ab-acca-465c-9ac9-3e49cfd1d657}\
[23A8:3698][2017-07-04T22:33:56]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{818104ab-acca-465c-9ac9-3e49cfd1d657}, resume: None, restart initiated: No, disable resume: No
[30B8:165C][2017-07-04T22:33:56]i399: Apply complete, result: 0x0, restart: None, ba requested restart:  No
[30B8:165C][2017-07-04T22:33:57]i500: Shutting down, exit code: 0x0
[30B8:165C][2017-07-04T22:33:57]i410: Variable: EulaAcceptCheckbox = 1
[30B8:165C][2017-07-04T22:33:57]i410: Variable: WixBundleAction = 4
[30B8:165C][2017-07-04T22:33:57]i410: Variable: WixBundleElevated = 1
[30B8:165C][2017-07-04T22:33:57]i410: Variable: WixBundleFileVersion = 1.0.0.0
[30B8:165C][2017-07-04T22:33:57]i410: Variable: WixBundleInstalled = 0
[30B8:165C][2017-07-04T22:33:57]i410: Variable: WixBundleLog = C:\Users\Helge\AppData\Local\Temp\WixExtBA_Boot_20170704223351.log
[30B8:165C][2017-07-04T22:33:57]i410: Variable: WixBundleManufacturer = Helge
[30B8:165C][2017-07-04T22:33:57]i410: Variable: WixBundleName = WixExtBA_Boot
[30B8:165C][2017-07-04T22:33:57]i410: Variable: WixBundleOriginalSource = C:\Users\Helge\Documents\Projects\HowTo\SetUp\Experiment2\WixExtBA_Boot\Bundel.exe
[30B8:165C][2017-07-04T22:33:57]i410: Variable: WixBundleOriginalSourceFolder = C:\Users\Helge\Documents\Projects\HowTo\SetUp\Experiment2\WixExtBA_Boot\
[30B8:165C][2017-07-04T22:33:57]i410: Variable: WixBundleProviderKey = {818104ab-acca-465c-9ac9-3e49cfd1d657}
[30B8:165C][2017-07-04T22:33:57]i410: Variable: WixBundleSourceProcessFolder = C:\Users\Helge\Documents\Projects\HowTo\SetUp\Experiment2\WixExtBA_Boot\
[30B8:165C][2017-07-04T22:33:57]i410: Variable: WixBundleSourceProcessPath = C:\Users\Helge\Documents\Projects\HowTo\SetUp\Experiment2\WixExtBA_Boot\Bundel.exe
[30B8:165C][2017-07-04T22:33:57]i410: Variable: WixBundleTag = 
[30B8:165C][2017-07-04T22:33:57]i410: Variable: WixBundleVersion = 1.0.0.0
[30B8:165C][2017-07-04T22:33:57]i007: Exit code: 0x0, restarting: No


More information about the wix-users mailing list