How to Find the Uninstall String in Regedit
When standard Windows removal methods fail or when automating
software deployment, you may need the exact command line required to
remove a legacy program. This guide explains how to use the Windows
Registry Editor (Regedit) to navigate to the specific registry hives
storing application data, locate the target software, and copy its
direct UninstallString value.
Step 1: Open the Registry Editor
- Press
Windows Key + Rto open the Run dialog. - Type
regeditand press Enter. - Click Yes if prompted by User Account Control (UAC).
Step 2: Navigate to the Uninstall Keys
Legacy applications store their uninstallation information across several registry locations, depending on whether the software is 32-bit, 64-bit, or installed per-user. Check the following paths in the Registry Editor address bar:
For 64-bit applications (System-wide):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\UninstallFor 32-bit applications on a 64-bit OS (System-wide):
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\UninstallFor applications installed per-user:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall
Step 3: Locate the Target Application
- Expand the relevant
Uninstallkey in the left navigation pane. - Browse through the subkeys. Subkeys may be named after the software
directly or represented as a unique GUID (e.g.,
{12345678-ABCD-1234-ABCD-1234567890AB}). - Click on a subkey and look at the right pane for the DisplayName string to verify the software name.
- Alternatively, select the
Uninstallkey, pressCtrl + F, type the name of the application, and search for its key.
Step 4: Extract the Uninstall String
- Once the application’s key is selected, locate the UninstallString value in the right pane.
- Double-click UninstallString to open the Edit String window.
- Highlight the text in the Value data field and copy
it (
Ctrl + C). - (Optional) If available, you can also look for QuietUninstallString, which contains the command to silently uninstall the program without user interaction.
Step 5: Execute the Command
To run the uninstallation:
- Open the Command Prompt or PowerShell as an Administrator.
- Paste the copied string and press Enter.
If the string contains paths with spaces that are not enclosed in quotation marks, ensure you wrap the executable path in quotes before executing.