[wix-users] Migrating Wix setup from .NET Framework 4.8 to .NET 5.0

Wiles, Dean Dean.Wiles at compucom.com
Wed Mar 17 14:09:14 PDT 2021


We would like to migrate our WinForm application and install/setup package from .NET Framework 4.8 to .NET 5.0 and are trying to understand what is or isn't available yet with Wix extensions.

We have a fairly simple bundle (below) derived from https://wixtoolset.org/documentation/manual/v3/howtos/redistributables_and_install_checks/install_dotnet.html using NetFx48.wxs to detect and conditionally install .NET Framework 4.8.

I've googled and looked through the discussions/issues in wixtoolset and the outstanding WIP's, but I have to confess it's all very confusing to this Wix newbie.

Could someone summarize (in laymen's terms) how I could migrate the dependency check and conditional install for .NET from Framework 4.8 to .NET 5.0?

Thanks!

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
     xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
  <?include Defines.wxi?>

  <Bundle Name="$(var.Name)" Version="$(var.Version)" Manufacturer="$(var.Manufacturer)"
          UpgradeCode="$(var.UpgradeCode)" IconSourceFile="$(var.Logo)" DisableModify="yes">
    <!--Bootstrapper UI with logo-->
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLargeLicense">
      <bal:WixStandardBootstrapperApplication
        ThemeFile="RtfLargeTheme.xml" LocalizationFile="RtfTheme.wxl"
        LicenseFile="$(var.EULA)" LogoFile="$(var.Logo)" ShowVersion="yes"
        SuppressOptionsUI ="yes" SuppressRepair="yes" />
    </BootstrapperApplicationRef>

    <Chain>
      <!--Installs .NET Framework 4.8 using web installer-->
      <PackageGroupRef Id="NetFx48Web" />

      <!--Installs SQL Server 2019 Express using web installer-->
      <PackageGroupRef Id="Sql2019ExprWeb" />

      <!-- Install RA.Install package -->
      <MsiPackage DisplayName="$(var.Name)" SourceFile="$(var.RA.Install.TargetPath)"
                  DisplayInternalUI="no" Compressed="yes" Vital="yes" Visible="no"/>
    </Chain>
  </Bundle>
</Wix>

Dean Wiles | CompuCom
Financial & Business Software Development, Programming Advisor
direct: 509.927.5637   fax: 509.922.0930
Dean.Wiles at CompuCom.com<mailto:Dean.Wiles at CompuCom.com>
8775 E. Mission Ave, Spokane Valley, WA 99212-2531
www.CompuCom.com<http://www.compucom.com/>


CONFIDENTIALITY NOTICE: The information contained in this email and attached document(s) may contain confidential information that is intended only for the addressee(s). If you are not the intended recipient, you are hereby advised that any disclosure, copying, distribution or the taking of any action in reliance upon the information is prohibited. If you have received this email in error, please immediately notify the sender and delete it from your system.


More information about the wix-users mailing list