I’m looking to install EViews via BigFix, and would like to target those that do not already have EViews installed. I have some relevance that target the registry entry EViews places in Windows, but those with EViews installed are still relevant.
((name of it = "WinVista" AND x64 of it) OR (name of it = "Win2008" AND x64 of it) OR (name of it = "Win7" AND x64 of it) OR (name of it = "Win2008R2") OR (name of it = "Win8" AND x64 of it) OR (name of it = "Win2012") OR (name of it = "Win8.1" AND x64 of it) OR (name of it = "Win2012R2") OR (name of it = "Win10")) of operating system AND ((not exists key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" of native registry) OR (not exists value "DisplayName" of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" of native registry) OR (value "DisplayName" of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" of native registry as string != "EViews 9 (64-bit)"))
The actual registry key is HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{907404D2-8C9D-428D-AB5B-FD8CA68A7305}\ on a Windows 7 Enterprise x64 installation.
What am I missing?
Thanks in advance
I used the wizard for this, but it is not very intuitive.
This will make the fixlet relevant if it is not installed.
((name of it = “WinVista” AND x64 of it) OR (name of it = “Win2008” AND x64 of it) OR (name of it = “Win7” AND x64 of it) OR (name of it = “Win2008R2”) OR (name of it = “Win8” AND x64 of it) OR (name of it = “Win2012”) OR (name of it = “Win8.1” AND x64 of it) OR (name of it = “Win2012R2”) OR (name of it = “Win10”)) of operating system AND ((not exists key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{907404D2-8C9D-428D-AB5B-FD8CA68A7305}” of native registry))
Note that in @mfuglem’s relevance there is a missing \ in the key:
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{907404D2-8C9D-428D-AB5B-FD8CA68A7305}" of native registry
The forum likes to format slashes away…
The GUID is the same across devices but may change between versions of an application. Without specifying the GUID the relevance is essentially looking to see if ANY application is installed (Which there will always be) instead of if YOUR application is installed.