Show update box on button click.

Oct 18, 2012 at 4: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?

 

Thanks.

Oct 23, 2012 at 11:35 AM
Edited Oct 23, 2012 at 11:37 AM

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 = "1.0.0.0",
    DownloadLink = Constants.URL_SERVER_AUTO_UPDATE,
    Version = "2.0.0.0"
});

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.

Thanks.

Nov 12, 2012 at 9:34 AM
Edited Nov 12, 2012 at 9: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))
{
     _sparkle.ShowUpdateNeededUI(_frm);
}
else
{
     MessageBox.Show("Your system is updated!", "Update...", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
Nov 19, 2012 at 9:53 AM

It might always serve for future projects!

Thanks for the answer.