Publishing ClickOnce Applications

 

When publishing a ClickOnce application for the first time, publish properties can be set using the Publish Wizard. Only a few of the properties are available in the wizard; all other properties are set to their default values.

Subsequent changes to publish properties are made on the Publish page in the Project Designer.

You can use the Publish Wizard to set the basic settings for publishing your application. This includes the following publishing properties:

  • Publishing Folder Location - where Visual Studio will copy the files (local computer, network file share, FTP server, or Web site)

  • Installation Folder Location - where end users will install from (network file share, FTP server, Web site, CD/DVD)

  • Online or Offline availability - if end users can access the application with or without a network connection

  • Update frequency - how often the application checks for new updates.

For more information, see How to: Publish a ClickOnce Application using the Publish Wizard.

The Publish page of the Project Designer is used to configure properties for ClickOnce deployment. The following table lists topics

TitleDescription
How to: Specify Where Visual Studio Copies the FilesDescribes how to set where Visual Studio puts the application files and manifests.
How to: Specify the Location Where End Users Will Install FromDescribes how to set the location where users go to download and install the application.
How to: Specify the ClickOnce Offline or Online Install ModeDescribes how to set whether the application will be available offline or online.
How to: Set the ClickOnce Publish VersionDescribes how to set the ClickOnce Publish Version property, which determines whether or not the application that you are publishing will be treated as an update.
How to: Automatically Increment the ClickOnce Publish VersionDescribes how to automatically increment the Revision number of the PublishVersion each time you publish the application.

For more information, see Publish Page, Project Designer

Application Files Dialog Box

This dialog box allows you to specify how the files in your project are categorized for publishing, dynamic downloading, and updating. It contains a grid that lists the project files that are not excluded by default, or that have a download group.

To exclude files, mark files as data files or prerequisites, and create groups of files for conditional installation in the Visual Studio UI, see How to: Specify Which Files Are Published by ClickOnce. You can also mark data files by using the Mage.exe. For more information, see How to: Include a Data File in a ClickOnce Application.

Prerequisites Dialog Box

This dialog box specifies which prerequisite components are installed, as well as how they are installed. For more information, see How to: Install Prerequisites with a ClickOnce Application and Prerequisites Dialog Box.

Application Updates Dialog Box

This dialog box specifies how the application installation should check for updates. For more information, see How to: Manage Updates for a ClickOnce Application.

Publish Options Dialog Box

The Publish Options dialog box specifies an application's deployment options.

How to: Change the Publish Language for a ClickOnce ApplicationDescribes how to specify a language and culture to match the localized version.
How to: Specify a Start Menu Name for a ClickOnce ApplicationDescribes how to change the display name for a ClickOnce application.
How to: Specify a Link for Technical SupportDescribes how to set the Support URL property, which identifies a Web page or file share where users can go to get information about the application.
How to: Specify a Support URL for Individual Prerequisites in a ClickOnce DeploymentDemonstrated how to manually alter an application manifest to include individual support URLs for each prerequisite.
How to: Specify a Publish Page for a ClickOnce ApplicationDescribes how to generate and publish a default Web page (publish.htm) along with the application
How to: Customize the ClickOnce Default Web PageDescribes how to customize the Web page that is automatically generated and published along with the application.
How to: Enable AutoStart for CD InstallationsDescribes how to enable AutoStart so that the ClickOnce application is automatically launched when the media is inserted.
TitleDescription
How to: Create File Associations For a ClickOnce ApplicationDescribes how to add file name extension support to a ClickOnce application.
How to: Retrieve Query String Information in an Online ClickOnce ApplicationDemonstrates how to retrieve parameters passed in the URL used to run a ClickOnce application.
How to: Disable URL Activation of ClickOnce Applications by Using the DesignerDescribes how to force users to start the application from the Start menu by using the designer.
How to: Disable URL Activation of ClickOnce ApplicationsDescribes how to force users to start the application from the Start menu.
Walkthrough: Downloading Assemblies on Demand with the ClickOnce Deployment API Using the DesignerExplains how to download application assemblies only when they are first used by the application using the designer.
Walkthrough: Downloading Assemblies on Demand with the ClickOnce Deployment APIExplains how to download application assemblies only when they are first used by the application.
Walkthrough: Downloading Satellite Assemblies on Demand with the ClickOnce Deployment APIDescribes how to mark your satellite assemblies as optional, and download only the assembly a client machine needs for its current culture settings.
Walkthrough: Manually Deploying a ClickOnce ApplicationExplains how to use .NET Framework utilities to deploy your ClickOnce application.
Walkthrough: Manually Deploying a ClickOnce Application that Does Not Require Re-Signing and that Preserves Branding InformationExplains how to use .NET Framework utilities to deploy your ClickOnce application without re-signing the manifests.
NIB: How to: Optimize an Application for a Specific CPU TypeExplains how to publish for a 64-bit processor by changing the Target CPU or Platform target property in your project.
Walkthrough: Enabling a ClickOnce Application to Run on Multiple .NET Framework VersionsExplains how to enable a ClickOnce application to install and run on multiple versions of the NET Framework.
Walkthrough: Creating a Custom Installer for a ClickOnce ApplicationExplains how to create a custom installer to install a ClickOnce application.
How to: Publish a WPF Application with Visual Styles EnabledProvides step-by-step instructions to resolve an error that appears when you attempt to publish a WPF application that has visual styles enabled.

ClickOnce Security and Deployment
ClickOnce Reference

Show: