I am trying to fetch Silent Uninstall string and run it from users’ profile and the below command, but it is unable to fetch the Uninstall String
wait cmd.exe /C {values "QuietUninstallString" of keys whose ((value "DisplayName" of it as string contains "Visual Studio Code") and ((value "DisplayVersion" of it as string) as version < "1.99.3")) of keys "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of current user keys (logged on users) of Registry}
I don’t see any issue with your query; it should be returning the desired values. If it’s not, you might need to check the value name and version you are using in this query. It seems to me that they might not be matching, or you might be trying to query the same version.
This is what I see when I cross-validated it against my values:
Q: values "QuietUninstallString" of keys whose (exists (value "DisplayName" of it as string contains "Windsurf (User)") and ((value "DisplayVersion" of it as string) as version < "1.95.0")) of keys "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of current user keys (logged on users) of Registry
A: "C:\Users\vkhurava\AppData\Local\Programs\Windsurf\unins000.exe" /SILENT
T: 0.103 ms