wyUpdate seems to prevent application from running after upd

One of my customers aborted the update and now whenever they start the app, it only displays the splash screen and the exits. Where are the download update files located and how can they be cleared so that the program starts normally again. I think it is trying to update itself and the download files may be corrupt and so the app quits. Is that what is happening?

Hey Bryan,

Did they cancel the update and let wyUpdate rollback the update? Or did they just kill wyUpdate (e.g. from the Task Manager). If they just killed wyUpdate then your app will need to reinstalled.

Are you using wyUpdate with the AutomaticUpdater or just wyUpdate.exe in by itself? If you're using wyUpdate in standalone mode then there's nothing cached and your user will have to reinstall your app.

If you're using wyUpdate with the AutomaticUpdater then tell the user to type the following into the "Run" box on Windows XP/2000 or the Start Menu textbox on Vista/7:

%appdata%\wyUpdate AU

Tell them to press "Enter" and tell them to delete all files and folders within that "wyUpdate AU" folder. Then tell them to do the same with this:

%userprofile%\wc

Tell me if this helps.

Thank you Sam. Yes I am using both the wyUpdate and the Autoupdater. I will forward your suggestion to the customer.

I had the same problem, the AutomaticUpdater crashed the app somewhere during the form_load event...

And clearing the temps fixed it. 😀

Though I'm not sure how to catch the error, you can add a small function to clear the folders and add a startup argument to trigger it. For my case, I've got two shortcuts for the user now. "Run Main" & "Run - Clear Cache Mode"

This is the way i've fixed it. Hope it helps 🙂




Cheers,Ash

Do not hard code these paths into your code. Theses directories have changed in the past and they might change again in the future. This code is dangerous.

A crashing bug is not due to the data in the cache -- it's due to a bug in the way you're handling automatic updates. If you can reproduce the crash on your machine then run your program in a debugger to see exactly where the exception is occurring.

The most common cause for this crashing bug is failure to handle the case when the AutomaticUpdater closes your application on startup. So, to reproduce this bug on your machine try this:

  1. Release a new update.
  2. In your app check for updates & download them. But don't install them.
  3. Close your app. Then start your app.
  4. The AutomaticUpdater should then close your app and the installation begins.

If step 4 isn't happening then there's a bug in your code.