HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall64 Bit applications uninstall string location
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\UninstallLet’s find any software uninstall string, in my case I want to uninstall JAVA now. Since I have installed JAVA 64 bit application I have to locate the uninstall registry key under HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall Here is the screenshot of the JAVA software uninstall string. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F64180251F0}
MsiExec.exe /X {26A24AE4-039D-4CA4-87B4-2F64180251F0}If you run the above registry key on command prompt JAVA program will be uninstalled, we need to suppress the user interaction so we need to find the MsiExec.exe switches for software to uninstall in silent mode. MsiExec.exe switches are available here. There is a switch qn for no UI interface, the application will be uninstalled silently, here is the syntax.
MsiExec.exe /X {26A24AE4-039D-4CA4-87B4-2F64180251F0} /qn
If you run the above code on command prompt without the user interaction the java application will be uninstalled. Thank you for reading this article, if you have any questions please let us know. Thank you for visiting my site, for any scripts in these articles you are testing please make sure you have tested this script in our lower environment before you run in production.
Leave a Reply Cancel reply