private void Uninstall() { try { string[] arguments = Environment.GetCommandLineArgs(); foreach (string argument in arguments) { if (argument.Split('=')[0].ToLower() == "/u") { string guid = argument.Split('=')[1]; string path = Environment.GetFolderPath(Environment.SpecialFolder.System); ProcessStartInfo si = new ProcessStartInfo(path + "/msiexec.exe", "/x " + guid); Process.Start(si); Close(); Application.Exit(); } } } catch (Exception ex) { DataClass.LogError(ex); } }
DSIL has encountered a problem and needs to close. We are sorry for the inconvenience.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)