ad pisze:
How can I uninstall the programs registered in the "add/move program" of
control panel?
How do you know which program do you want to uninstall? I assume that
you have a name that is displayed in the Add or Remove Programs applet?
It turns out that you can read the entire uninstall command from Windows
registry (this will also work for applications that were not created
with Windows Installer compatible installation tools).
You should programmatically search all the registry keys under:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr ent Version\Uninstall
When you find a key, whose value DisplayName matches name of the
application you want to uninstall, read the value UninstallString from
the same registry key and start command described by this value using
System.Diagnostics.Process class.
Best regards!
--
Marcin Hoppe
Email:
ma**********@gmail.com
Blog:
http://devlicio.us/blogs/marcin_hoppe