[wix-users] ManagedBootstrapperApplication Packages

Dimitri Vasilkov dimvasilk at gmail.com
Sun Dec 27 22:56:21 PST 2020


Hello,

I have started porting over a bootstrapper that was using one of the
default templates to a managed bootstrapper. The log from the install shows
the packages I am trying to install as state: Absent, default requested:
Present, ba requested: None, execute: None, rollback: None, cache: No,
uncache: No, dependency: None Something I am doing in the bootstrapper is
setting ba requested to None for these packages. I am not quite sure which
direction to follow debugging this issue as I made no changes in the
packages when moving from the default bootstrapper to the managed one. I
suspect it might be an issue with how I am setting up the .net dependency.
I get the .net installer popping up to set up the dependency each time I
run it even though .net 3.5 is included with windows 10 as far as I
understand it. I probably have biffed something in the detect condition but
I have not been able to find it. Here are the relevant parts of how I set
up .net

<Bundle >
<BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'>
<Payload SourceFile='..\pixBA\Bin\Release\pixBA.dll' />
<Payload SourceFile="..\pixBA\pixBA.BootstrapperCore.config"/>
      <Payload SourceFile="C:\Program Files (x86)\WiX Toolset
v3.11\SDK\Microsoft.Deployment.WindowsInstaller.Package.dll"/>
</BootstrapperApplicationRef>
<WixVariable Id="WixStdbaLicenseUrl" Value="" />
<WixVariable Id="WixBundleName" Value="Stack" />
<Variable Name="InstallFolder" bal:Overridable="yes" Type="string"
Value="[LocalAppDataFolder]" Persisted="yes"/>
<Chain>
<PackageGroupRef Id='Netfx4Redist' />
</Chain>
</Bundle>
<Fragment>
    <WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Redist" />
    <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" />

    <PackageGroup Id="Netfx4Redist">
      <ExePackage Id="Netfx4Redist" Cache="no" Compressed="yes"
PerMachine="yes" Permanent="yes" Vital="yes"
                  SourceFile="C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFX40\dotNetFx40_Full_x86_x64.exe"
                  DetectCondition="Netfx4FullVersion AND (NOT VersionNT64
OR Netfx4x64FullVersion)" />
    </PackageGroup>
  </Fragment>

Thank you in advance!

Best,
Dimitri


More information about the wix-users mailing list