I need to implement silent update of working service. I read this post:https://wyday.com/forum/t/346/completely-silent-update/#post-1704and create second (update) service that will stop, update and start working service. In update service I use AutomaticUpdater to check for updates. Code to create control:
AutomaticUpdater _updater = new AutomaticUpdater(); _updater.GUID = "776314EB-185D-40D5-8994-9D7CA14852CF"; _updater.wyUpdateLocation = @"C:\Users\Alexei\AppData\Roaming\Default Company Name\DummyService\wyUpdate.exe";
In timer callback I use this code:
_updater.ForceCheckForUpdate()
but first launch of this method throw NullReferenceException. Stack trace:
System.NullReferenceException was caught Message=Object reference not set to an instance of an object. Source=AutomaticUpdater StackTrace: at wyDay.Controls.AutomaticUpdater.forceCheck(Boolean recheck, Boolean forceShow) at wyDay.Controls.AutomaticUpdater.ForceCheckForUpdate(Boolean recheck) at wyDay.Controls.AutomaticUpdater.ForceCheckForUpdate() at DummyUpdateService.DummyUpdateService.TimerCallbackFunc(Object target) in C:\Users\Alexei\documents\visual studio 2010\Projects\DummyService\DummyUpdateService\DummyUpdateService.cs:line 90 InnerException:
Next launches of this method always returns false, but update available (uploaded to local web server and checked with wyUpdate).So I have some questions:1. Is it possible to use AutomaticUpdater in windows service? How to use it (sample code or some tips) if is it possible?2. In the post I linked above you say that you working on wyUpdate as windows service in wyBuild 2.8. Can you provide some term when you plan to release this version?