Wix Managed bootstrapper

496 views Asked by At

I have some ExecPackages chained in my bundle.wxs. I have a PackageGroup section for installing .Net Framework 4.0. This has been hooked in the beginning of the chain as a PackageGroupRef. When I double click on the bootstrapper, a .Net framework installation window pops up which installs .Net Fwk. After the installation of .Net, I would expect the bootstrapper to display the managed UI and continue with the actual installation activities. But, the issue is that it just stops after the .Net framework installation. I have to execute the bootstrapper a second time for the UI to pop up and resume the installation. The bundle.wxs content goes like this:

     <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" 
             xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" 
             xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
          <Bundle Name="My-Installer" 
                  Version="3.0" 
                  Manufacturer="XXXX"
                  HelpUrl="XXXX"
                  UpdateUrl="XXXX"
                  UpgradeCode="XXXX">
            <!--Compressed="no"-->

            <!--Custom dialog is a WPF form-->
            <BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'>
              <Payload Name='BootstrapperCore.config' SourceFile='..\MyBootstrapperCustomUI\MyBootstrapperCustomUI\MyBootstrapperCustomUI.BootstrapperCore.config' />
              <Payload SourceFile='..\MyBootstrapperCustomUI\MyBootstrapperCustomUI\bin\$(var.Configuration)\MyBootstrapperCustomUI.dll' />
            </BootstrapperApplicationRef>

            <Chain>
              <PackageGroupRef Id='Netfx4Full' />
              <ExePackage Id="MyPackage1"..../>
              <ExePackage Id="MyPackage2"..../>
            </Chain>
     <Fragment>
         <WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Full" />
         <WixVariable Id="WixMbaPrereqLicenseUrl" Value="NetfxLicense.rtf" />
         <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full"   Value="Version" Variable="Netfx4FullVersion" />
         <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" Value="Version" Variable="Netfx4x64FullVersion" Win64="yes" />
         <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.5" Value="Version" Variable="Netfx35Version"/>
         <PackageGroup Id="Netfx4Full">
              <ExePackage Id="Netfx35" Cache="no" Compressed="no" PerMachine="yes" Permanent="yes" Vital="yes" SourceFile="..\MyApp\dotNETFramework3.5SP1\dotnetfx35.exe" Name="MyApp\dotNETFramework3.5SP1\dotnetfx35.exe" DetectCondition="Netfx35Version AND (Netfx35Version &gt;= v3.5.30729.1)" InstallCommand="/q /norestart" UninstallCommand="/q /norestart" 
InstallCondition="(NOT Netfx35Version OR (Netfx35Version &lt; v3.5.30729.1)) AND NOT VersionNT >= v6.0"/><!--donot install if win7-->

              <ExePackage Id="Netfx4Full" Cache="no" Compressed="no" PerMachine="yes" Permanent="yes" Vital="yes" SourceFile="..\MyApp\dotNETFramework4.0\dotNetFx40_Full_x86_x64.exe" Name="MyApp\dotNETFramework4.0\dotNetFx40_Full_x86_x64.exe" InstallCommand="/passive /norestart" DetectCondition="Netfx4FullVersion AND (NOT VersionNT64 OR Netfx4x64FullVersion)" />
        </PackageGroup>
      </Fragment>

</Wix>
</Bundle>
0

There are 0 answers