
tyler.badorrek1.5524936873975205E12 asked a question.
Comparing Versions in Basic MSI?
I'm trying to figure out how to compare versions in a Basic MSI project. I do a System Search and assign my IE version number (e.g. 7.0.5730.13) to a property. Now I want to do a conditional check to see if the version is at least some number (e.g. 6.0.0.0) and display an error window if the version isn't correct.
But I know the conditional builder doesn't support comparing versions using the normal operators, so how would I compare them? I could write an InstallScript custom action to call the VerCompare function, but is there a simpler way to compare them?
Edit: I also have another query. I have a condition that compares the built-in property ServicePackLevel to see if it's at least 2. A message displays if the condition fails, showing the value of ServicePackLevel and the value needed. I have the condition set to appear only if ServicePackLevel is less than 2, yet the error message appears showing ServicePackLevel is 2 (which is correct), but then the condition shouldn't have failed. I don't understand why this is happening. And I'm looking in the LaunchCondition table in the Direct Editor to make sure everything is set right.
and I've tried:
ServicePackLevel < "2"
The message I have that prints out when the condition is true shows that ServicePackLevel is 2
I was learning from a installshield developer blog and that concept was reversed. It seems to be working now.