How Can I remove the package completed if the program got corrupted.

How Can I remove the package completed if the program got corrupted.

avatar

Recently we have clients got corrupted because a legacy version got installed and replaced the newer version, we have to remove everything for the client to work, is there a script we can leveage to uninstall and remove everything no matter the package ID or version. It will take a lot of our time if we remove the file and registry manually.

All Comments (1)

avatar

Hello Nelson,

You can try to run the following; it should return the uninstall string for all the installed RDM versions on the machine:

Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {$_.DisplayName -match "Remote Desktop Manager" } | Select-Object -Property DisplayName, UninstallString




Source - https://www.reddit.com/r/PowerShell/comments/ykt5kb/uninstall_all_versions_of_application_msi_with_a/

Best regards,

Richard Boisvert

5e36779f-7f6f-4da0-b27f-557720786615.png