Updater not updating site

We are using wyupdate to keep a windows forms application up-to-date. We are using AutomaticUpdater library. All of our sites have successfully updated except a few.

We are checking for updates using:

var result = AuBackend.ForceCheckForUpdate(true)

This method is returning false. For the sites that updated successfully, this method returned false.

I have pushed additional versions, but these particular sites do not update.

Do you have any idea what might be happening?

Thanks!

This method is returning false. For the sites that updated successfully, this method returned false.

If you read the code comments for the "ForceCheckForUpdate()" function you'll see this:

/// <summary>Check for updates forcefully -- returns true if the updating has begun. Use the "CheckingFailed", "UpdateAvailable", or "UpToDate" events for the result.</summary> /// <param name="recheck">Recheck with the servers regardless of cached updates, etc.</param>/// <returns>Returns true if checking has begun, false otherwise.</returns>

Thus, the return code you're looking at doesn't mean what you think it means. What you want to look at is the result in one of the many events. Why? Because the update checking is asynchronous.

Also, the AutomaticUpdater checks for updates automatically (hence the name). There's no need to forcefully check for updates. Just use the DaysBetweenChecks property.

Thanks for the reply. I'm sorry, there was a copy/paste error in my post:

"This method is returning false. For the sites that updated successfully, this method returned false."

should have been:

"This method is returning false. For the sites that updated successfully, this method returned true."

We are using the updater in a WinForms and Windows Service application. The applications are required to perform processing based on triggers (presence of files in a directory). However, before they process a file, they need to check if they have to update themselves. That is why we are checking manually.

I have implemented the updater events as per the documentation and have logged all of them. The issue we are facing is that few of the sites do not recognize that there is an update. Since all the sites use the same server/download site, we're not able to figure out why these sites are not recognizing that there is an update.

Thanks!

I also noticed the following errors in the log file:

AutoUpdater|auBackend_DownloadingFailed. Title: [wyUpdate exited prematurely] Message: [wyUpdate failed to start.]|AutoUpdater|UpdateFail: auBackend_DownloadingFailed. Title: [wyUpdate exited prematurely] Message: [wyUpdate failed to start.]|AutoUpdater|auBackend_Cancelled|AutoUpdater|UpdateFail: auBackend_Cancelled|

The logs indicate the specific AutoUpdater event where the message was generated.

Read my previous post. Don't use ForceCheckForUpdate().