Unknow

Unknow

  • NA
  • 1
  • 16k

C# setup Project Product Code

Feb 15 2011 5:18 AM

Hi all,
i've a question =D.
I work at the moment on a Setup Project. I also write a little Uninstall Project which start a Process to uninstall a product. My Question is: Is it possible to read the Product Code from Setup Project automaticly?
C# Code for Uninstall:
 
Process process = new Process
{
   StartInfo =
   {
      FileName =
"msiexec.exe",
      Arguments =
"/x \"{869F12A8-F390-49B0-95E9-D9CCF93E1BDB}\"/qr"
//869F12A8-F390-49B0-95E9-D9CCF93E1BDB <-- Setup Product Code
   }
};
process.Start();
 

at the moment i wirite the product code manually in the code and it changes with each version.
Thanks for Help ;)
Greez

Answers (1)