clickOnce; check for updates

Posted on 2008-02-12
Medium Priority
Last Modified: 2013-12-17
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

Question by:OutsideTheBox
  • 2
LVL 48

Accepted Solution

Jorge Paulino earned 2000 total points
ID: 20874831
LVL 48

Expert Comment

by:Jorge Paulino
ID: 20874889
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.

Author Closing Comment

ID: 31430133
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.


Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

619 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question