I have a visual studio setup and deployment project. I\'ve added a .cmd script in it. The script would need administrator privileges to run. When user clicks on the setup.ex
Just Try this, This worked for Me.
... using System.Diagnostics; ... ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.UseShellExecute = true; startInfo.Verb = "runas"; startInfo.Arguments = "/env /user:" + "Administrator" + " cmd"; Process.Start(startInfo); ...
Ashutosh