Question

I have an MSI file with .NET Framework 2.0 Prerequisite. In windows 8 .NEt framework 2.0 is not installed by default and when i run the .msi, it says you need to install .NET framework 2.0.

But Windows 8 already comes with .NET framework 4.0 or 4.5 which supports older versions and indeed would be able to run the msi file if i could say this msi file can also run on .NET framework 4.0. How can i do that?

More precisely, how can i configure an msi file to have a prerequisite such that min .net framework version 2.0 but can run on newer versions?

I can do this for assemblies adding the configuration below.

<configuration> 
  <startup>
   <supportedRuntime version="v2.0.50727" />
   <supportedRuntime version="v3.0" />
   <supportedRuntime version="v3.5" />
   <supportedRuntime version="v4.0" />
  </startup>
</configuration>

Thanks

Was it helpful?

Solution

The SO question How can I detect .net 3.5 in WiX? appears to answer this. It also points to another post that discusses this when not using WiX

OTHER TIPS

If you install the .Net framework 3.5, that will provide 2.0 as well. Only 4.5 is installed by default. Go to the Windows features and turn on .Net framework 3.5.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top