A command line to uninstall a software or program which is installed in whatever paths

jakapongc
May 15, 2023

For example, we’re going to remove 7-Zip.

Just created a script or wrap it in an app, then deploy to the clients.

FOR /F "tokens=2* skip=2" %a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7-Zip" /v "QuietUninstallString"') do %b

To create a PowerShell script, just adopt the command from:

--

--