diff --git a/src/Update.Windows/Program.cs b/src/Update.Windows/Program.cs index a3fcc3150..bedf3f407 100644 --- a/src/Update.Windows/Program.cs +++ b/src/Update.Windows/Program.cs @@ -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) {