Don't run Update.exe if there are no arguments (closes #75)

This commit is contained in:
Caelan Sayler
2022-08-22 17:27:38 +01:00
parent 1aa632559c
commit ca6aeb96bd

View File

@@ -29,6 +29,10 @@ namespace Squirrel.Update
[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) {