How to force an update check event via code?

Sep 8, 2013 at 2:40 PM
Hi,
can you tell me how I force an update check event via code to check for a new update before the next update cycle begins? E.g. if I click on a "Check for updates..." menu item.
I went through the NetSparkle source code but I didn't find anything that allows me to manually trigger an update.

I tried to delete the LastCheckTime registry entry and then called sparkle.UpdateSystemProfileInformation but this obviously didn't trigger a new update.

Any help would be appreciated. And please don't give answers like:

"Can updates be forced?": "Yes we have a force property in the Sparkle class which allows to do the update without user question. The logic when you want to set the value to true has to be implemented in your application code."

I found that in another thread but what I didn't find is a force property and it's not obvious for my how to implement this in the application code.

Cheers,
Helmut
Sep 8, 2013 at 2:53 PM
To answer myself:
NetSparkleConfiguration config = sparkle.GetApplicationConfig();
// check for update
NetSparkleAppCastItem latestVersion = null;
Boolean bUpdateRequired = sparkle.IsUpdateRequired(config, out latestVersion);
if (bUpdateRequired)
{
  sparkle.ShowUpdateNeededUI(latestVersion);
}
Would this be the expected thing to do if I want to check for updates manually?