Installing .NET Redistributable Using Wix Bootstrapper (Burn)

I am new to Wix / Burn and trying to understand some of the basics. I have a simple bootloader that installs the required .net 4.0 infrastructure using the following chain:

<Chain> <PackageGroupRef Id="NetFx40ClientRedist"/> <MsiPackage Id="MyApp" SourceFile="$(var.WixInstaller.TargetPath)" DisplayInternalUI="yes" /> </Chain> 

as recommended How to install the .NET Framework using Burn . The application can be used on servers without network access, so it is important that .net be installed from a local redistributable. The bootstrapper seems to work very well and install the infrastructure as intended. The setup.exe file, however, is about the same size as the application (<5 MB), so I have to assume that the platform is still loading during installation.

Questions

  • What is the difference between "NetFx40ClientWeb" and "NetFx40ClientRedist" in the WixNetfxExtension package?

  • How to enable local distributed in boostrapper so that download is not required?

EDIT:

I believe I found the answer here :

WiXNetFxExtension will check the "redist" subdirectory where your package is for the package, then download it if it does not exist on this path, for example. "Redist \ dotNetFx40_Client_setup.exe". This is standard Burn behavior.

+7
c # install wix wix-extension
source share
1 answer

difference between them:
1. clientWeb - means that you must have an Internet connection, and .net 4.0 will be downloaded and then installed on the machine.

2.clientRedist - means redistributable - means a complete package that does not require any Internet connection, you can install it on any computer.


if you are using a redistributable package, you should be fine - here is an example for .Net 4.5, this is the same for .Net 4.0, only diff is a redistributable package.

 <?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="Prog" Version="1.0.0.0" Manufacturer="my Corporation" UpgradeCode="*"> <Chain> <!-- TODO: Define the list of chained packages. --> <PackageGroupRef Id="Netfx45FullPackage" /> </Chain> </Bundle> <Fragment> <PackageGroup Id="Netfx45FullPackage"> <ExePackage Id="Netfx45Xxx" Cache="no" Compressed="no" PerMachine="yes" Permanent="yes" Vital="no" InstallCommand="/q" SourceFile="..\SetupProject\dotnetfx45_full_x86_x64.exe" DetectCondition="(Netfx4FullVersion=&quot;4.5.50709&quot;) AND (NOT VersionNT64 OR (Netfx4x64FullVersion=&quot;4.5.50709&quot;))" InstallCondition="(VersionNT &gt;= v6.0 OR VersionNT64 &gt;= v6.0) AND (NOT (Netfx4FullVersion=&quot;4.5.50709&quot; OR Netfx4x64FullVersion=&quot;4.5.50709&quot;))" /> <MsiPackage Id="MyProg" Cache="no" Compressed="no" DisplayInternalUI="yes" Vital="yes" SourceFile="$(var.installerPath)\MyProgCore.msi" /> </PackageGroup> </Fragment> </Wix> 
+1
source share

All Articles