ServerUtils.RunAsAdmin Method |
Runs an application in elevated mode. This mode is required to save the Server's configuration in protected files. public static void RunAsAdmin(string fileName, string parameters);
In the main program of the application using this classes, you can include: if (args.Length == 0) ServerUtils.RunAsAdmin(Application.ExecutablePath, "/edit"); else { [...] } |