Squirrel / Squirrel.Windows

An installation and update framework for Windows desktop apps
MIT License
7.32k stars 1.03k forks source link

Squirrel Arguments appending "-a" #1595

Open rohitisinhk opened 4 years ago

rohitisinhk commented 4 years ago

Why do we always append "-a" to the app argument in shortcuts.

My application takes parameter as MyApp.exe --mainConfig "SomeXml" --otherConfig "PathToSomeOtherXml"

However when the shortcut is created it appears as: MyApp.exe -a "--mainConfig SomeXml --otherConfig someOtherConfig"

Why did we chose to always prepend "-a"? "-a" is not a generic best practice so trying to understand why it was decided like so?

anaisbetts commented 4 years ago

This looks to be left over from before Squirrel used Stub Executables (#868) and probably doesn't belong there anymore - originally app shortcuts were always to Update.exe so there needed to be a way to distinguish between parameters intended for Update.exe and parameters for the app.