[wix-users] .NET Redist not working

William Fisher wfisher at summa.com
Mon Jul 24 14:44:36 PDT 2017


For those that helped me with the RemoveFolderEx issue, that has been
resolved, thank you.

Time to restart a discussion of an already described problem:

.NET Framework installation.

My BootstrapperCore.config:
…

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <sectionGroup name="wix.bootstrapper"
type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.BootstrapperSectionGroup,
BootstrapperCore">
…
      <section name="host"
type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.HostSection,
BootstrapperCore" />
    </sectionGroup>
  </configSections>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
    <supportedRuntime version="v3.5"/>
…
  </startup>
  <wix.bootstrapper>
    <host assemblyName="ApplicationBootstrapper">
      <supportedFramework version="v2.0.50727"/>
      <supportedFramework version="v4.0" />
    </host>
  </wix.bootstrapper>
</configuration>

In theory, that should work on Windows 7 SP 1, as .NET 3.5 SP 1 is
installed on there.  Instead, I get a .NET installation dialog.

https://stackoverflow.com/questions/20099486/installing-net-redistributable-with-wix-bootstrapper-burn
https://stackoverflow.com/questions/29890169/wix-burn-dependency-installation-failing

My thought, based on the second link's advice, was to examine the
NetFxExtension code for .NET 4.6.2.  It meets all those requirements.  I
moved the NetFx462Redist PackageGroupRef to first in my chain.  In my
Bundle.wxs, I have the following:
…

    <BootstrapperApplicationRef Id="ManagedBootstrapperApplicationHost">
      <PayloadGroupRef Id="InstallerPayload" />
    </BootstrapperApplicationRef>
...
<Chain>
  <PackageGroupRef Id="NetFx462Redist"/>
...
  <Fragment>
    <PayloadGroup Id="InstallerPayload">
...
      <Payload Name="redist\\NDP462-KB3151800-x86-x64-AllOS-ENU.exe"
               SourceFile="C:\\Users\\310284944\\documents\\visual studio
2015\\Projects\\Client.Application.Setup\\Client.Application.Setup\\redist\\NDP462-KB3151800-x86-x64-AllOS-ENU.exe"/>
    </PayloadGroup>
  </Fragment>

The issue is that the .NET installer (NDP462-KB etc) isn't included in my
installer once built.  So it will attempt to install from the Internet and
fail, since the system is not connected to the internet.  Where am I going
wrong with this?
-- 
Bill Fisher   |  Technical Consultant
[ *m* ] 412.427.9804
wfisher at summa.com
[image: [ l ]] billfishersumma   <https://linkedin.com/in/billfishersumma>
611 William Penn Place
Pittsburgh, PA 15219
summa.com <http://www.summa.com/> [image: Summa] <http://www.summa.com/>


More information about the wix-users mailing list