Skip to content

Commit

Permalink
Remember the calling app (HACK)
Browse files Browse the repository at this point in the history
Basically, to support relaunches while running from VS
  • Loading branch information
synhershko committed Aug 10, 2012
1 parent db1dc82 commit 73e2d89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NAppUpdate.Updater/ArgumentsParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class ArgumentsParser
public string ProcessName { get; private set; }
public bool ShowConsole { get; private set; }
public bool Log { get; private set; }
public string CallingApp { get; set; }

private static ArgumentsParser _instance;
protected ArgumentsParser()
Expand Down Expand Up @@ -42,6 +43,7 @@ public void Parse(string[] args)
if (arg.Equals(System.Reflection.Assembly.GetEntryAssembly().Location, StringComparison.InvariantCultureIgnoreCase)
|| arg.EndsWith(".vshost.exe", StringComparison.InvariantCultureIgnoreCase))
{
CallingApp = arg.ToLower().Replace(".vshost.exe", string.Empty);
continue;
}

Expand Down

0 comments on commit 73e2d89

Please sign in to comment.