Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Deployment in Visual Studio
How to: Disable URL Activation of ClickOnce Applications by Using the Designer

Updated: July 2008

Typically, a ClickOnce application will start automatically immediately after it is installed from a Web server. For security reasons, you may decide to disable this behavior, and tell users to start the application from the Start menu instead. The following procedure describes how to disable URL activation.

This technique can be used only for ClickOnce applications installed on the user's computer from a Web server. It cannot be used for online-only applications, which can be started only by using their URL. For more information about the difference between online-only and installed applications, see Choosing a ClickOnce Deployment Strategy.

This procedure uses Visual Studio. You can also accomplish this task by using the Windows Software Development Kit (SDK). For more information, see How to: Disable URL Activation of ClickOnce Applications.

To disable URL activation for your application

  1. Right-click your project name in Solution Explorer, and click Properties.

  2. On the Properties page, click the Publish tab.

  3. Click Options.

  4. If you are using Visual Studio 2008 SP1, click Manifests.

  5. Select the check box labeled Block application from being activated via a URL.

  6. Deploy your application.

Date

History

Reason

July 2008

Revised the steps to reflect changes that occur if you install Visual Studio 2008 SP1.

SP1 feature change.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker