Update Stuck on Downloading

For one of my apps I changed the update location. Out of over 100 apps all but 6 of them updated properly and are now pointing to the new location for the next update.

For the 6 that didn't, they are stuck at DOWNLOADING UPDATE 0%. Then they fail. Run the update process again and it immediately jumps to downloading. I even uninstalled the app and reinstalled it (older version) and it immediately jumps to downloading. It doesn't go through the normal process of checking....and so forth.

Is there something stuck on the machine (user folder? reg?) that is telling wyupdate where to leave off?

Many thanks for any insight!

I need a whole lot more information. For starters:

What version of wyUpdate are you running?What version of the AutomaticUpdater are you running?

I have no clue what version I was running before the issue. After the issue however I've updated the app to the newest version. So it's at 2.6.16.4.

However that wont do anything to affect the machines that are currently stuck. They are no longer looking to the update location for data as I've even removed the update files and it still attempts to download instead of presenting a Update Failed. I have no clue what they're trying to do.

I went to one of the machines and looked at it's current AutomaticUpdater DLL - File Version 2.6.14.0

Canceling the download then rechecking for updates will fix this problem on old versions of wyUpdate/AutomaticUpdater. This bug was fixed a number of months ago.

I've tried that. My app auto checks for updates when it starts but if I rush to the update button I can cancel the update. I get a message that says canceled. But if I click my update button it goes straight to downloading instead of "checking for updates".

I also tried to manually replace both wyUpdate.exe and client.wyc so it should now be pointing in the right spot but it's still stuck trying to download something bogus. If I run wyUpdate.exe manually it tells me I'm on the latest version.

Trying to manually replace AutomaticUpdater.dll results in the program crashing.

, edited

You have to recompile your app with the latest AutomaticUpdater. You can't just replace the AutomaticUpdater.dll -- it doesn't work like that.

I just came back to post this:

So I went ahead and recompiled my app with the updated DLL (2.6.16.0). I uninstalled the app and reinstalled it with the new DLL. Same issue. Immediately says it's Downloading 0% then fails.

What version of wyUpdate.exe is included in the folder?

2.6.16.4430KB3/3/2012

Immediately says it's Downloading 0% then fails.

Ok, what's the failure (give me the exact error message)?

I'm not using your flyout object. I'm handling "AutomaticUpdater.DownloadingOrExtractingFailed". What's the quickest way to get the info you want?

I don't understand your last post. That's the error. That event is firing. You wanted the exact text:

DownloadingOrExtractingFailed Event is raised when the update fails to download or extract.

Use the "FailArgs" instance to get the ErrorTitle and ErrorMessage

Title - The update failed to download.Message - Error trying to save file: Error downloading.

It's getting a 404 Not Found for a file with extension .wyu that no longer exists. It was an interim update that was abandoned a while ago. These machines must have tried updating for that 1 minute window it was published many months ago. Now that we're trying to update to something real they're all stuck.

So the file it's looking for doesn't exist and can't exist. Why is it stuck looking for that update?

Also, the location it's looking for it is the new location which that old update never resided at. So the manually updated client.wyc is working except it's still trying to find a specific update that doesn't exist.

Double click the client.wyc file, see where the *.wys file is located on your server. Then download that file in your browser. Then double click the *.wys file you just downloaded. Where are the *.wyu files? Do they match the error message?

Double clicking the wyc or wys file asks me to select an app to open it with. Open it with what?

I know exactly where the wys file is. The problem is it wants a wyu file that no longer exists.

"It's getting a 404 Not Found for a file with extension .wyu that no longer exists."

It's trying to update from 1.4 to 1.4.1. 1.4.1 no longer exists. The only option of upgrading is from 1.4 to 1.5.

It's stuck trying to upgrade to a version that does not exist.

Double clicking the wyc or wys file asks me to select an app to open it with. Open it with what?

Upgrade your copy of wyBuild to the latest version. We have *.wyc/*.wys/and *.wyu readers that open when you double click the files.

The problem is it wants a wyu file that no longer exists.

Right, and my question is does the *.wys still reference this old file on your server?

Hum...fyi, I had to install wyBuild on another machine. On my development machine which has seen many versions of wyBuild, the reader is not working.

To answer your question, no, that file is not referencing the old update file. The app on the goofed up machines is not reading in the new wys file. That's clear in the fact that if I REMOVE all the update files from my server, it still tries to download an update.

In other words, with ZERO update files for the program to find, it's trying to download an update (that does not exist).

Well, calling ForceCheckForUpdates(true) will solve that problem.

Finally, that got it unstuck from whatever it was trying to do.

Many thanks!