[wix-users] Bootstrapper .NET Framework Version

Hoover, Jacob Jacob.Hoover at greenheck.com
Thu Jan 4 06:58:08 PST 2018


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