WPF Install a ClickOnce Application in VB.NET

In this article you will learn about the installation of ClickOnce Application in WPF.
  • 1883

ClickOnce: ClickOnce is designed with simple, straightforward applications in mind. It's particularly suitable for line-of-business applications and internal company software. You can publish a ClickOnce application in three different ways: from a Web page, from a network file share, or from media such as a CD-ROM. A ClickOnce 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.

To see ClickOnce in action with a web deployment, follow these steps:

  1. Make sure you have the optional IIS web server component installed.
  2. Now the first step to publish a ClickOnce application is to create an WPF basic application, and compile them.
  3. Choose Publish option from the Build menu option, and give this path "http://locahost/ClickOnceTest" for the publish location. The localhost portion of the URL points to the current computer. As long as IIS is installed and you are running with sufficient privileges, Visual Studio will be able to create this virtual directory.


  4. Now in the next wizard you have to choose the availability option of you file online and offline both or single than click on finish. The files will be deployed to a folder named ClickOnceTest in the IIS web server root.


  5. Click on setup.exe program, or load the publish.htm page and than install it, after you click on install you asked to verify that you want to trust the application or not. If you choose trusted option and proceed further than the application will downloaded, and shows a message click if you want to install it.


  6. After the application installed completely, you can run it from the Start menu shortcut or uninstall it using the Add/Remove Programs dialog box.

The location of the deployment files is:

c:\Documents and Settings\[UserName]\Local Settings\Apps\2.0\[...]\[...]\[...]

The final three portions of this path are opaque, automatically generated strings like GDHHJ6D.746.


I hope this article would help you to understand the Installation of a ClickOnce Application in WPF.


More Articles

© 2020 DotNetHeaven. All rights reserved.