Hey Ada,
You're not handling the "UpToDate" event. For a full list of events see here: http://wyday.com/wybuild/help/automatic-updates/members.php
If you're using the AutomaticUpdaterBackend then you should handle all events.
I have a Console App, I use AutomaticUpdaterBackend.ForceCheckForUpdate to check updates.
There is part of my code: AddHandler auBackend.ReadyToBeInstalled, AddressOf auBackend_ReadyToBeInstalled AddHandler auBackend.UpdateSuccessful, AddressOf auBackend_UpdateSuccessful AddHandler auBackend.BeforeChecking, AddressOf auBackend_BeforeChecking AddHandler auBackend.UpdateAvailable, AddressOf auBackend_UpdateAvailable AddHandler auBackend.CheckingFailed, AddressOf auBackend_CheckingFailed
But no event is triggered except for the BeforeChecking
Is it possible that my App exists before any other event will be triggered? If so, what should I do?
Thanks.
Ada
Hey Ada,
You're not handling the "UpToDate" event. For a full list of events see here: http://wyday.com/wybuild/help/automatic-updates/members.php
If you're using the AutomaticUpdaterBackend then you should handle all events.
Thanks for the reply.
Now I've handled these events: AddHandler auBackend.ReadyToBeInstalled, AddressOf auBackend_ReadyToBeInstalled AddHandler auBackend.UpdateSuccessful, AddressOf auBackend_UpdateSuccessful AddHandler auBackend.BeforeChecking, AddressOf auBackend_BeforeChecking AddHandler auBackend.UpdateAvailable, AddressOf auBackend_UpdateAvailable AddHandler auBackend.CheckingFailed, AddressOf auBackend_CheckingFailed AddHandler auBackend.UpToDate, AddressOf auBackend_UpToDate
AddHandler auBackend.BeforeDownloading, AddressOf auBackend_BeforeDownloading AddHandler auBackend.Cancelled, AddressOf auBackend_Cancelled AddHandler auBackend.ClosingAborted, AddressOf auBackend_ClosingAborted AddHandler auBackend.ProgressChanged, AddressOf auBackend_ProgressChanged
But still only BeforeChecking is triggered.
Would you please hlep.
Thanks.
Ada
It might happen if you're not properly checking if you have pending updates already when calling ForceCheckForUpdater. Take a look at the WindowsService example in the AutomaticUpdater source code for proper usage of the AutomaticUpdaterBackend class.