mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Don't run Update.exe if there are no arguments (closes #75)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user