(1)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
(2)
Note. If an app is installed under user permissions, you should go to the key
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall
(3)
If this is a 32-bit app, and your OS is a 64-bit one, you’ll need open the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
Script Command:
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7-zip" /v SystemComponent /t REG_DWORD /d 1 /f