[wix-users] Silent/Passive running of .NET Framework pre-req

Patterson, Brent bcpatterson at xactware.com
Thu Apr 6 13:30:26 PDT 2017


Ah, simply adding /passive to the call of installer.exe will start .net pre-req installation automatically.  However it's still visible even though /silent was specified, but I think we can live with that.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Patterson, Brent
Sent: Wednesday, April 5, 2017 3:13 PM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Silent/Passive running of .NET Framework pre-req

We ran into an issue with our installer.  If the user wants to install our product silently, they can call our exe with /silent parameter.  Our exe is a bootstrapper bundle that handles everything.  However, we discovered that if the 4.6 .NET framework isn't installed, the pre-req check will show a dialog for installing it.  Since the installer is running silently, it should proceed to install the .NET framework pre-req without showing any prompt or require user interaction.

I searched and found this site: http://stackoverflow.com/questions/19839600/wix-install-prerequisites-and-3rd-party-applications

In it, he had this:
<!-- Install .NEt 4.0 -->
  <PackageGroup Id="Netfx4Full">
    <ExePackage Id="Netfx4Full"
               DisplayName="Microsoft .NET Framework 4.0"
                Compressed="no"
                Cache="yes"
                PerMachine="yes"
                Permanent="yes"
                Protocol="netfx4"
                Vital="yes"
                SourceFile=".\prerequisites\dotNetFx40_Full_x86_x64.exe"
                InstallCommand="/passive /norestart"
                DetectCondition="Netfx4FullVersion AND (NOT VersionNT64 OR Netfx4x64FullVersion)" />
  </PackageGroup>

The key is "InstallCommand="/passive /norestart""

The problem is that our .NET installer is a web downloader, and I use this in the chain:
<PackageGroupRef Id="NetFx46Web"/>

I fear if I try and add "PackageGroup" that defines NetFx46Web, it'd override the existing parameters.  I just want something like this:

    <PackageGroup Id="NetFx46Web">
      <ExePackage Id="NetFx46Web"
                  InstallCommand="[COMMANDLINE_ARGS]" />
    </PackageGroup>

Where COMMANDLINE_ARGS will be defined in a variable elsewhere.  Can I override specific parameters without breaking the rest?  Or do I need to copy and paste the original PackageGroup from WiX source base?

________________________________

This email is intended solely for the recipient. It may contain privileged, proprietary or confidential information or material. If you are not the intended recipient, please delete this email and any attachments and notify the sender of the error.

________________________________

Xactware's opt-in mailing list allows you to receive Xactware News that is of interest to you. Visit my.xactware.com today to join or to update your email preferences!

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




More information about the wix-users mailing list