Squirrel.windows: Pass arguments to Update.exe

Created on 11 Jun 2015  路  4Comments  路  Source: Squirrel/Squirrel.Windows

Currently for launching an application with Update.exe, we need to create a shortcut with the following target:

Update.exe --processStart MyExe

But is there a way to pass arguments to the command?

For example, i tried this:

Update.exe --processStart MyExe arg1 arg2

But saddly it's not working.

Thanks!
Kevin

Most helpful comment

I found there is an option to pass them here:

https://github.com/Squirrel/Squirrel.Windows/blob/0d1250aa6f0c25fe22e92add78af327d1277d97d/src/Update/Program.cs#L123

Update.exe --processStart Malone.exe --process-start-args "huh say wut"

I then used Environment.GetCommandLineArgs() to retrieve them, and for my simple testing purposes spat them out to a textbox:

image

@paulcbetts some commands/options that are in code, aren't shown when you run Update.exe without any parameters (to see the available commands and options):

image

Worth raising an issue for?

All 4 comments

I haven't tested the idea at all, but have you tried quoting your args? E.g.:

Update.exe --processStart "MyExe arg1 arg2"

Nice idea!
But sadly it didn't work.

I found there is an option to pass them here:

https://github.com/Squirrel/Squirrel.Windows/blob/0d1250aa6f0c25fe22e92add78af327d1277d97d/src/Update/Program.cs#L123

Update.exe --processStart Malone.exe --process-start-args "huh say wut"

I then used Environment.GetCommandLineArgs() to retrieve them, and for my simple testing purposes spat them out to a textbox:

image

@paulcbetts some commands/options that are in code, aren't shown when you run Update.exe without any parameters (to see the available commands and options):

image

Worth raising an issue for?

Oh thx it works like a charms!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

patrickklaeren picture patrickklaeren  路  4Comments

mwave picture mwave  路  6Comments

Andrew-Hanlon picture Andrew-Hanlon  路  6Comments

estyfen picture estyfen  路  4Comments

frederikolsen88 picture frederikolsen88  路  4Comments