From 1dd12c02a577daeab9c60505225514deaa3b7aae Mon Sep 17 00:00:00 2001 From: Gerrit Date: Thu, 3 Aug 2023 11:27:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20Permission=20Problems=20wh?= =?UTF-8?q?en=20installing=20the=20Printer=20as=20user=20without=20admin?= =?UTF-8?q?=20privileges.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Installer/AmagnoVirtualPrinter.SetupDriver/Shell.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Installer/AmagnoVirtualPrinter.SetupDriver/Shell.cs b/Installer/AmagnoVirtualPrinter.SetupDriver/Shell.cs index a22bc54..a3bed3a 100644 --- a/Installer/AmagnoVirtualPrinter.SetupDriver/Shell.cs +++ b/Installer/AmagnoVirtualPrinter.SetupDriver/Shell.cs @@ -63,7 +63,14 @@ namespace AmagnoVirtualPrinter.SetupDriver try { Console.WriteLine(exe + " " + args); - using(var proc = Process.Start(exe, args)) + + var processStartInfo = new ProcessStartInfo(exe, args) + { + Verb = "runas", + UseShellExecute = true + }; + + using(var proc = Process.Start(processStartInfo)) { proc?.WaitForExit(); }