public static void Profiles(string pathApp, string pathData) { if (Engine.Instance.Elevated != null) { string owner = Environment.UserName; ElevatedProcess.Command command = new ElevatedProcess.Command(); command.Parameters["command"] = "compatibility-profiles"; command.Parameters["path-app"] = pathApp; command.Parameters["path-data"] = pathData; command.Parameters["owner"] = owner; command.DoSync(); } }
public static void WindowsRemoveTask() { ElevatedProcess.Command command = new ElevatedProcess.Command(); command.Parameters["command"] = "compatibility-remove-task"; command.DoSync(); }