bach file for uninstall a program

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
atamo
Posts: 15
Joined: 17 May 2010 09:14

bach file for uninstall a program

#1 Post by atamo » 13 Feb 2011 13:35

hello

I want to uninstall a program using a command file.
I get uninstall information from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\

if run it from command line work perfect but if I put in a delete.cmd file I have error " file not found. "

uninstall info is

"C:\WINDOWS\system32\SpoonUninstall.exe" <uninstall>C:\WINDOWS\system32\SpoonUninstall-dBpoweramp Windows Media Audio 10 Codec.dat

I think the colored text syntax is wrong .....

I appreciate any idea , :idea:

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: bach file for uninstall a program

#2 Post by aGerman » 13 Feb 2011 15:21

Hmm, each program has its own uninstall string. If you found <uninstall> in it then it's probably not wrong. On the other hand < and > are characters with a special meaning in a batch file. So you could try to escape them.
^<uninstall^>

Hope this will work.
aGerman

atamo
Posts: 15
Joined: 17 May 2010 09:14

Re: bach file for uninstall a program

#3 Post by atamo » 13 Feb 2011 16:26

my fault ,I forget the redirect caracters ,uninstall work nice with your suggestion.


thank's the quick help , :mrgreen:

Post Reply