0

I want to uninstall a program using a C# code. I can simply do it by using msiexec.exe but in order to use it, I need to have the GUID of the program I want to uninstall. If the only thing I've got of this program is it's name then how can I find it's GUID?

Yonatan Nir
  • 8,303
  • 23
  • 80
  • 156
  • http://stackoverflow.com/questions/450027/uninstalling-an-msi-file-from-the-command-line-without-using-msiexec – Andreas Jun 17 '13 at 08:36

1 Answers1

0

You can't do that reliably, you would need more information - applications can have the same 'name'.

Use an installer/uninstaller that is the package of the program.

Grant Thomas
  • 42,191
  • 8
  • 81
  • 120