How wyUpdate updates files

Through my app i provide users with a bunch of files they should use in their work. These files are often updated by me and i want to be sure that users are using the latest versions of them. But if fact, wyUpdate performs things another way! It sees that user already got this or that file and just skip it. I know that for some other apps this way of updating is suitable but not for mine, cause my users are not supposed to modify the files i provide. So.... the question is: how to make wyUpdate compare files and update them if the latest versions of files are availible?

These files are often updated by me and i want to be sure that users are using the latest versions of them. But if fact, wyUpdate performs things another way!

That's not exactly true. Here's how wyBuild builds the updates (let's say from version "A" to version "B"):

If the file exists in both versions

wyBuild compares them. If they're identical wyBuild excludes them from the update (wyUpdate won't touch the file at all during the update). If they're different wyBuild generates a patch.

If the file exists in version "A" but not in version "B"

wyBuild will delete the file.

If the file exists in version "B" but not in version "A"

wyBuild will include the full file.

how to make wyUpdate compare files and update them if the latest versions of files are availible?

It does this by default. Perhaps I'm misunderstanding. Can you give me an example of where this is failing? (Also, you might want to check out the video intro to wyBuild/wyUpdate/AutomaticUpdater - it quickly covers a lot of the errors new users make.)

Man, actually i thought about that the same way..... Consider the following example:

I've created a test wyp project. Included only one text file (1.txt) with a several lines of text in it. Copied that file to "program's folder", built wyUpdate of 1.0 version of the app, copied generated wyUpdate.exe and client.wyc files into the same folder. Opened text file 1.txt from the source folder, added several lines of text in it, saved and closed. Then i created version 1.1 of my app, added 1.txt in it and finaly built Updates of the app. After that i lounched wyUpdate.exe from "program's folder", it found updates and installed them! Cool! But when i opened "updated" 1.txt file - there were no additional lines of text that i previously added in source file. 😳

After playing around with this issue-non issue 😉 i found out that file 1.txt will be updated only if it is included in wyp project from different source folder. That is to say, first version of 1.txt should be located in 1.0 source folder, after deciding to make some changes in it, i should create a new folder, for example 1.1, copy 1.txt file in it and make changes there. After that i should create version 1.1 of the app and add 1.txt file from 1.1 folder. Only in this case file will be updated. Am i right?

That is to say, first version of 1.txt should be located in 1.0 source folder, after deciding to make some changes in it, i should create a new folder, for example 1.1, copy 1.txt file in it and make changes there. After that i should create version 1.1 of the app and add 1.txt file from 1.1 folder. Only in this case file will be updated. Am i right?

Correct. You're in charge of managing the versions. wyBuild doesn't copy your files to any folder, or create an archive.

So, simply create a version folder for each version of your software, e.g. 1.0, 1.1, etc. with the files specific to that version inside the folder. Then add those files to wyBuild.

As you previously said - "It's a pain in the ass" to maintain all these folders for a multi-component updating 🤣

Right, we're trying to improve the system so it's intuitive and easy. (It's a lot harder than you would think).

I too am a little confused when it comes how wyUpdate updates my application

I have downloaded wybuild trial version to test. I created a new test version of my application by changing the contents of a single config file. When wyUpdate is run it updates to the new test version but does not update the changes I made in the config file. The only way I was able to get the changes to be updated was to rename the test version folder. This time when wyUpdate was run it updated the application and the config file with the changes was updated. But essentially it updated every file rather than just the 1 file with the changes.

I was under the impression that wyUpdate would evaluate changes between files and only update the files with changes? The TurboPatch feature claims to Create Tiny Update Patches and yet the only way I could update 1 small change to 1 small file was to update the entire application?

Is there something I am doing wrong? or perhaps a bug with the trial version I have?

Hey ITL,

We've just finished Step-by-step walkthrough to using wyBuild, the AutomaticUpdater, and wyUpdate.

Also, the workflow to releasing new updates.

Tell me if you're still having problems.

sorry I'm a little late on the reply.....

Thanks for the updated tutorials. They explain the wybuild/wyupdate process well and I have successfully used wyupdate within our application.