You can configure the application to check for updates programmatically based on an event such as a user request.
The procedure "To check for updates programmatically" in this topic shows how you would write code that uses the Application Deployment class to check for updates based on an event.
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.
The latest version of this topic can be found at How to: Manage Updates for a Click Once Application.
For information about deploying Visual C applications, see Click Once Deployment for Visual C Applications.
Click Once deployment overcomes three major issues in deployment: In the past, these issues sometimes caused developers to decide to create Web applications instead of Windows-based applications, sacrificing a rich user interface for ease of installation.
You can publish a Click Once application in three different ways: from a Web page, from a network file share, or from media such as a CD-ROM.
A Click Once application can be installed on an end user's computer and run locally even when the computer is offline, or it can be run in an online-only mode without permanently installing anything on the end user's computer.
Instead, it compares the hash signatures of the files specified in the application manifest for the current application against the signatures in the manifest for the new version.You can configure the application to check for updates automatically before the application starts, or at set intervals after the application starts.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.By using applications deployed using Click Once, you can have the best of both technologies.A Click Once application is any Windows Presentation Foundation (.xbap), Windows Forms (.exe), console application (.exe), or Office solution (.dll) published using Click Once technology.
You can also deploy your application from one location and update it from another.