Configuring a ClickOnce Deployment
Configuring a ClickOnce Deployment
You can perform many of the common activities needed to properly install your Windows desktop application to users' machines via the built-in configuration menus in Visual Studio 2008. These menus expose properties that allow you to add description information, configure deployment and manifest-related settings, and control file associations. We will discuss all of these options. We will be using Visual Studio 2008 with SP1, which introduce a few important features, including the ability to create desktop shortcuts and file associations.If you wish to follow along with the demonstration below, you will need to make sure you have Visual Studio 2008 with SP1 installed. First, open VS 2008 SP1 and create a new Windows Forms project. Right click on the project file in Solution Explorer, choose Properties, and navigate to the Publish tab. Now, let's look at the different option menus and configurations ClickOnce offers. Click the "Options " button on the Publish tab. The Publish Options dialog contains four sections (Description, Deployment, Manifests, File Associations), each described below.
Publish Options: Description
In the Deployment section, you'll find the following dialog that allows you to enter general information about the application. This information is used during deployment, updates and uninstalls.Listing 1.1 The Description screen of the Publish dialog
The following table illustrates where each property is used:
Listing 1.2 A table describing where the Description properties are used
Publish Language was excluded from this list as it has to do with multi-lingual/multi-cultural applications. It controls the language setting in the application's deployment manifest. For example, the following entry is from a manifest with German set as the Publish Language. Note this does not override the cultural settings of your application. It also does not necessarily control the language in which the installation dialogs will be presented; this is determined by the OS settings and the language packs for .NET that are installed on the user's machine. Setting the Publish Language will ensure that the localized files in your application that pertain the language you selected will be included by default in the list of application files to be deployed.
<asmv1:assemblyIdentity version="1.0.0.3" name="ClickOnce Demo.exe" publicKeyToken="056bfb40ce3cb353" language="de" processorArchitecture="msil" type="win32" />
More for Developers
On the Codeguru Forums
Visit the Forums »eBooks, Webcasts, Whitepapers and More
Tutorial: Light Up Your Windows 7 App with Jump Lists, Libraries, and Microsoft Platform Ready
Custom Walkthrough: Create an Azure-integrated Windows 7 Phone App
Article: Thuzi, Outback and Azure--Tapping the Power of Facebook and the Cloud
Article: Windows 7 Light-Up--Make Your Applications Shine on Windows 7
Article: Submitting Your Windows Phone 7 Application to the Windows Marketplace




Managing a mixed IT infrastructure is always a challenge. The challenge is compounded for mid-sized companies where you don't have the staff resources of larger firms. A variety of systems and equipment creates a complex infrastructure where finding and solving performance and network glitches is really difficult. Learn how Hitachi IT Operations Analyzer can help.