Hi,
I am trying to edit the relevance to our carbon black app to be able to see which machines have it installed or not.
However when looking at the relevance, it seems to only be looking at the version thats installed on a specific registry value.
I need it to be able to see if the app is installed or not regardless of the version or key its installed on in the register.
I have tried one that looks for the DIsplayName and put in what I have, but thats still showing computers that have no installation of carbon black as not relevant…
Here is the relevance that preloads when you create a package.
/* Relevance generated from file “installer_vista_win7_win8-64-3.6.0.1979.msi” */
(exists file “msiexec.exe” of system folder) AND (disjunction of (NOT exists keys “{826F45AB-7AD8-438F-A114-840D3342B941}” whose ( value “DisplayVersion” of it as string as version >= “3.6.0.1979” as version AND value “Language” of it as string = “1033”) of keys “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of ( x32 registry; (if exists x64 registry then x64 registry else nothing) ))) AND
/* Relevance for msi launch condition: ‘VersionNT >= 601’ */
/**/
( (major version of it * 100 + minor version of it) of operating system >= 601 ) AND
/* Could not transform launch condition: ‘NOT INSTALLFOLDER OR SCANFOLDER’ into Relevance, Could not recognize the following properties: INSTALLFOLDER, SCANFOLDER*/
/* Could not transform launch condition: ‘NOT WIX_DOWNGRADE_DETECTED’ into Relevance, Could not recognize the following properties: WIX_DOWNGRADE_DETECTED*/
true
Here is the relevance I tested
(not exists keys whose (value “DisplayName” of it = “Carbon Black Cloud Sensor 64-bit”) of key “HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall” of registry) OR (((value “DisplayVersion” of keys whose (value “DisplayName” of it = “Carbon Black Cloud Sensor 64-bit”) of key “HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall” of registry) as string as version | (“0.0” as version)) < (“5.1.0.51215” as version))true
as well as, for older versions with different display names
(not exists keys whose (value “DisplayName” of it = “Cb Defense Sensor 64-bit”) of key “HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall” of registry) OR (((value “DisplayVersion” of keys whose (value “DisplayName” of it = “Cb Defense Sensor 64-bit”) of key “HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall” of registry) as string as version | (“0.0” as version)) < (“5.1.0.51215” as version))true
Any help would be appreciated.