The Artima Developer Community
Sponsored Link

.NET Buzz Forum
A Brief Introduction to ClickOnce

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Tim Sneath

Posts: 395
Nickname: timsneath
Registered: Aug, 2003

Tim Sneath is a .NET developer for Microsoft in the UK.
A Brief Introduction to ClickOnce Posted: May 22, 2004 11:04 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Tim Sneath.
Original Post: A Brief Introduction to ClickOnce
Feed Title: Tim Sneath's Blog
Feed URL: /msdnerror.htm?aspxerrorpath=/tims/Rss.aspx
Feed Description: Random mumblings on Microsoft, .NET, and other topics.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Tim Sneath
Latest Posts From Tim Sneath's Blog

Advertisement

ClickOnce (one of the new designer features in Visual Studio 2005) is designed to solve all the traditional problems associated with deployment of a .NET application. It takes away much of the traditional pain of generating installer files and handling different security zones.

How do you use ClickOnce? Well, when you've created your application, you can run the Publish Wizard, which is the primary interface into ClickOnce. The selections you make here determine whether the application is available whilst connected to the network only or also offline, what security settings are required, if a public/private key pair is to be used for signing, and a location for publishing. Visual Studio then creates an MSI installer file for the solution and publishes it to the chosen location including all the shortcuts and configuration files required. By default, applications are set to run in a sandboxed environment (probably the intranet zone, if you've picked a local URL) However, if your application does something unsafe (such as file I/O), then on executing the shortcut it will prompt for permission to grant elevated permissions.

As part of the ClickOnce process, you can choose which prerequisites are necessary (e.g. MDAC, .NET Framework 2.0). When you execute an application, ClickOnce can check for updates: either before the application starts or in the background as the application is running. You can even configure a different update location from the original source and set whether accepting the update is mandatory or not. All these settings are available from a new Publish tab from the project properties.

ClickOnce is not a panacea for all solutions, for example, if you wanted to install a shell extension or install a component into the GAC, you'd need to create a full MSI project (also supported by Visual Studio). But for a "typical" departmental application that is to be deployed via the intranet, it's great.

Read: A Brief Introduction to ClickOnce

Topic: PlayerPal Previous Topic   Next Topic Topic: NewsGator in Wired

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use