Copyright Accelerated Ideas 2007 Legacy Blog Posts | Blog Home | .NET Components

When do applications get updated using ClickOnce?


1/4/2007

Whenever a “ClickOnce” application is launched by clicking on a link, either URL or UNC, “ClickOnce” will check for an update & update the application. Thus when running an app from the network, the app will always be up to date… just like web applications. When running an application via the Start Menu, you may not even be online to check for updates. In that case, you can configure “ClickOnce” to:

1. Never check for updates.

2. Always check for updates before the app starts.

3. Check for updates shortly after the app starts & tell the user if an update was found the next time they run the app. This is a good option for apps that can handle a little lag in how fast they are updated. The benefit is that there is no network IO done before the app starts & so won’t impact app startup time. This check can also be throttled to only happen at a specified interval. Ex. No more than one update check a week.

4. You can also use the System.Deployment APIs to trigger updates in your application


< Blog Home