Tiny patching... cancelling update... re-downloading?

I hadn't noticed this in previous versions of wyUpdate, but not when I update my application, it begins with the tiny patch, finishes, and then says "canceling update", and then just re-downloads the whole application.

I've read in the changelog something regarding "cancelling" being a new feature, so my best guess is that this is somehow related, but other possibilities are:

- In previous versions of my application I provided the client.wyc in wyUpdate's "Your program's folder", but recently decided this was an unnecessary step.

- I was using wyUpdate 2.6.10.0 when I uploaded the files

http://www.zanmgt.com/wyDay-issue4.JPG

Hey Aaron,

This happens when a file fails to patch, so wyUpdate downloads the "catch all" update file. To debug this error, go to File -> Properties -> "Update & server files", then uncheck "Create a catch-all update...". Then re-upload the updates and retry updating to see which file is failing to patch.

The patch failure is almost certainly due to the original file not matching what it's supposed to (i.e. someone messed with the files).

Patch failed to apply to I:\\LiquidCubed\LiquidCubed-1.0.3b\Settings.xml

Exception of type 'System.Exception' was thrown.

____________________________

I found that this was due to the "Settings.xml" typically defaulting to "Null" for a specific value, which when changed would throw this error.

Because "Settings.xml" is expected to be altered, I'll need to have it removed from the wyUpdate "Your program's folder", aye?

Yes, remove the "Settings.xml" file from the current version in wyBuild and all previous versions. This way wyUpdate will completely ignore the file when it's installing updates.

Hello, I have the same problem with an xml:Version1: <ApplicationRoot Name="SalService" version="2.1.128" DownloadedVersion="" />Version2: <ApplicationRoot Name="SalService" version="2.1.128.1" DownloadedVersion="" />

If I try to build the update with "Enable patch compression" checked I get the same error and tries to get the app.all.XXX.wyu update.

The only solution that I see now is renaming the xml every time (in every update), or to uncheck the "Enable patch compression". Is there a good solution for that problem 🙂 (remove the file is not a solution)?

Thank you.

Are your users changing that file? If not, then everything should update fine. If your users are changing the file, then wyUpdate will be forced to download the "catch-all" update because the patch failed. wyUpdate doesn't try to merge the file or to do any clever interpretation. Merging files is an incredibly complex computer science topic -- the short version is that merging can never reach 100% accuracy, hence wyUpdate's all-or-nothing attitude.

Hello, Yes, you are right. Thank you.