Sure, to disable checking simply set UpdateType to DoNothing.
Also, if you want to explore how the AutomaticUpdater works, check out the source code.
Hi,
Automatic checks are made at application start-up.My application start-up phase being complex enough as it it, I'm not sure I want the AutomaticUpdater checking for updates on top of that.WaitBeforeCheckSecs does not really help as my start-up phase is partially bound to the user interaction.
So I want to implement the automatic check logique myself. I'm forced to anyway. Just like this other user, I may want to trigger the check more than once a day.
Besides providing a high value to DaysBetweenChecks, is there a clean way to disable automatic checks?
Also, I don't really like the way the AutomaticUpdater integrates at application start-up. If find it to intrusive. I have the feeling it does too much things outside my control. Some events are fired before the start-up completes. When an update is ready to install, I cannot control when exactly wyupdater will be called. In my case this leads to the user seing the login window appear and disappear in a blink because the AU called Application.Exit().Of course, I could carefully study AU's state machine and behaviour and accomadate my code. But I wish I could rather adapt UA's behaviour to my app.Ideally, I'd like the possibility to have the UA not installing its hooks and timers and rely on my to control it.
Sure, to disable checking simply set UpdateType to DoNothing.
Also, if you want to explore how the AutomaticUpdater works, check out the source code.
I had tried DoNothing, but did not understand then the hybrid character of ForceCheckForUpdates and InstallNow.For example, I wondered how to proceed to download, and only download, once in UpdateAvailable.
Also, I didn't know the source was available and ended up using Reflector.
I'll study the code and wil come back to you if needed.
I'm not sure why the AutomaticUpdater would get stuck at a step (did you have the update type set to OnlyCheck?). I can't reproduce it here either.
Can you reproduce this in an example project? Send it to me at wyatt@wyday.com
Answered in "AutomaticUpdater. Stuck in UpdateStepOn = UpdateAvailable"
Sam wrote:> Sure, to disable checking simply set UpdateType to DoNothing.>
The problem with UpdateType = DoNothing is that I cannot have IntallNow() stop its work just after downloading an update and control the actual installation by myself. (cf my post "Caching all available updates but mastering their install.").
What would you suggest?
Set the UpdateType to CheckAndDownload
Thanks,
CheckAndDownload is what I'm currently using.So I'm back with my original concerns.
So I'm back with my original concerns.
I'm not sure I understand your initial concerns. Is it that you don't want heavy load when starting your app?
The AutomaticUpdater uses a separate thread for checking -- it won't lock up your app. And it doesn't require a whole lot of memory, processor time, or even bandwidth.
In short, I'm not really seeing an issue.