Page 1 of 1

bach file for uninstall a program

Posted: 13 Feb 2011 13:35
by atamo
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:

Re: bach file for uninstall a program

Posted: 13 Feb 2011 15:21
by aGerman
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

Re: bach file for uninstall a program

Posted: 13 Feb 2011 16:26
by atamo
my fault ,I forget the redirect caracters ,uninstall work nice with your suggestion.


thank's the quick help , :mrgreen: