0 Votes

Relevance #2189
Log In or Register to download the BES file, and more.


Relevance

 
Used in 1 fixlet   * Results in a true/false
Show indented relevance
if exists regapps "BFProp.exe" then exists regapps "BFProp.exe" whose (version of it < "1.0.0.0") else true

Property Details

ID2189
Status
KeywordsBFProp regapps version
Added by
Last Modified by on 1/31/2013 8:26:28 PM
Counters 0 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Sharing

Relevance Image Sharing:

<a href='https://bigfix.me/cdb/relevance/2189'><img src='https://bigfix.me/cdb/relevanceimage/2189?width=400' border='0'></a>
Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
jgstew -
I find the whole if-then-else ugly for this, and breaks up the natural language understanding of the relevance in an unneeded way. I also prefer to write the relevance so that it asserts what should be there, the condition in which I do not need to install, and then just add a "not" in the front of it. One thing I like about this approach is for the uninstaller, all I need to do is remove the "not" and possibly tweak the version check depending on what I'm trying to achieve with the uninstaller.
jgstew -
not exists regapp whose(name of it = "BFProp.exe" AND version of it >= "1.0.0.0" as version)
jgstew -
not (exists keys whose (value "DisplayName" of it = "BigFix File Properties" AND value "DisplayVersion" of it as string as version >= "1.0.0" as version) of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry)