Version checking for self-built wyupdate.

I'm trying to work out how wyupdate updates itself. More specifically, how it works out when it needs to update itself.

My current understanding:- wyupdate checks, based on the client.wyc file, at the customer_application update site for updates to the customer_application (ie. get the 'myapp.wys' file).

- if there are updates, ie. version in .wyc is lower than max version on server, it will check the 'minimum required wyupdate version' as specified in the .wys file. This wyupdate version is set by wybuild at patch build time, and is based on the version number of wybuild.

(here's where my understanding gets fuzzy)

The wyupdate update server is checked for an update to wyupdate and wyupdate is patched, before proceeding to patch the app.

-> how does wyupdate determine what its currently installed version (of wyupdate) is? -> if the current version of wyupdate sufficient (ie. meets the version as stored by wybuild in 'myapp.wys'), will it update to the latest wyupdate, or decide it is current enough?

My current understanding from the code is that wyupdate uses the AssemblyVersion attribute, and that it won't self-update if it has a 'current enough' version. Is this correct?

When I make a new self built version of wyupdate, I know I should increment the build number only. I'm assuming therefore that the 'current enough' version criterium only applies to the x.y.z part of the build, but will allow for updates on the build number ie. x.y.z.build

My current understanding from the code is that wyupdate uses the AssemblyVersion attribute, and that it won't self-update if it has a 'current enough' version. Is this correct?

When I make a new self built version of wyupdate, I know I should increment the build number only. I'm assuming therefore that the 'current enough' version criterium only applies to the x.y.z part of the build, but will allow for updates on the build number ie. x.y.z.build

Actually wyUpdate reads the file version - but it's the same thing in wyUpdate.

Regarding self-updates, I'll give you 2 cases. In the first case wyUpdate 2.5 is installed, but wyUpdate version 2.6 is required to install the update. So it tries to update itself. If it succeeds the update continues as expected. If it fails it shows a message about failing to update to the latest version of wyUpdate.

In the seconds case wyUpdate version 2.6 is installed and wyUpdate version 2.6.1 is released an on the servers. The update only requires wyUpdate version 2.6 to install the update. So wyUpdate will try to update itself to 2.6.1. If it succeeds the update continues as expected. If it fails, it's non-fatal, and the update still continues as expected.

Does this make sense?

Thanks - that makes sense.

One question remains. To use your 2.6.1 example, if I wanted 2.6.1 to be a mandatory version, rather than 2.6.0, am I correct in thinking that I cannot force that, because the minimum required version is set by wybuild (based on its own version).

If there isn't a way to control this, do you have any plans to allow this to be forced?

If there isn't a way to control this, do you have any plans to allow this to be forced?

No. However if you absolutely want the latest custom version installed make sure all your servers are up when the user updates.