Changed elevateprocess way of getting the filename

This commit is contained in:
2019-07-15 10:42:45 +03:00
parent 47c1e67f38
commit 9003157a0f
@@ -391,7 +391,7 @@ namespace SystemExtensions.Security
ProcessStartInfo proc = new ProcessStartInfo();
proc.UseShellExecute = true;
proc.WorkingDirectory = Environment.CurrentDirectory;
proc.FileName = GetApplicationPath() + Assembly.GetCallingAssembly().GetName().FullName;
proc.FileName = Process.GetCurrentProcess().StartInfo.FileName;
proc.Verb = "runas";