문제

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

도움이 되었습니까?

해결책

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top