|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. ArchiveDisclaimer|
How to: Disable URL Activation of ClickOnce Applications
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 Choosing a ClickOnce Deployment Strategy.
This procedure uses the Windows Software Development Kit (SDK) tool MageUI.exe. For more information on this tool, see Manifest Generation and Editing Tool, Graphical Client (MageUI.exe). You can also perform this procedure using Visual Studio.
To disable URL activation for your application
Open your deployment manifest in MageUI.exe. If you have not yet created one, follow the steps in Walkthrough: Manually Deploying a ClickOnce Application.
Select the Deployment Options tab.
Clear the Automatically run application after installing check box.
Save and sign the manifest.