[wix-users] .NET redist not installing

Joel Budreau joel.budreau at gmail.com
Mon Oct 9 16:03:11 PDT 2017


Also, my full Bundle.wxs file:

<?xml version="1.0" encoding="UTF-8"?>
<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"
     xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
   <Bundle Name="My Bundle"
           Version="1.0.0"
           Manufacturer="Joel Budreau"
           UpgradeCode="B0C46057-9129-4DAB-96AA-75AC86C8724B"
           IconSourceFile="..\Resources\product.ico"
           Condition="VersionNT > v6.0">
      <BootstrapperApplicationRef Id="ManagedBootstrapperApplicationHost">
         <Payload SourceFile="..\MyBundleBA\BootstrapperCore.config" />
         <Payload SourceFile="$(var.BOOTSTRAPPER_BUILD_DIR)\MyBundleBA.dll"
/>
         <Payload
SourceFile="$(var.WIX_ROOT)\Microsoft.Deployment.WindowsInstaller.dll" />
         <Payload SourceFile="$(var.WIX_ROOT)\wix.dll" />
         <Payload SourceFile="$(var.WIX_ROOT)\winterop.dll" />
         <Payload
SourceFile="$(var.MAINSRCROOT)\installer\Resources\NetfxLicense.rtf" />
      </BootstrapperApplicationRef>

      <Chain>
         <!-- .NET requirement. Check the NetFxExtension for more
information -->
         <PackageGroupRef Id="Netfx4Full" />

         <!-- MSI packages -->
         <PackageGroupRef Id="MSIs" />
      </Chain>
   </Bundle>


   <Fragment>
      <PackageGroup Id="MSIs">...</PackageGroup>
   </Fragment>


   <!-- .NET 4.0 redist -->
   <Fragment>
      <util:RegistrySearchRef Id="NETFRAMEWORK40" />

      <WixVariable Id="WixMbaPrereqPackageId" Value="NetFx4Full" />
      <WixVariable Id="WixMbaPrereqLicenseUrl" Value="NetfxLicense.rtf" />

      <PackageGroup Id="Netfx4Full">
         <ExePackage Id="Netfx4Full" Cache="no" Compressed="yes"
PerMachine="yes" Permanent="yes" Vital="yes"

 SourceFile="$(var.DOTNETDIR)\win32\dotnet-redist-4.0\dotNetFx40_Full_x86_x64.exe"
                     InstallCommand="/q /norestart /ChainingPackage
"[WixBundleName]""
                     DetectCondition="NETFRAMEWORK40" />
      </PackageGroup>
   </Fragment>
</Wix>

On Mon, Oct 9, 2017 at 2:58 PM, Joel Budreau <joel.budreau at gmail.com> wrote:

> Thanks Blair. Here's some more information...
>
> *OS: Windows 7 (32bit) with no .NET installed*
>
> *I see this at the bottom of the log file:*
> The prerequisites were already installed. The bootstrapper application
> will not be reloaded to prevent an infinite loop.
>
> How is it determined that this .NET prereq is already installed??
>
>
> *The full log file:*
> [05C4:0CA0][2017-10-06T07:41:51]i001: Burn v3.11.0.1701, Windows v6.1
> (Build 7601: Service Pack 1), path: C:\Users\joel\AppData\Local\
> Temp\{09590EE9-E1C9-4D08-A865-65E9B9E40082}\.cr\MyBundle-x86.exe
> [05C4:0CA0][2017-10-06T07:41:51]i009: Command Line:
> '-burn.clean.room=C:\Users\joel\Downloads\MyBundle-x86.exe
> -burn.filehandle.attached=164 -burn.filehandle.self=172'
> [05C4:0CA0][2017-10-06T07:41:51]i000: Setting string variable
> 'WixBundleOriginalSource' to value 'C:\Users\joel\Downloads\
> MyBundle-x86.exe'
> [05C4:0CA0][2017-10-06T07:41:51]i000: Setting string variable 'WixBundleOriginalSourceFolder'
> to value 'C:\Users\joel\Downloads\'
> [05C4:0CA0][2017-10-06T07:41:51]i000: Setting string variable
> 'WixBundleLog' to value 'C:\Users\joel\AppData\Local\
> Temp\MyBundle_20171006074151.log'
> [05C4:0CA0][2017-10-06T07:41:51]i052: Condition 'VersionNT > v6.0'
> evaluates to true.
> [05C4:0CA0][2017-10-06T07:41:51]i000: Setting string variable
> 'WixBundleName' to value 'My Bundle'
> [05C4:0CA0][2017-10-06T07:41:51]i000: Setting string variable
> 'WixBundleManufacturer' to value 'Joel Budreau'
> [05C4:0CA0][2017-10-06T07:41:51]i000: Loading prerequisite bootstrapper
> application because managed host could not be loaded, error: 0x80070490.
> [05C4:0C2C][2017-10-06T07:41:51]i000: Setting numeric variable
> 'WixStdBALanguageId' to value 1033
> [05C4:0C2C][2017-10-06T07:41:51]i000: Setting version variable
> 'WixBundleFileVersion' to value '1.0.0.0'
> [05C4:0CA0][2017-10-06T07:41:51]i100: Detect begin, 5 packages
> [05C4:0CA0][2017-10-06T07:41:51]i000: Registry key not found. Key =
> 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full'
> [05C4:0CA0][2017-10-06T07:41:51]i000: Trying per-machine extended info
> for property 'State' for product: {37B55901-995A-3650-80B1-BBFD047E2911}
> [05C4:0CA0][2017-10-06T07:41:51]i000: Trying per-user extended info for
> property 'State' for product: {37B55901-995A-3650-80B1-BBFD047E2911}
> [05C4:0CA0][2017-10-06T07:41:51]i000: Product or related product not
> found: {37B55901-995A-3650-80B1-BBFD047E2911}
> [05C4:0CA0][2017-10-06T07:41:51]i000: Setting numeric variable
> 'VC14_REDIST_24021_X86' to value 2
> [05C4:0CA0][2017-10-06T07:41:51]i000: Trying per-machine extended info
> for property 'State' for product: {1F1C2DFC-2D24-3E06-BCB8-725134ADF989}
> [05C4:0CA0][2017-10-06T07:41:51]i000: Setting numeric variable
> 'VC9_X86_INSTALL_STATE' to value 5
> [05C4:0CA0][2017-10-06T07:41:51]i052: Condition 'NETFRAMEWORK40'
> evaluates to false.
> [05C4:0CA0][2017-10-06T07:41:51]i052: Condition 'VC9_X86_INSTALL_STATE=5'
> evaluates to true.
> [05C4:0CA0][2017-10-06T07:41:51]i052: Condition 'VC14_REDIST_24021_X86 =
> 5' evaluates to false.
> [05C4:0CA0][2017-10-06T07:41:51]i101: Detected package: Netfx4Full,
> state: Absent, cached: None
> [05C4:0CA0][2017-10-06T07:41:51]i101: Detected package: VC9Redist32,
> state: Present, cached: None
> [05C4:0CA0][2017-10-06T07:41:51]i101: Detected package: VC14Redist32,
> state: Absent, cached: None
> [05C4:0CA0][2017-10-06T07:41:51]i101: Detected package: MSI_1, state:
> Absent, cached: None
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature1, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature2, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature3, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature4, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature5, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature6, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature7, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature8, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature9, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature10, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature11, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature12, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature13, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature14, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature15, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature16, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature17, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature18, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature19, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature20, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature21, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature22, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature23, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature24, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature25, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature26, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i104: Detected package: MSI_1, feature:
> Feature27, state: Absent
> [05C4:0CA0][2017-10-06T07:41:51]i101: Detected package: MSI_2, state:
> Absent, cached: None
> [05C4:0CA0][2017-10-06T07:41:51]i199: Detect complete, result: 0x0
> [05C4:0CA0][2017-10-06T07:41:52]i200: Plan begin, 5 packages, action:
> Install
> [05C4:0CA0][2017-10-06T07:41:52]w321: Skipping dependency registration on
> package with no dependency providers: Netfx4Full
> [05C4:0CA0][2017-10-06T07:41:52]w321: Skipping dependency registration on
> package with no dependency providers: VC9Redist32
> [05C4:0CA0][2017-10-06T07:41:52]w321: Skipping dependency registration on
> package with no dependency providers: VC14Redist32
> [05C4:0CA0][2017-10-06T07:41:52]i052: Condition 'NOT VersionNT64'
> evaluates to true.
> [05C4:0CA0][2017-10-06T07:41:52]i201: Planned package: Netfx4Full, state:
> Absent, default requested: Present, ba requested: None, execute: None,
> rollback: None, cache: No, uncache: No, dependency: None
> [05C4:0CA0][2017-10-06T07:41:52]i201: Planned package: VC9Redist32,
> state: Present, default requested: Present, ba requested: None, execute:
> None, rollback: None, cache: No, uncache: No, dependency: None
> [05C4:0CA0][2017-10-06T07:41:52]i201: Planned package: VC14Redist32,
> state: Absent, default requested: Present, ba requested: None, execute:
> None, rollback: None, cache: No, uncache: No, dependency: None
> [05C4:0CA0][2017-10-06T07:41:52]i201: Planned package: MSI_1, state:
> Absent, default requested: Present, ba requested: None, execute: None,
> rollback: None, cache: No, uncache: No, dependency: None
> [05C4:0CA0][2017-10-06T07:41:52]i201: Planned package: MSI_2, state:
> Absent, default requested: Present, ba requested: None, execute: None,
> rollback: None, cache: No, uncache: No, dependency: None
> [05C4:0CA0][2017-10-06T07:41:52]i299: Plan complete, result: 0x0
> [05C4:0CA0][2017-10-06T07:41:52]i300: Apply begin
> [05C4:0CA0][2017-10-06T07:41:52]i010: Launching elevated engine process.
> [05C4:0CA0][2017-10-06T07:41:53]i011: Launched elevated engine process.
> [05C4:0CA0][2017-10-06T07:41:53]i012: Connected to elevated engine.
> [0B80:0C8C][2017-10-06T07:41:53]i358: Pausing automatic updates.
> [0B80:0C8C][2017-10-06T07:41:53]i359: Paused automatic updates.
> [0B80:0C8C][2017-10-06T07:41:53]i360: Creating a system restore point.
> [0B80:0C8C][2017-10-06T07:42:00]i361: Created a system restore point.
> [0B80:0C8C][2017-10-06T07:42:00]i370: Session begin, registration key:
> SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{
> 75112a87-a694-409a-a78e-342789a34bbe}, options: 0x7, disable resume: No
> [0B80:0C8C][2017-10-06T07:42:00]i000: Caching bundle from:
> 'C:\Users\joel\AppData\Local\Temp\{71C88C35-71AD-4A69-9506-
> 9AB6F8BAB04B}\.be\MyBundle-x86.exe' to: 'C:\ProgramData\Package
> Cache\{75112a87-a694-409a-a78e-342789a34bbe}\MyBundle-x86.exe'
> [0B80:0C8C][2017-10-06T07:42:00]i320: Registering bundle dependency
> provider: {75112a87-a694-409a-a78e-342789a34bbe}, version: 1.0.0.0
> [0B80:0C8C][2017-10-06T07:42:00]i371: Updating session, registration key:
> SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{
> 75112a87-a694-409a-a78e-342789a34bbe}, resume: Active, restart initiated:
> No, disable resume: No
> [0B80:0C8C][2017-10-06T07:42:00]i372: Session end, registration key:
> SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{
> 75112a87-a694-409a-a78e-342789a34bbe}, resume: ARP, restart: None,
> disable resume: No
> [0B80:0C8C][2017-10-06T07:42:00]i371: Updating session, registration key:
> SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{
> 75112a87-a694-409a-a78e-342789a34bbe}, resume: ARP, restart initiated:
> No, disable resume: No
> [05C4:0CA0][2017-10-06T07:42:00]i399: Apply complete, result: 0x0,
> restart: None, ba requested restart:  No
> [05C4:0CA0][2017-10-06T07:42:00]i500: Shutting down, exit code: 0x0
> [05C4:0CA0][2017-10-06T07:42:00]i000: The prerequisites were already
> installed. The bootstrapper application will not be reloaded to prevent an
> infinite loop.
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: VC14_REDIST_24021_X86 = 2
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: VC9_X86_INSTALL_STATE = 5
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: VersionNT = 6.1.0.0
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: WixBundleAction = 5
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: WixBundleElevated = 1
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: WixBundleFileVersion =
> 1.0.0.0
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: WixBundleLog =
> C:\Users\joel\AppData\Local\Temp\MyBundle_20171006074151.log
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: WixBundleManufacturer =
> Joel Budreau
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: WixBundleName = My Bundle
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: WixBundleOriginalSource =
> C:\Users\joel\Downloads\MyBundle-x86.exe
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable:
> WixBundleOriginalSourceFolder = C:\Users\joel\Downloads\
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: WixBundleProviderKey =
> {75112a87-a694-409a-a78e-342789a34bbe}
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable:
> WixBundleSourceProcessFolder = C:\Users\joel\Downloads\
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable:
> WixBundleSourceProcessPath = C:\Users\joel\Downloads\MyBundle-x86.exe
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: WixBundleTag =
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: WixBundleUILevel = 4
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: WixBundleVersion = 1.0.0.0
> [05C4:0CA0][2017-10-06T07:42:00]i410: Variable: WixStdBALanguageId = 1033
> [05C4:0CA0][2017-10-06T07:42:00]i007: Exit code: 0x0, restarting: No
>
>
> On Sat, Oct 7, 2017 at 11:11 PM, Blair Murri <osito at live.com> wrote:
>
>> You show one authoring (and that is only a subset), but two (trimmed)
>> logs. What is different? Runtime environment? Some other authoring
>> difference? BootstrapperApplicationRef target? There's not enough info here
>> to go on.
>>
>>
>>
>> Blair Murri
>>
>>
>>
>> Sent from my Windows 10 phone
>>
>>
>>
>> *From: *Joel Budreau via wix-users <wix-users at lists.wixtoolset.org>
>> *Sent: *Friday, October 6, 2017 1:49 PM
>> *To: *WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
>> *Cc: *Joel Budreau <joel.budreau at gmail.com>
>> *Subject: *Re: [wix-users] .NET redist not installing
>>
>>
>> Maybe to help simplify the question even more: what could cause this...?
>>
>> “Planned package: Netfx4Full, state: Absent, default requested: Present,
>> ba requested: None…”
>>
>> None of my custom BA code could execute yet, but something in the engine
>> decided that .NET should not be installed.
>>
>> - Joel
>>
>> > On Oct 6, 2017, at 12:12 PM, Joel Budreau <joel.budreau at gmail.com>
>> wrote:
>> >
>> > Edit:
>> >
>> > The WORKING bootstrapper has this in the log file:
>> >        [timestamp] Condition ‘NETFRAMEWORK40’ evaluates to false.
>> >        …
>> >        [timestamp] Detected package: Netfx4Full, state: Absent, cached:
>> None
>> >        …
>> >        [timestamp] Skipping dependency registration on package with no
>> dependency providers: Netfx4Full
>> >        [timestamp] Setting string variable ‘WixBundleLog_Netfx4Full’ to
>> value ‘C:\Users\myusername\AppData\Local\Temp\MyBootstrapper_times
>> tamp_000_Netfx4Full.log’
>> >        …
>> >        [timestamp] Planned package: Netfx4Full, state: Absent, default
>> requested: Present, ba requested: Present, execute: Install, rollback:
>> None, cache: Yes, uncache: Yes, dependency: None
>> >
>> > The FAILING bootstrapper has this in the log file:
>> >        [timestamp] Condition ‘NETFRAMEWORK40’ evaluates to false.
>> >        …
>> >        [timestamp] Detected package: Netfx4Full, state: Absent, cached:
>> None
>> >        …
>> >        [timestamp] Skipping dependency registration on package with no
>> dependency providers: Netfx4Full
>> >        …
>> >        [timestamp] Planned package: Netfx4Full, state: Absent, default
>> requested: Present, ba requested: None, execute: None, rollback: None,
>> cache: No, uncache: No, dependency: None
>> >
>> > What could I be missing in the failing BA?
>> >
>> > Thanks,
>> > Joel
>> >
>> >> On Oct 6, 2017, at 12:09 PM, Joel Budreau <joel.budreau at gmail.com>
>> wrote:
>> >>
>> >> Hi everyone,
>> >>
>> >> I’ve got two custom BAs that both package the .NET 4.0 redist. One can
>> install it, and one can’t :(
>> >>
>> >> Both Bundle.wxs files look like this:
>> >>       <Chain>
>> >>               <PackageGroupRef Id=“Netfx4Full”/>
>> >>               …
>> >>       </Chain>
>> >>
>> >>       <Fragment>
>> >>           <util:RegistrySearchRef Id=“NETFRAMEWORK40”/>
>> >>
>> >>           <WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Full" />
>> >>           <WixVariable Id="WixMbaPrereqLicenseUrl"
>> Value="NetfxLicense.rtf”/>
>> >>           <PackageGroup Id="Netfx4Full">
>> >>               <ExePackage Id="Netfx4Full" Cache="no" Compressed="yes"
>> PerMachine="yes" Permanent="yes" Vital="yes"
>> >>                                      SourceFile="$(var.DOTNETPATH)\
>> dotNetFx40_Full_x86_x64.exe"
>> >>                                      InstallCommand="/q /norestart
>> /ChainingPackage "[WixBundleName]""
>> >>                                      DetectCondition="NETFRAMEWORK40"
>> />
>> >>           </PackageGroup>
>> >>       </Fragment>
>> >>
>> >>
>> >> The WORKING bootstrapper has this in the log file:
>> >>       [timestamp] Condition ‘NETFRAMEWORK40’ evaluates to false.
>> >>       …
>> >>       [timestamp] Detected package: Netfx4Full, state: Absent, cached:
>> None
>> >>       …
>> >>       [timestamp] Skipping dependency registration on package with no
>> dependency providers: Netfx4Full
>> >>       [timestamp] Setting string variable ‘WixBundleLog_Netfx4Full’ to
>> value ‘C:\Users\myusername\AppData\Local\Temp\MyBootstrapper_times
>> tamp_000_Netfx4Full.log’
>> >>       …
>> >>       [timestamp] Planned package: Netfx4Full, state: Absent, default
>> requested: Present, ba requested: Present, execute: Install, rollback:
>> None, cache: Yes, uncache: Yes, dependency: None
>> >>
>> >>
>> >>
>> >> - Joel
>> >>       [timestamp] Condition ‘NETFRAMEWORK40’ evaluates to false.
>> >>       …
>> >>       [timestamp] Detected package: Netfx4Full, state: Absent, cached:
>> None
>> >>       …
>> >>       [timestamp] Skipping dependency registration on package with no
>> dependency providers: Netfx4Full
>> >>       …
>> >>       [timestamp] Planned package: Netfx4Full, state: Absent, default
>> requested: Present, ba requested: None, execute: None, rollback: None,
>> cache: No, uncache: No, dependency: None
>> >>
>> >> What could I be missing in the failing BA?
>> >>
>> >> Thanks,
>> >> Joel
>> >>
>> >
>>
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>>
>
>


More information about the wix-users mailing list