Relevance Tip: Plural Strings to Singular "First" String

And to throw in another approach that may be of use for some uninstall situations, grab the key names as a parameter then pipe them to a CMD line for loop

parameter "GUIDs" = "{concatenation " " of unique values of names of keys whose ((exists values "DisplayName" whose(it as string as lowercase starts with "NAME_OF_APP" as lowercase) of it) AND (exists values whose(it as string as lowercase starts with "msiexec") of it)) of keys "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of ( x64 registries; x32 registries )}"

waithidden cmd.exe /c "for %a in ({parameter "GUIDs"}) do msiexec /x %a /qn"
5 Likes