Patch Failed To Apply

Hello Wyatt, thanks for your prompt replies and solutions.

I'm working on having wyUpdate run from a start menu item so as to avoid the software start up issue I described in an earlier post.

However, I've been running into another error, but the description doesn't give me much to go on.

"Patch failed to apply to <file>"

It seems to be just the first file in it's 'change' list, because I've removed the offending file from the update and the patch fails to apply with the next changed file, alphabetically. However, in case it is useful, the files were a click once file (.application) which I removed since we didn't need it anyway, and the next file was the .exe.manifest file.

I took special care to walk slowly through the process of creating each update and the updates are created successfully, uploaded and detected by wyupdate and downloaded on the client side. It's at the point of installation that it fails.

I'm not sure what I could have done wrong, since the update is taking place entirely outside of our software and the process of creating and uploading the patches is so simple.

Any thoughts?

Thanks,-Erik

The solution may be one or both of the following:

Possible solution #1

Lets say you have version 1.1 & 1.2 of your app. Let's also say that you have only one file: 'YourApp.exe".

Flip to the 1.1 tab, and click YourApp.exe. Check the 'Local path' field:

[attachment=0]patch-example.png[/attachment]

Is the 1.1 version Local path different than the 1.2 version Local path? (They should be).

Possible solution #2

Is the 1.1 version of the YourApp.exe file actually the 1.1 file? I.e. check if it hasn't already been updated, or it's not a different build (debug vs. release).

I keep having the same problem. The first time it somewhat worked but I had problems with my program so I wiped it and started over. Ever since I have went through the setup about 10 times today and every damn time it crashes.I have totally deleted everything and went through it over and over with the same results.

I start by making the first version(1.2.3) with nothing in it(blank) as you suggest.I build the wyUpdate and updates then upload them to my site.I add the wyUpdate files to my application installation folder.I run my program and check for updates, everything is up to date.I add version 1.3.0I add the version 1.2.3 and version 1.3.0 application files to the appropriate folders.

\project\1.2.3\bin\Release\Wasteland Cartographer.exe\project\1.3.0\bin\Release\Wasteland Cartographer.exe

I verified the local path was correct for each file.I build wyUpdate and the update files.I upload the files to my site.

When I check for updates from my application it downloads the updates so I restart the program. It launches the updater and does an update. At the end of the update it crashes and I get a msg from win 7 that the program has stopped working. That's as far as it goes, every time I try to launch my program it does that same thing. I have tried this TOOOO damn many times.

All of this has left me wondering how I get my money back, yes like a fool I bought the program before I tested it fully.

Can you send me your files so I can see your app crash? And are you using any special functions in the AutomaticUpdater, or are you just adding it to the form like in the video?

Email me the files at wyatt@wyday.com.

Also, I'd like to help you walk through these problems, but if you just want your money back then send me the email you used for purchase.

Issue resolved. I wasn't including the AutomaticUpdater.dll in the files. I wasn't aware that it was being changed with my program changes until I happened to have 2 windows open and noticed the file sizes.

Great, I'm glad you got it to work. If you have any other questions or problems, we're here to help you.