AutomaticUpdater in Dialog Form

Hello,in meiner anwendung starte ich sofort einen login dialog (mit ShowDialog) und wde gerne dort den "autoupdater" einsetzen. Folgendes Problem habe ich: Die Anwendung startet nicht mehr nach einem download des updates und neustart der anwendung. Hat irgendwer eine idee?

ThxIbrahim

Sorry now in english

HelloIn my application I launch immediately a login dialog (using ShowDialog) and would like to be there to use "Autoupdater. I have the following problem: The application will not start after download the updates and restart the application. Has anyone an idea?

If you're using ShowDialog() to show the main form (instead of Application.Start() ) or you're not using the AutomaticUpdater on the main form of your app then there will be problems. So if you want to use the AutomaticUpdater then put it on your main form and make sure your main form is started with Application.Start().

If you want to use some custom updating mechanism then you can use the AutomaticUpdaterBackend. However, this is much trickier (you actually have to know what's going on). For instance, you have to use auBackend.Initialize() in the form's constructor and auBackend.AppLoaded() in the OnLoaded event on the form.

i use this workaround and move the autoupdater to the main form.But why isn't it possible to run an update in login-dialog on startup ? ❓

You can, but it depends on how you set it up. For instance, if in Program.cs you start your "login" form with ShowDialog() before any call to Application.Run() is called, then the AutomaticUpdater won't work properly because you haven't set up your app properly. That is, Application.Run() should be called before any form is show. This is the most common error users make.