Need to uninstall Microsoft Windows desktop Runtime

Hi Team, can anyone help me to create uninstallation script to uninstall the Microsoft Windows Desktop Runtime from machine. I have checked in my machines, there are two versions of Microsoft Windows Desktop Runtime are installed. but if there are multiple machines are there, and I don’t have any idea how many versions and which versions are installed on machines. so, I need to create an uninstallation package of Microsoft Windows Desktop Runtime where I can uninstall all the versions of Microsoft Windows Desktop Runtime from machines.

Q: names of keys whose (value “DisplayName” of it as string starts with “Microsoft Windows Desktop Runtime” and (value “UninstallString” of it as string as lowercase contains “msiexec”)) of keys “HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall” of native registry
A: {3A6767BB-A8E1-450C-B57D-11EFEB753F9C}
A: {9A00C541-6944-4969-9DFE-A7289215800D}

I hope below will help, please test & try.

//Relevance
exists keys whose (value "DisplayName" of it as string starts with "Microsoft Windows Desktop Runtime" and (value "UninstallString" of it as string as lowercase contains "msiexec")) of keys "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall" of native registry

//Action script
delete __createfile

createfile until __END
{concatenation "%0a" of ("msiexec.exe /x " & name of it & " /quiet /norestart") of keys whose (value "DisplayName" of it as string starts with "Microsoft Windows Desktop Runtime" and (value "UninstallString" of it as string as lowercase contains "msiexec")) of keys "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall" of native registry}
__END

waithidden cmd.exe /C __createfile
2 Likes