Fix "startup wox on window start" issue.

This commit is contained in:
qianlifeng
2014-02-18 22:02:55 +08:00
parent fcdb9e39c6
commit b8fbc837dc
5 changed files with 22 additions and 9 deletions

View File

@@ -55,7 +55,7 @@ namespace Wox.Infrastructure
Debug.WriteLine(args);
var psi = new ProcessStartInfo
{
FileName = Path.Combine(Directory.GetCurrentDirectory(), "Wox.UAC.exe"),
FileName = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Wox.UAC.exe"),
Arguments = args,
CreateNoWindow = true,
Verb = "runas"