[wix-users] .NET Redist not working

Simon Palmer s.palmer at acquire.com.au
Mon Jul 24 23:44:42 PDT 2017


I think it is because Payload is missing Compressed=yes.

Mine looks like this:

    <PayloadGroup Id="NetFx46RedistPayload">      
      <Payload
        Compressed="yes"
        Name="redist\NDP46-KB3045557-x86-x64-AllOS-ENU.exe"
        SourceFile="..\..\Binaries\Microsoft\NetFramework\4.6.0\NDP46-KB3045557-x86-x64-AllOS-ENU.exe"/>
    </PayloadGroup>


Simon Palmer
Principal Software Engineer
acQuire Technology Solutions Pty Ltd
T: +61 8 9316 6600
F: +61 8 9316 6699
E: s.palmer at acquire.com.au
W: www.acquire.com.au
26 Kintail Road, Applecross, Western Australia 6153 | PO Box 933, Canning Bridge, Western Australia 6153
AUSTRALIA | CANADA | CHILE | SOUTH AFRICA | UNITED KINGDOM
GIM Suite Practitioner (2000) Brisbane - September 12th to 15th, 2017
GIM Suite Starter (1000) Brisbane - October 25th to 27th, 2017
Advanced SQL, Script Objects and Data Tracking (400) Brisbane - November 20th to 24th, 2017
This email (including all attachments) is the sole property of acQuire Technology Solutions Pty Ltd and may be confidential. If you are not the intended recipient, you must not use or forward the information contained in it. This message may not be reproduced or otherwise republished without the written consent of the sender. If you have received this message in error, please delete the email and notify the sender. To view our Privacy Policy please visit http://www.acquire.com.au/acquire_privacy_policy.pdf
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of William Fisher
Sent: Tuesday, 25 July 2017 5:45 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] .NET Redist not working

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/>

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list