Script to uninstall a software in setup and deployment project

Niladri.Biswas
Posted by Niladri.Biswas under C# category on | Points: 40 | Views : 726
[STAThread]
static void Main(string[] args)
{
foreach (string arg in args)
{
if (arg.Split('=')[0] == "/u")
{
Process.Start(new ProcessStartInfo(Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\msiexec.exe", "/x " + arg.Split('=')[1]));
return;
}
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new myForm());
}

Comments or Responses

Login to post response