| 0 Votes |
Relevance #2189
Relevance
| Used in 1 fixlet | * Results in a true/false |
if exists regapps "BFProp.exe" then exists regapps "BFProp.exe" whose (version of it < "1.0.0.0") else true
Property Details
| 2189 | |
| BFProp regapps version | |
| danielheth | |
| danielheth on 1/31/2013 8:26:28 PM | |
| 0 Downloads | |
* Average over 0 ratings.
** Log In or Register to add your rating.
|
Sharing
| Relevance Image Sharing: |
| Social Media: |
Comments
|
|
|
| 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. | |
|
|
|
| not exists regapp whose(name of it = "BFProp.exe" AND version of it >= "1.0.0.0" as version) | |
|
|
|
| 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) | |

