|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
How to: Disable URL Activation of ClickOnce Applications Using the Designer
Typically, a ClickOnce application will launch automatically immediately after it is installed from a Web server. For security reasons, you may decide to disable this behavior, and tell users to launch 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 launched only by using their URL. For more information on the difference between online-only and installed applications, see.
This procedure uses Visual Studio. You can also accomplish this task using the .NET Framework SDK. For more information, see.
To disable URL activation for your application
Right-click your project name in Solution Explorer, and select Properties.
On the Properties page, select the Publish tab.
Select the check box labeled Block application from being activated via a URL.
Deploy your application.