Files will not update

Hi.

I've downloaded the free trial (latest version 2.5.8.0), but I cannot get wyBuild to work properly. When I try to update my test application from version 1.0 to 2.0, the update is reported to have succeeded, but when I afterwards inspect the resulting files in my application directory, I find the following:

1) Files that were part of version 1.0 but are not part of version 2.0 were deleted OK.2) Files that are only part of version 2.0 were added OK.3) Files that are part of both versions, but have changed from version 1.0 to 2.0, were NOT updated - they remain i their 1.0 versions, and of course the application won't run! How can that be???I've cut down the test to only include only one single file that was changed from version 1.0 to 2.0, but after update (which again was reported to be successful) the file is still the old one (=1.0 version).

The file is a .NET 3.5 exe, and I would be happy to give it to you so that you can try for yourself. Please investigate.

-Martin

That's odd. Send the exe files from version 1.0 & 2.0 of your product & the wyBuild project file to wyatt@wyday.com.

Possible solution #1

If I were to guess at the problem I would say either the old EXE files or the new EXE files isn't being referenced correctly.

Open your wyBuild project, click the 1.0 version of your EXE file, note the "Local path". Now go to the 2.0 version and note the "Local path" of the same EXE files. Are the 2 paths different? They should be - they should reference the 2 versions of your app.

Possible solution #2

Did you Build wyUpdate for version 1.0 of your product? The version number of your product (what wyUpdate uses to download the correct patch files) is embedded in the "client.wyc" files. So you must be sure you included wyUpdate built for version 1.0 of your product.

You can rebuild wyUpdate for version 1.0 of your product by going to the Build page in wyBuild and selecting 1.0 from the drop-down. Then click "Build wyUpdate".

It's explained in the Video tutorial to wyBuild, AutomaticUpdater, and wyUpdate.

Hi, Wyatt.

Thank you very much for your quick response.

I will go over it once more, carefully taking your suggestions into account. If I still can't get it to work I'll send you a zip file with the whole thing (just the small test application consisting of one or two files and the WyBuild project), though I feel a little bit stupid.

I'll let you know about the outcome either way.

- Martin.

Hey Martin,

If I still can't get it to work I'll send you a zip file with the whole thing (just the small test application consisting of one or two files and the WyBuild project), though I feel a little bit stupid.

There's no reason to feel stupid. It's our job to make wyBuild as simple as possible, and it is still a bit confusing for new users. We're working on reducing the learning curve.

Hy Wyatt.

Now I've got it all working! It turned out that when building the update files *both* the old and the new version files must be available to wyBuild *at the same time*. My mistake was that I thought wyBuild would read and remember the files while adding them. Maybe you should make a note of this in your online help?What I did before was this:1) Installed version 1of my product2) Defined and added version 1 files in wyBuild3) Removed version 1 and installed version 2 of my product (maybe in another folder - don't remember)4) Defined and added version 2 files in wyBuild5) Built update files.

According to the above explanation I believe step 3) ruined the process.

A small bug I discovered:I made a typo error in the name of the download site I added. When I realized the error I tried to correct it by renaming the name of the site (by editing the name in-place) and rebuild both wyUpdate and the updates to upload. But wyUpdate.exe continued to use the old faulty name dispite of my correction. Then I deleted the download site and recreated it, and then it worked. I only tried this once, so I may have done the rebuild wrongly after the first correction, but I think you should check up on it.

Best regardsMartin.

What I did before was this:1) Installed version 1of my product2) Defined and added version 1 files in wyBuild3) Removed version 1 and installed version 2 of my product (maybe in another folder - don't remember)4) Defined and added version 2 files in wyBuild5) Built update files.

According to the above explanation I believe step 3) ruined the process.

This is because wyBuild doesn't store your files - it only references them. This is something we're planning on improving in the future. But, as it is now, you need to keep every version of your software. You can just start with your latest version, since your earlier versions don't have wyUpdate anyway.

A small bug I discovered:I made a typo error in the name of the download site I added. When I realized the error I tried to correct it by renaming the name of the site (by editing the name in-place) and rebuild both wyUpdate and the updates to upload. But wyUpdate.exe continued to use the old faulty name dispite of my correction. Then I deleted the download site and recreated it, and then it worked. I only tried this once, so I may have done the rebuild wrongly after the first correction, but I think you should check up on it.

There is a small bug that if you edit the site, then flip to the Build page without first pressing enter (so the site is still in "edit mode") the site change isn't saved.

We'll have that fixed in the next version.