private void removeApp() { ustAssembly = @"c:\path\tosome\file.exe" Assembly ustAsm = Assembly.LoadFrom(ustAssembly); string appGUID = "{" + ustAsm.GetType().GUID.ToString() + "}"; string args = @"/x " + appGUID; Process p = new Process(); p.StartInfo.FileName = "msiexec.exe"; p.StartInfo.Arguments = args; p.StartInfo.UseShellExecute = true; p.Start(); p.WaitForExit(); }
ustAssembly = "c:\path\tosome\file.exe"
ustAssembly = @"c:\path\tosome\file.exe"
ustAssembly = "c:\\path\\tosome\\file.exe"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)