Bryan,
To expand on what Peter was talking about, look for a key named
UninstallString. The key holds a value that Add\Remove Programs executes
when you click "Remove". You can execute the UninstallString from a command
line or programmatically. I have pasted an example below. I use Windows XP
Professional, so the key path may vary. HTH
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Installer\UserD
ata\S-1-5-18\Products\9040110900063D11C8EF10054038389C\Insta llProperties
DisplayName: Microsoft Office Professional Edition 2003
UninstallString: MsiExec.exe /I{90110409-6000-11D3-8CFE-0150048383C9} <-
You can execute this from the command line.
--
Jason Newell
Software Engineer
The Charles Machine Works, Inc.
"Bryan" <br*********@hotmailX.comX> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I am writing a C# program that needs to see if a particular program is
installed (it would be listed in the "Add or Remove Programs" list from
the Control Panel) and uninstall it.
Is there a way to do this?.. Thanks for any help... Bryan