0

I'm currently working on a bundle installer using Wix Toolset. The bundle contains three parts, one being an apropriate .Net Runtime.

I'm using the following query to get the currently installed .Net version:

<util:RegistrySearch
  Root="HKLM"
      
  Key="SOFTWARE\dotnet\Setup\InstalledVersions\x64\sharedhost"
  Value="Version"
  Win64="yes"    
  Variable="NetVersion"
/>

I then use the variable in the following ExePackage

<ExePackage SourceFile="D:\somepath\windowsdesktop-runtime-5.0.7-win-x64.exe"
  Vital="no"
  PerMachine="yes"
  InstallCondition="VersionNT64 AND NetVersion &lt; v5.0.7"/>

The second part of the statement: NetVersion &lt; v5.0.7 always evaluates to false. It doesn't matter if I compare against, say version 4.0 or 7.0, the installer wont show up in the process.

Maybe the problem has something to do with the installed dotnet version on my computer, which happen to be 6.0.0-preview.5.21301.5.

I'm using an other query where I check against a more conservative version number (major.minor.build.revision) which works just fine.

Im using Wix toolset 3.11.

Any help is appreciated!

1 Answer 1

0

Have you tried removing the "v" in the compare-expression?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.