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

Patterson, Brent bcpatterson at xactware.com
Wed Apr 5 14:13:29 PDT 2017

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"
                InstallCommand="/passive /norestart"
                DetectCondition="Netfx4FullVersion AND (NOT VersionNT64 OR Netfx4x64FullVersion)" />

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

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!

More information about the wix-users mailing list