updatepath and server

I want to set a new updatepath and a new server path, but it seems that it only works for the server path. My commandline in the constructor looks so:

automaticUpdater.wyUpdateCommandline = " -server=http://x/updatesTest/wyserver.wys -updatepath=http:///updatesTest/%file%";

Thanks for your help.

Now I found this following information, but there is the same mistake:

information begin:You can add a download site with the %updatepath% variable:

Code: %updatepath%/%file%Then pass the updatepath to wyUpdate:Code: wyUpdate.exe -updatepath="http://yoursite.com/updates"inforamtion end:

I do not know what I am doing wrong. Thanks for your help.

The download sites are contained in the client.wyc file. This means you have to rebuild wyUpdate after you change the download sites.

I apologize , I've cross posted on this issue. Is it possible to change the download server path at the same time you are changing the server path with the stand alone wyUpdate.exe.

e.g. wyupdate.exe -server="http://example.com/wyserver.wys" -quickcheck -noerr

Just to be clear. I don't think that setting the server override also overrides the download path to the updates. Is this even possible?

Thanks,Chris

Hey Chris,

The -server commandline switch simply points to an alternative location to download the *.wys file. The *.wys file still contains all the update sites listed in your wyBuild project file.

To specify alternative download sites use the %updatepath% variable and the -updatepath commaneline switch. I.e.

%updatepath%/%file%

then

wyUpdate.exe -updatepath="http://example.com"

Great, I'll try that. I think that is a new variable since I created by helper class I use in my projects. I am going through and updating things such as this due to a new clients requirements. I wasn't understanding that the %updatepath% variable needed to be in the wyBuild update server screen before passing the parameter with the wyUpdate.exe. Got it now. Thanks.