Is the software package for windows removed?

I have several programs that I want to remove from my computer (Windows 7 64 bit).

Is there a \ script package that can help me? or do I need to do this one by one from the control panel?

If not in Windows 7, is there something similar in XP?

Thanks, Dor.

+8
windows-7 windows-xp batch-file uninstall
source share
4 answers

Actually in cmd there is no command like uninstall in cmd that I know of. However, you can request this registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

(You may also need to check HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall if you are on a 64-bit machine)

to find the program you want to remove. Each of them will have an UninstallString value, which will tell you the path to the program uninstall file, which can then be executed by calling its full path and file name.

If the uninstaller is msi, you can use

msiexec /uninstall /x to quietly remove it. This is about as much as you can do with the party, I think.

Hope this helps!

+12
source share

to complement Bali's answer try the following code ...

 @echo off for /f "tokens=*" %%a in ('reg query hklm\software\Microsoft\Windows\CurrentVersion\Uninstall\ ^| find /I "%*"') do ( for /f "tokens=1,2,*" %%b in ('reg query "%%a" /v UninstallString ^| find /I "UninstallString"') do ( if /i %%b==UninstallString ( echo %%d ) ) ) 

check it carefully. Then remove the echo command.

+9
source share

I wrote this this morning.

 @Echo off Echo This is a batch file uninstallation program. Echo Run as administrator WMIC will not work. echo. Echo The command [wmic product get name] will run. Echo Looking up all installed programs... echo. wmic product get name echo 1. First program echo 2. Second program echo 3. Third program echo 4. Fourth program echo 5. Fifth program echo. @echo Pick a number: echo. choice /c:12345 if "%errorlevel%"=="1" wmic product where name="First program" call uninstall if "%errorlevel%"=="2" wmic product where name="Second program" call uninstall if "%errorlevel%"=="3" wmic product where name="Third program" call uninstall if "%errorlevel%"=="4" wmic product where name="Fourth program" call uninstall if "%errorlevel%"=="5" wmic product where name="Fifth program" call uninstall Echo. Echo. @echo First method is done. I'll go into the alternate method. pause Echo Get user input - program name? Echo. Echo This is an alternate method :input set INPUT= set /P INPUT=Uninstall which program?: %=% if "%INPUT%"=="" goto input echo Your input was: %INPUT% echo. echo. Echo Uninstalling... echo The command [wmic product where name="%INPUT%" call uninstall] will run. wmic product where name="%INPUT%" call uninstall @echo If there is "no instance" errors, then the program %INPUT% was uninstalled. pause 
+3
source share

Use wmic directly from the terminal. You can see the Microsoft documentation to learn more about usage.

This will be a great starting point:

 wmic product where vendor="Autodesk" call uninstall 

I use the above line to clean autodesk files.

+2
source share

All Articles