AutomaticUpdaterBackend on WinForms

Hi,

I would like to ask if there is a way to start the AutomaticUpdater Control for winforms automatically, on form_load instead of starting from a menuitem command. I was trying to implement a form in order to check for updates everytime the application starts, instead of waiting for user reaction.

Otherwise can you please provide an example how to use AutomaticUpdaterBackend to do that job on winforms? I had create another form using AutomaticUpdaterBackend (following your example for windows service) in order to accomplish this, but I am facing a problem on auBackend_ReadyToBeInstalled. The AutomaticUpdaterBackend accepts only service name so by entering the application path and name instead of service name on that property the application does not restart on auBackend.InstallNow() fire event. After that, I comment out this line and just show a message that the application will restart, and I restart the application manually (Application.Restart()) but after that I am getting an error that the update failed.

Any help please? I am trying to implement on winforms something like ClickOnce is doing, check on application startup for updates, every time the application runs.

Best Regards

Thomas

I would like to ask if there is a way to start the AutomaticUpdater Control for winforms automatically, on form_load instead of starting from a menuitem command. I was trying to implement a form in order to check for updates everytime the application starts, instead of waiting for user reaction.

Just set the DaysBetweenChecks property to 0.