Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to install .NET 4.5 with a WiX bundle?
    text
    copied!<p>I need to include Microsoft <a href="http://en.wikipedia.org/wiki/.NET_Framework" rel="nofollow">.NET</a> 4.5 as a prerequisite with my installation bundle, and I want it as automatic as possible. However, .NET should <em>not</em> be removed when unistalling. I think I have read just about everything on how to use <code>DetectCondition</code> and/or <code>InstallCondition</code>, but I'm still not getting it right; it is either always running the .NET installation, or never running it.</p> <p>Here's my latest setup:</p> <pre><code>&lt;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'&gt; &lt;!-- Define minimum .NET Framework version --&gt; &lt;?define NetFx45MinRelease = 377811?&gt; ... &lt;Chain&gt; &lt;PackageGroupRef Id="Netfx45FullPackage"/&gt; ... &lt;/Chain&gt; &lt;PackageGroup Id="Netfx45FullPackage"&gt; &lt;ExePackage Id="Netfx45Full" Cache="no" Compressed="yes" PerMachine="yes" Permanent="yes" Vital="yes" SourceFile="..\..\..\..\Environment\InstallerResources\Prerequisites\dotnetfx45_full_x86_x64.exe" InstallCommand="/passive /norestart" DetectCondition="NETFRAMEWORK45 &amp;gt;= $(var.NetFx45MinRelease)" InstallCondition="NOT REMOVE AND (NETFRAMEWORK45 &amp;lt; $(var.NetFx45MinRelease))" /&gt; &lt;/PackageGroup&gt; </code></pre> <p>(For some reason, I had to define <code>NetFx45MinRelease</code> myself even though it should have been included with WixNetFxExtension.)</p> <p>How can I get the settings correct?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload