Launch Condition with version check not possible in msi project? #9309
Unanswered
simone3100
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
In my WiX 7.0.0 msi project I´m using a Launch Condition to check if a minimum required version of my prerequisite is already installed.
Therefore I read the version from registry and check that property in the Launch Condition:
Log:
In this example the installed version is 1.10.1.6 (INSTALLEDPREREQUISITEVERSION), while MinRequiredPrerequisiteVersion is 1.4.2.0.
I assumed that the launch condition 'INSTALLEDPREREQUISITEVERSION 1.10.1.6 >= MinRequiredPrerequisiteVersion 1.4.2.0' would evaluate to true and installation proceeds, because 1.10.1.6. is larger version as required minimum version 1.4.2.0. But it seems that the condition is evaluated as string instead of version in the msi project. The condition evaluates to false.
With the Wix Bundle, however, the same condition evaluates to true in the DetectCondition of the ExePackage. It is checked as a version.
Log:
I also tested the "v" prefix in the MSI project to see if it would be interpreted as a version number, but without success.
Is there a way to check the LaunchCondition as a version in the MSI project as well?
Open Source Maintenance Fee
wixtoolsetproject because I support the maintainers.Beta Was this translation helpful? Give feedback.
All reactions