Need to uninstall Putty0.78

Hi Team, I would like to seek your assistance regarding the removal of PuTTY 0.78 from multiple machines through BigFix. I initially tested the uninstall command using the Fixlet Debugger, and it successfully removed PuTTY from my system. However, when executing the same script through BigFix, the action reports as Completed, but returns an exit code 1605, indicating that the product is not recognized as installed via MSI.

Below is the script I used:**
wait msiexec.exe /uninstall {names of keys whose (value "displayname" of it as string contains "PuTTY release 0.78 (64-bit)" of it and value "uninstallstring" of it as string as lowercase contains "msiexec") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry} /quiet /norestart**

Could anyone please help me identify the issue or suggest the correct approach to uninstall PuTTY 0.78 successfully via BigFix?
Thank you in advance.

The exit code 1605 (ERROR_UNKNOWN_PRODUCT) in BigFix typically occurs when msiexec cannot find the product GUID in the context of the user running the command. While it worked in the Fixlet Debugger (likely running in your user context), the BES Client runs as the SYSTEM account, which cannot "see" MSI applications installed in a user-only context

Since you are targeting a 64-bit application and querying the native registry, you must ensure BigFix isn't redirecting to the 32-bit Wow6432Node. Add this line to the top of your action script:
**action uses wow64 redirection false

Try below script**
action uses wow64 redirection false

waithidden msiexec.exe /X{name of key whose (value "DisplayName" of it as string contains "PuTTY release 0.78 (64-bit)" and value "UninstallString" of it as string as lowercase contains "msiexec") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry} /qn /norestart

Hi @ersaumitra10 , I have already tested with suggested script, it was giving the same error. completed with 1605 exit code.

Can you check if putty is user installed? If yes, then need to use different action script -
action uses wow64 redirection false
if {exists key whose (value "DisplayName" of it as string contains "PuTTY release 0.78") of keys of key "HKEY_USERS" of registry}
waithidden msiexec.exe /X{name of key whose (value "DisplayName" of it as string contains "PuTTY release 0.78") of keys of key "HKEY_USERS" of registry} /qn /norestart
endif

Hi @ersaumitra10 , Fyi.
Q: exists keys whose (value "displayname" of it as string contains "PuTTY release 0.78 (64-bit)" of it and value "uninstallstring" of it as string as lowercase contains "msiexec") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry
A: True
T: 7.195 ms

Q: names of keys whose (value "displayname" of it as string contains "PuTTY release 0.78 (64-bit)" of it and value "uninstallstring" of it as string as lowercase contains "msiexec") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry
A: {4EEF2644-700F-46F8-9655-915145248986}
T: 4.436 ms

Similar discussion happened. You may want to have a look into it