From 9003157a0f55e214ef07a10b4f0c65b57eacadda Mon Sep 17 00:00:00 2001 From: Alex Macocian Date: Mon, 15 Jul 2019 10:42:45 +0300 Subject: [PATCH] Changed elevateprocess way of getting the filename --- SystemExtensions/Security/ProcessInformation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SystemExtensions/Security/ProcessInformation.cs b/SystemExtensions/Security/ProcessInformation.cs index 081e973..e1e2bf7 100644 --- a/SystemExtensions/Security/ProcessInformation.cs +++ b/SystemExtensions/Security/ProcessInformation.cs @@ -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";