Commandline options for multiple plugins

Hello WyTeam-

I have 2 plugins that use the automaticUpdater control that I want to use separate client.wyc files for. I read on the forum that one option would be to use commandline options in my app. Does this look right?

this.automaticUpdater1.wyUpdateCommandline = "-cdata:" + Application.StartupPath +"\\EASy7.2.wyc -basedir:" + Application.StartupPath;this.automaticUpdater1.wyUpdateLocation = "WyUpdate.exe";

Cheers,

Well, OK nvm.

That seems to work just fine 😉

Well rats. Maybe not.

Do you mind checking if the code in the first post is OK?

Make sure you set the commandline property in the constructor of your form. You should also have quotes surrounding the path names:

this.automaticUpdater1.wyUpdateCommandline = "-cdata:\"" + Application.StartupPath +"\\EASy7.2.wyc\" -basedir:\"" + Application.StartupPath + "\"";

For instance, the "-cdata" commaonline switch will now read like this to wyUpdate:

-cdata:"C:\Path to your app\EASy7.2.wyc"

instead of:

-cdata:C:\Path to your app\EASy7.2.wyc

Which wyUpdate would read as separate commanline switches ("-cdata:C:\Path", "to", "your", etc, etc.).

Does this make sense?

Yes, thanks.

That works perfectly...