Link to home
Start Free TrialLog in
Avatar of OutsideTheBox
OutsideTheBox

asked on

clickOnce; check for updates

I am going to deploy a simple forms app using clickOnce. I do want to take advantage of functionality to check for updates. The only two options available in the Updates section of the publishing tab are 1.)before program starts, & 2.) after program starts. Neither of these will work for my situation. When my app is started, the computer is never connected to the internet. It is always connected about 2 minutes later.

What I would like to do is either create a menu option that the user could click to check for updates. Or, create automatic functionality that would initiate a check for updates 5 minutes after the program starts.
Could I Programmatically do this? If so please point me in the right direction (help docs or namespace/classes used)

I'm using c#, .net 2.0

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The better way to check the update if to check (using a timer) if there's internet available. After that disable the timer and run the update check.

The timer will only trigger some times.
Avatar of OutsideTheBox
OutsideTheBox

ASKER

Thanks, actually I already have a timer pinging periodically to check and initiate connection so I'll do just that; sense when connected & check for updates then using the documentation you directed me to.

Thanks