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.
This procedure uses the .NET Framework SDK tool MageUI.exe. For more information on this tool, see. 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.
Select the Deployment Options tab.
Clear the Automatically run application after installing check box.
Save and sign the manifest.