Show update box on button click.

Oct 18, 2012 at 5:15 PM

Hello all!

I added some functionalities to my window according to update status.

If there is an update avaiable I change some things on my window, but I also would like to allow the user to click a button and update the software. The same way he would have done had he clicked the initial screen update button.

For that to work I need to show again that initial update window or at least be able to update the software via command.

Any way to accomplish this?



Oct 23, 2012 at 12:35 PM
Edited Oct 23, 2012 at 12:37 PM

Does anyone know if this is even possible?

I've managed to reopen the update box by using this command:

sparkle.ShowUpdateNeededUI(new NetSparkleAppCastItem()) { 
    AppName = "MyApp", 
    AppVersionInstalled = "",
    DownloadLink = Constants.URL_SERVER_AUTO_UPDATE,
    Version = ""

But I had to set all the info by hand. Is it possible to get this information from the object? For what I've seen it's sent as parameter when the worker is running.


Nov 12, 2012 at 10:34 AM
Edited Nov 12, 2012 at 10:36 AM

First of all, sorry for my bad english!!!

eestein, I know the answare has come late, but here it is how I did it!

may not help eestein but it may help someone else!


NetSparkleAppCastItem _frm = new NetSparkleAppCastItem();
if (_sparkle.IsUpdateRequired(_sparkle.GetApplicationConfig(), out _frm))
     MessageBox.Show("Your system is updated!", "Update...", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
Nov 19, 2012 at 10:53 AM

It might always serve for future projects!

Thanks for the answer.