August 29, 2014
Hot Topics:
RSS RSS feed Download our iPhone app

Deploying Separate User/Site Configurations with ClickOnce

  • February 25, 2009
  • By Matt Goebel and Rachel Baker
  • Send Email »
  • More Articles »

The dialog shown in Figure 3 will open. Enter the location of the virtual directory you set up for updates. In a real world situation, you would want to set the update path to a publicly available URL if users should be able to update over the Internet.

Figure 3: Set the Update location

Exit the 'Application Updates' dialog. You are now ready to publish the application.

From the 'Publish' tab, click the "Publish Now" button. The solution will build and create the ClickOnce package in the publishing folder's location. If you have the option enabled to 'Open deployment web page after publish' (located on the "Options…" button dialog), a browser will launch and display the publish page. For now, minimize the window because the files have not yet been placed in the installation location, and you'll get an error if you try to install now.



Click here for a larger image.

Figure 4: The publish location and generated files

Copy the files from the publishing folder location and place them in the installation folder that you configured earlier. It is important that the physical location of the files and the location specified in the configuration match; otherwise, the ClickOnce deployment will fail.



Click here for a larger image.

Figure 5: The installation location

You will now be able to pull the publish page back up, or, if you closed it, open up the publish.htm file in the installation location.

Click on the "launch" link or Install button to install the application. Once the installation is complete, which should be almost instantaneous once you have accepted all of the prompts, the application will launch and you will see your form, as shown in Figure 6.

Figure 6: Your ClickOnce application

Now, you're going to make a small change to the form and deploy an update to the application.


Tags: .NET



Page 2 of 5



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Sitemap | Contact Us

Rocket Fuel