
To check for updates before the application starts Update behavior is managed in the Application Updates dialog box, available from the Publish page of the Project Designer. See the procedure "To specify a different update location."įor more information, see Choosing a ClickOnce Update Strategy. You can also deploy your application from one location and update it from another. The procedure "To check for updates programmatically" in this topic shows how you would write code that uses the ApplicationDeployment class to check for updates based on an event. You can configure the application to check for updates programmatically based on an event such as a user request. In addition you can specify a minimum required version that is, an update is installed if the user's version is lower than the required version. You can configure the application to check for updates automatically before the application starts, or at set intervals after the application starts.

As a developer, you have lots of flexibility in specifying when and how update checks are performed, whether updates are mandatory, and where the application should check for updates.

ClickOnce applications can check for updates automatically or programmatically.
