Automatic Updater "automatic" check for updated while UpdateType.DoNothing

Hello,

I have build an Update-Service to update one specific Programm and the Update Logic is in an dll. When i define the auBackend:

auBackend = new AutomaticUpdaterBackend { GUID = guid, wyUpdateLocation = path, UpdateType = UpdateType.DoNothing, wyUpdateCommandline = " /fromservice"};

auBackend.ReadyToBeInstalled += auBackend_ReadyToBeInstalled; auBackend.UpdateSuccessful += auBackend_UpdateSuccessful; auBackend.UpToDate += auBackend_UpToDate; auBackend.UpdateFailed += auBackend_UpdateFailed; auBackend.BeforeChecking += auBackend_BeforeChecking; auBackend.BeforeDownloading += auBackend_BeforeDownloading; auBackend.BeforeExtracting += auBackend_BeforeExtracting; auBackend.Cancelled += auBackend_Cancelled; auBackend.CheckingFailed += auBackend_CheckingFailed; auBackend.ClosingAborted += auBackend_ClosingAborted; auBackend.DownloadingFailed += auBackend_DownloadingFailed; auBackend.ExtractingFailed += auBackend_ExtractingFailed; auBackend.UpdateAvailable += auBackend_UpdateAvailable; auBackend.UpdateStepMismatch += auBackend_UpdateStepMismatch;

auBackend.Initialize(); auBackend.AppLoaded();

After the AppLoaded() he jumps into the UpdateAvailableEvent and perform the code in it. How can i avoid this?

So for now, i got a little workaround for this so that the service doesnt perform the code for the first time but when i now ForceCheckforUpdates() no Event is called.

I dont know what is wrong and i need help.

Kind regards

Lukas

Hey,

So now, i got a workaround for this and there comes the next Problem....

The Service is now in the Event ReadyToBeInstalled and perform the InstallNow(). As far as i understand you call now the "Enviorment.Exit(0)" funktion.

The Problem is now, that this call terminates my Pipe-Connection-Thread and i am unable to give the user Information about the Update-process.

So i connect to the Service again and i get the Event "Update Successful" and the complete Service is shutting down and dont restart.

I know that wyBuild/Automatic Updater isnt build for this specific case but maybe you know an workaround for this and in future Updates you implement an functionality that give us the chance to update one or more Programms with an global Service wich got the admin rights for updating the programms.

Kind regards

Lukas

The Service is now in the Event ReadyToBeInstalled and perform the InstallNow(). As far as i understand you call now the "Enviorment.Exit(0)" funktion.

Handle the CloseAppNow event and you can control what your service does when the AutomaticUpdater tells it to close.

You should be aware that if your Service is in the same folder as your app then the service will need to be closed before wyUpdate can continue with the update.