🐛 Fix Permission Problems when installing the Printer as user without admin privileges.
This commit is contained in:
parent
49ee9b1079
commit
1dd12c02a5
1 changed files with 8 additions and 1 deletions
|
|
@ -63,7 +63,14 @@ namespace AmagnoVirtualPrinter.SetupDriver
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Console.WriteLine(exe + " " + args);
|
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();
|
proc?.WaitForExit();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue