[wix-users] Bootstrapper .NET Framework Version

Harinatha Narisetty harinatha.narisetty at us.abb.com
Thu Jan 4 11:39:09 PST 2018


Looks like there was pending install triggered the restart.  I think it is not a problem.
My bootstrapper is compiled on 4.5 and application needs 4.6.2 which is included in the setup.  If there is no .NET Framework on target machine,  the setup triggers the .NET 4.6.2 installation and then launches the bootstrapper.  This is exactly expected.

But when there is " .NET Framework 4 client profile  and .NET framework 4 extended" on the target machine , ( I see them in program  files). The setup is not running. I see below details in log file.
[0CF4:0CF8][2018-01-04T19:29:44]i000: Loading managed bootstrapper application.
[0CF4:0CF8][2018-01-04T19:29:44]e000: Error 0x80131522: Failed to create the managed bootstrapper application.
[0CF4:0CF8][2018-01-04T19:29:44]e000: Error 0x80131522: Failed to create UX.
[0CF4:0CF8][2018-01-04T19:29:44]e000: Error 0x80131522: Failed to load UX.
[0CF4:0CF8][2018-01-04T19:29:44]e000: Error 0x80131522: Failed while running

[0CF4:0CF8][2018-01-04T19:29:44]e000: Error 0x80131522: Failed to run per-user mode.
[0CF4:0CF8][2018-01-04T19:29:44]i007: Exit code: 0x80131522, restarting: No


Here is my fragment for .NET framework.  I think something wrong with my detectcondition.   Why bootstrapper is not triggering .NET 4.6.2 installation ?

<Fragment>
    <util:RegistrySearch
      Id="NETFRAMEWORK45"
      Variable="NETFRAMEWORK45"
      Root="HKLM"
      Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"
      Value="Release"
      Result="value" />
  </Fragment>
<Fragment>
    <util:RegistrySearchRef Id="NETFRAMEWORK45"/>

    <WixVariable Id="WixMbaPrereqPackageId" Value="NetFx462Redist" />
    <WixVariable Id="WixMbaPrereqLicenseUrl" Value="$(var.NetFx462EulaLink)" Overridable="yes" />
    <WixVariable Id="NetFx462RedistDetectCondition" Value="NETFRAMEWORK45 >= $(var.NetFx462MinRelease)" Overridable="yes" />
    <WixVariable Id="NetFx462RedistInstallCondition" Value="" Overridable="yes" />
    <WixVariable Id="NetFx462RedistPackageDirectory" Value="Dotnetframework\" Overridable="yes" />

    <PackageGroup Id="NetFx462Redist">
      <ExePackage
          InstallCommand="/q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx462FullLog].html""
          RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[NetFx462FullLog].html""
          UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx462FullLog].html""
          PerMachine="yes"
          Description="Microsoft .NET Framework 4.6.2 Setup"
          DisplayName="Microsoft .NET Framework 4.6.2 Setup"
          DetectCondition="!(wix.NetFx462RedistDetectCondition)"
          InstallCondition="!(wix.NetFx462RedistInstallCondition)"
          Id="NetFx462Redist"
          Vital="yes"
          Permanent="yes"
          Protocol="netfx4"
          DownloadUrl="$(var.NetFx462RedistLink)"
          LogPathVariable="NetFx462FullLog"
          Compressed="no"
          Name="!(wix.NetFx462RedistPackageDirectory)NDP462-KB3151800-x86-x64-AllOS-ENU.exe">
        <RemotePayload
          CertificatePublicKey="52868DFCA6E3AF2632389E6C1EE7D0468D3797D0"
          CertificateThumbprint="3BDA323E552DB1FDE5F4FBEE75D6D5B2B187EEDC"
          Description="Microsoft .NET Framework 4.6.2 Setup"
          Hash="A70F856BDA33D45AD0A8AD035F73092441715431"
          ProductName="Microsoft .NET Framework 4.6.2"
          Size="62008080"
          Version="4.6.1590.0" />
      </ExePackage>
    </PackageGroup>
  </Fragment>





-----Original Message-----
From: Hoover, Jacob [mailto:Jacob.Hoover at greenheck.com]
Sent: Thursday, January 4, 2018 9:58 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Harinatha Narisetty <harinatha.narisetty at us.abb.com>
Subject: RE: Bootstrapper .NET Framework Version

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


1.a) I think you can provide your own mbapreq.thm / mbapreq.wxl. (https://github.com/wixtoolset/wix3/blob/develop/src/ext/BalExtension/wixstdba/Resources/mbapreq.thm )

1.b) Are you using the NetFx extension? What do the install logs state the reason for the reboot? (It could be that another Windows update had already happened on the machine, and as such the .Net install is unable to suppress a reboot.)


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Harinatha Narisetty via wix-users
Sent: Wednesday, January 3, 2018 9:41 PM
To: wix-users at lists.wixtoolset.org
Cc: Harinatha Narisetty <harinatha.narisetty at us.abb.com>
Subject: [wix-users] Bootstrapper .NET Framework Version

Hi All,
I am using bootstrapper ( WPF UI) to collect few details before installing the product ( the msi). The bootstrapper dlls are compiled in  .net framework 4.5 and here are the details in  bootstrapper config file.

<startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
  </startup>
  <wix.bootstrapper>
    <host assemblyName="MBA">
      <supportedFramework version="v3.5" />
    </host>
  </wix.bootstrapper>

Our application needs .NET Framework 4.6.2 ... So I have written below fragment to install  .NET framework 4.6.2 and referenced in  Bundle.wxs as below.
<PackageGroupRef Id='NetFx462Redist' />   Please see below for complete fragment details.

With this I have two issues.

1.      When installed on machine where there is no .NET Framework:  The setup is triggering .NET fx 4.6.2 installation as soon I launch  , after installation of 4.6.2  it is triggering system reboot. It is not executing the fragment I have written ( below)

a.     How do I change the image of .NET framework installation screen? ( the current screen looks like this  https://1drv.ms/i/s!ApARU-8ufFMSaxJOCjD9E6qmZRI    , you can click on this link without any fear.

b.    How do I avoid system reboot?

2.     When Installed on a machine where is .NET Framework 4.5 installed.

a.     Looks like everything works fine so far.

Can Somebody help with items 1.a and 1.b ?


<Fragment>
    <util:RegistrySearch
      Id="NETFRAMEWORK45"
      Variable="NETFRAMEWORK45"
      Root="HKLM"
      Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"
      Value="Release"
      Result="value" />
  </Fragment>
<Fragment>
    <util:RegistrySearchRef Id="NETFRAMEWORK45"/>

    <WixVariable Id="WixMbaPrereqPackageId" Value="NetFx462Redist" />
    <WixVariable Id="WixMbaPrereqLicenseUrl" Value="$(var.NetFx462EulaLink)" Overridable="yes" />
    <WixVariable Id="NetFx462RedistDetectCondition" Value="NETFRAMEWORK45 >= $(var.NetFx462MinRelease)" Overridable="yes" />
    <WixVariable Id="NetFx462RedistInstallCondition" Value="" Overridable="yes" />
    <WixVariable Id="NetFx462RedistPackageDirectory" Value="Dotnetframework\" Overridable="yes" />

    <PackageGroup Id="NetFx462Redist">
      <ExePackage
          InstallCommand="/q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx462FullLog].html""
          RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[NetFx462FullLog].html""
          UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx462FullLog].html""
          PerMachine="yes"
          Description="Microsoft .NET Framework 4.6.2 Setup"
          DisplayName="Microsoft .NET Framework 4.6.2 Setup"
          DetectCondition="!(wix.NetFx462RedistDetectCondition)"
          InstallCondition="!(wix.NetFx462RedistInstallCondition)"
          Id="NetFx462Redist"
          Vital="yes"
          Permanent="yes"
          Protocol="netfx4"
          DownloadUrl="$(var.NetFx462RedistLink)"
          LogPathVariable="NetFx462FullLog"
          Compressed="no"
          Name="!(wix.NetFx462RedistPackageDirectory)NDP462-KB3151800-x86-x64-AllOS-ENU.exe">
        <RemotePayload
          CertificatePublicKey="52868DFCA6E3AF2632389E6C1EE7D0468D3797D0"
          CertificateThumbprint="3BDA323E552DB1FDE5F4FBEE75D6D5B2B187EEDC"
          Description="Microsoft .NET Framework 4.6.2 Setup"
          Hash="A70F856BDA33D45AD0A8AD035F73092441715431"
          ProductName="Microsoft .NET Framework 4.6.2"
          Size="62008080"
          Version="4.6.1590.0" />
      </ExePackage>
    </PackageGroup>
  </Fragment>





Thanks
Hari

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list