wyBuild Multiple Update Versions

I have the following issue.I have existing and new customers. In the new customers i ship an installation project with the version 1.0.0Now the program is on version 1.0.5. I tried to build each version containing only the updated files and i realize that the updater deletes all the other files that exists in the destination folder and does not exist in the upgrade package. While searching the knowledge base i found an article which says that in order to prevent files from deletion i have to remove it from the current and all the other previous versions. I have done that and it works fine. But after that i realize two more things. Firstly i miss the history of the upgrade packages in the wyBuild project file, something which is not very usefull if i want to rebuild a previous version. The other thing is what happens with the new customers whose had install the version 1.0.0? As i saw the updater gets only the files from the latest version bypassing all the others (1.0.1, 1.0.2, 1.0.3, 1.0.4) as result to miss upgraded files. Is that correct? Have i done something wrong? If that is correct i believe that this is not very usefull because in order to cover that situation i have to include every file from every version in the latest one and by following that procedure i will come up with an upgrade file which might contain all the project files. Any workaround? Any suggestions?

Best Regards

Thomas

Hey Thomas,

If you see the "First update" section of the step-by-step walkthrough we tell you to include all the files from every version of your app. wyBuild takes care of comparing the differences between the versions, generating patches, and creating a list of files and folders to remove.

If you only include some of the files of updates then you'll run into problems that you've been seeing.

As i saw the updater gets only the files from the latest version bypassing all the others (1.0.1, 1.0.2, 1.0.3, 1.0.4) as result to miss upgraded files. Is that correct?

wyBuild doesn't do incremental patching (e.g. 1.0 -> 1.1 -> 1.2 -> 1.3) but rather creates updates from "oldversion" to "newversion" (e.g. 1.0 -> 1.3, 1.1 -> 1.3, 1.2 -> 1.3). Then wyUpdate chooses the correct update file to download based on the version of the app they have installed.

Tell me if this helps.

Ok, so as i can understand, i have to add all application files in each version either updated or not and the updater choose which files to update.I have one more question. What about my database? The database exists under "my program folder\Data" and is installed with the installer of the version 1.0.0.0. What shoud i do in order to prevent my customers of loosing data? My databases are (depending on the program) mdf, sdf and accdb. The access file never needs uppdate. The sql express or the compact edition will be updated with sql commands from a bat file which i will add it in the temporary folder as i saw in help. So, can you explain me the procedure on preventing deletion or update of the database file?

Best Regards,

Thomas

Regarding your database files, just exclude them from all versions (in wyBuild). This way they will be neither patched nor deleted. wyUpdate won't touch them at all.

Great...

I am sorry for asking all that staff, but i just bought the software yesterday and i trying to manage all that situations. I will try and if i have another question i will come back.

It's no problem at all, I'm glad to help.