Hey Dean,
Set the "DaysBetweenChecks" to anything other than 0. For instance, if you set it to "7" then the AutomaticUpdater will check once a week. That's a more reasonable setting.
Tell me if that helps.
Please can someone tell me how to get it to check peiodically.As at the moment the software checks for an update after a restart.
Below is the code I am currently using:-
<my2:AutomaticUpdater x:Name="AutoUpdater" Margin="1641,12,23,149" DataContext="{Binding}" GUID="BMI In Room Entertainment Software" HorizontalAlignment="Right" KeepHidden="True" DaysBetweenChecks="0"> </my2:AutomaticUpdater>
Any help would be greatly appreciated.
Thanks in advance
Hey Dean,
Set the "DaysBetweenChecks" to anything other than 0. For instance, if you set it to "7" then the AutomaticUpdater will check once a week. That's a more reasonable setting.
Tell me if that helps.
Thanks Sam,
What if I would need this to check every 5 hours or so. Is this possible.
Thanks
Dean
Hi Sam,
Sorry I got the wrong end of the stick.
What we need to know is can we get it to check for an update everytime our application starts.
As at the moment the only time is checks is if we restart the computer.
Thanks in advance
Dean
You can always call ForceCheckForUpdate() to begin the checking process. (Note: that the result of the checking process is from the "CheckingFailed", "UpdateAvailable", or "UpToDate" events).
Thanks for that,
looking at the code it appears that the function ForceCheckforUpdates returns a boolean.
what we want is that if there is an update available, the update installs and software restarts.
Do I just add the code like below
public MainWindow(){InitializeCompomnent()AutoUpdater.ForceCheckForUpdate();}
This is a WPF app.
looking at the code it appears that the function ForceCheckforUpdates returns a boolean.
The return code is whether the checking has begun or not. We've made this clearer in IntelliSense comment for AU 2.6.15.
Use the events I mentioned for the actual results of the checking.
Do I just add the code like below
No, use something like this:
public MainWindow(){ InitializeComponents();
if (!AutoUpdater.ClosingForInstall) AutoUpdater.ForceCheckForUpdate();}