C#C
C#3y ago
5 replies
trumats

❔ How to make so my app launcher another app with admin rights

        public void Button_Click(object sender, RoutedEventArgs e)
        {
            ProcessStartInfo info = new ProcessStartInfo("RigaUpdater.exe");
            info.UseShellExecute = true;
            info.Verb = "runas";
            Process.Start(info);
            App.Current.Shutdown();
            //Process.Start("RigaUpdater.exe");
        }
image.png
Was this page helpful?