Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Don't run Update.exe if there are no arguments (closes #75)
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Aug 22, 2022
1 parent 1aa6325 commit ca6aeb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Update.Windows/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class Program : IEnableLogger
[STAThread]
public static int Main(string[] args)
{
// if Update.exe is double clicked from explorer, we do not want to attach a console etc.
if (args.Length == 0)
return -1;

try {
return main(args);
} catch (Exception ex) {
Expand Down

0 comments on commit ca6aeb9

Please sign in to comment.