Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: .net 4.5 prerequisite is not working properly (Wix# 1.0.16.0, WixTools 3.9)

$
0
0
I found a solution in case of using Wix# v 1.0.17.0.

First you need to read and understand very short and clear MSDN article named How to: Determine Which .NET Framework Versions Are Installed.

So, if you need to know if .Net Framework 4.5 is installed you can use this way:
project.SetNetFxPrerequisite("NETFRAMEWORK45 >= '#378389'", "Please install .Net 4.5 first");
So, magic number #378389 is a number of release value from windows registry (see short table in article). Code will detect .Net framework 4.5 version and higher and you don't need to check registry manually.

Hope this helps.

Viewing all articles
Browse latest Browse all 1354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>