How to uninstall a program in windows 10 using a .bat file?

0

I must uninstall and install a program frequently, it occurs to me that it could be possible using a .bat that executes CMD type commands to uninstall it. Is this possible ?

    
asked by MrDev 11.05.2017 в 19:25
source

1 answer

0
@echo off
@echo [ON ^| OFF]
TITLE Desinstalar
MODE con: cols=110 lines=320
COLOR 02 
wmic product get name
set /p programa=[+]Desinstalar el programa completo:
wmic product where name="%programa%" call uninstall
pause

Note: copy and paste into a notebook with the name Uninstall.bat

In the code there are two @echo. the first   @echo OFF starts the bat   @echo ON disables the bat.   wmic product get name is the command that will help us to uninstall programs and it is a cmd command.
Then you choose the program you want to uninstall set /p programa= [+]Desinstalar el programa completo: and press enter   wmic product where name="%programa%" call uninstall It's a faster way to uninstall programs and if you know the name of the program you want to uninstall   wmic product where name="%programa%" call uninstall you can change the name %programa% by the name of the program would be something like this wmic product where name="El_nombre_del_programa,exe" call uninstall

    
answered by 17.11.2018 в 05:58