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

Sean Hall r.sean.hall at gmail.com
Wed Mar 17 14:15:48 PDT 2021


Detecting .NET Framework was easy. Detecting .NET Core is hard.
https://github.com/wixtoolset/issues/issues/6257

On Wed, Mar 17, 2021 at 4:09 PM Wiles, Dean via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> 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.
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list