Confused about wyUpdate versions

I'm a bit confused about creating updates or my app.I have included the initial client.wyc and wyUpdate.exe build in my installation. If I create a new update I also add these two files to a new version in wyBuild, but these are actually the client.wyc and wyUpdate.exe of the previous version. If I now create a new build of wyUpdate these files are build again for the current version. So the newly created files are not part of the update itself. How does this work? Or do I have to exclude these files from the update and only include them to the installer?

Also the site mentions that wyUpdate updates itself. Where does it get the update from? By default there is no url specified in the wyBuild properties wyUpdate tab. This url is only mentioned when building a custom wyUpdate. And is wyUpdate actually build each time I press 'Build wyUpdate'? The file version and date are not changing at all after a build.

I'm asking all this becaus I like to fully understand how the process works.

Thanks,Joost Breed

Hey Joost,

You can include the client.wyc file in your updates. wyBuild is smart enough to know that this file gets special treatment. When wyUpdate updates this file on the end-user's machine it copies all of the information (the branding, the download sites, the new languages, etc, etc) without copying over an old version number.

Does this make sense?

Where does it get the update from? By default there is no url specified in the wyBuild properties wyUpdate tab.

As of 2.6.14 this url is a wyday.com site. In wyBuild 2.6.15 this will be changed to a google.com site with the wyday.com site as a backup.

And is wyUpdate actually build each time I press 'Build wyUpdate'? The file version and date are not changing at all after a build.

The client.wyc file is generated every time you click "Build wyUpdate". The wyUpdate.exe file is just copied from the wyBuild folder. This file is only changed when you update wyBuild.

Does this help?

Its clear to me now.

Thanks for the quick response!

Here I go thread hopping again... My related question (hoping to keep answers well grouped) is: if you neglect to include a wyClient.wyc file in a patch, does it still get updated to the latest version when applied on the client? I believe that the answer is yes, and that short of branding changes in wyc the version will increment just from running wyUpdate successfully regardless of whether the wyc file was actually included in the patch build or not. I always try to include the wyClient.wyc file in my patches but have missed it at least one with no apparent ill effect.

I do however ALWAYS include the updated version of wyc in the corresponding new setup projects.

Lastly, if a setup project is deployed with new code and an old wyc file what will be the impact when wyUpdate runs? Will it fry the app because the version and the applied version are out of sync, or will it default back to the full patch?

Thanks,Chris

if you neglect to include a wyClient.wyc file in a patch, does it still get updated to the latest version when applied on the client?

The version number will always be updated. The branding, download site, translations, and other changed items will remain unchanged unless you include the client.wyc with your update. We're going to make this easier in the future.

Lastly, if a setup project is deployed with new code and an old wyc file what will be the impact when wyUpdate runs?

When you check for updates, wyUpdate will incorrectly report the "installed version" and thus download the wrong patch file. wyUpdate will try to path your files, will fail, and then will use the catch-all update to update your app.

Sam wrote:> When you check for updates, wyUpdate will incorrectly report the "installed version"> and thus download the wrong patch file. wyUpdate will try to path your files, will> fail, and then will use the catch-all update to update your app.

Perfect. Hadn't had that happen to me yet, but I am sure it is just a matter of time.