wyUpdate very slow to check for updates

Hello,I am testing wyBuild in a local network environment. I have two download sites:

1. %updatepath%\%file%2. http://xxxxx

I call wyUpdate using -updatepath and -server parameters to indicate checking should be done on the 1st download site. It all works, however wyUpdate takes a very long time to check if there's an update, up to 20-30 seconds sometimes.

My doubt is whether the 2nd download site, which is not accessible at all times, is still checked and therefore causes the delay. If this is the case, how can I stop wyUpdate from using the 2nd download site without removing it?

Thanks

The second site is only checked if the first site fails. If I were to guess the reason for the slowness I'd say it's because you have some firewall or internet problem. Because wyUpdate checks for updates to itself by downloading a file on wyday.com. So if you have a block on internet (or on our site) then this will slow down the checking process.

Read here about hosting wyUpdate on your own site: How to make a custom version of wyUpdate.

Ok that's fine.However I don't understand why I have to build a custom wyupdate version. Can't I just specify the server that hosts it in my wyBuild project properties?

Btw, I tried this but since I am using a custom update path specified via command line to wyUpdate.exe, I used %updatepath%\wyupdate.wys as the location for wyUpdate self update however I think %updatepath% does not get replaced with the -updatepath parameter value passed via command line. Is this so?

Thanks

Can't I just specify the server that hosts it in my wyBuild project properties?

You don't have to compile your own version of wyUpdate -- you can just use ours. But the rest of the tutorial applies.

Btw, I tried this but since I am using a custom update path specified via command line to wyUpdate.exe, I used %updatepath%\wyupdate.wys as the location for wyUpdate self update however I think %updatepath% does not get replaced with the -updatepath parameter value passed via command line. Is this so?

Currently the "%updatepath%" variable isn't parsed for the self-update server location. We'll add that ability for wyBuild 2.6.16 (the version after the next version).

Ok, thanks a lot.

Until you add this ability in the version after the next one, can you point me to the code in wyUpdate source code where I could try to add this myself?

Thanks

The links to the source code and subversion repository are on the downloads page.

Yes I know, I have already downloaded the source code, was just asking if you can give me a hint on where to do the necessary changes in the source code.

Thanks.