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

  1. Open your deployment manifest in MageUI.exe. If you have not yet created one, follow the steps in Walkthrough: Manually Deploying a ClickOnce Application.

  2. Select the Deployment Options tab.

  3. Clear the Automatically run application after installing check box.

  4. Save and sign the manifest.

See Also


ClickOnce Deployment Overview