updating to a specific version

I sometimes have two versions of my software posted -- a stable, production release, and a beta release with a later build number. The software is usually updated by updating the server first manually, and then using wyUpdate on the various remote client machines to check if they are out of date and then update them accordingly.

However, sometimes the server may be updated to the production, and sometimes to the beta version. Is there a way to specify the correct update to use in this scenario? By default wyUpdate always updates to the latest, which is not always correct for me.

Overall it's a terrific piece of software.

Best regards,Aaron

Hey Aaron,

There are a few ways to do this (we'll make this easier in the future). The best way to currently do this is to have the separate branches for beta / production / etc.. The branches will be represented by separate *.wys files. For example, http://yoursite.com/beta-updates/server.wys

Then you can either use separate client.wyc files for the separate branches or use the -server or -updatepath variables/ commandline arguments to let your users or your app decide which branch they're on.

Does that make sense?

Wyatt--

Yeah, that makes sense. It's a bit of nuisance, but I can live with it. Thanks for the prompt reply.

Regards,Aaron

My scenario has become a bit more complicated, with more than two releases involved. Consider the following:

Company upgrades his server to version 1.1. However, some of the users of the client software, which is updated using wyUpdate, are on vacation, and don't upgrade. Meanwhile I find a bug, and correct it by posting a new release, version 1.2. User returns from vacation, runs my software, but he is upgraded to v1.2 from v1.0, but the server is still running v1.1. Not good.

You can't really solve this by using different directories, because you don't know how many versions you're dealing with. So is there a cleaner, more universal solution? A way to tell wyUpdate not to get the latest but to get a particular update by version number?

All right. I've been fooling around with this a little, and come up with this.

1. Set the download path to %updatepath%/%file%, and make this an update site only (by right-clicking on it).

2. Upload the update to a known path.

3. Create subdirectories of the known path, one for each build I may wish to update, and move the appropriate .wyu file and associated files to the subdirectory.

4. Call wyUpdate on my clients, passing the -updatepath argument, which I set to the appropriate subdirectory.

So the .wys will live in the main directory, and the update stuff will live in the subdirectories.

Will this work? Is there a better way?

Regards,Aaron

Will this work? Is there a better way?

Yes, that will work and no, there's no better way currently. wyUpdate / wyBuild are currently designed such that companies can offer updates to users so that the user gets the very latest version of their app.

Fair enough. Still, something a little less kludgy in a future release would be nice. I doubt I'm the only wyUpdate user who has to deal with this scenario.

Regards,Aaron