Remove ClickOnce from a WinForms app

Ryan Lundy picture Ryan Lundy · May 29, 2009 · Viewed 22.1k times · Source

I have a WinForms application that was going to use ClickOnce. But it turns out ClickOnce won't work for my application, so I'd like to remove it. Only...there doesn't seem to be an obvious way to do this. There's no "Un-ClickOnce" button. Does anybody know what steps I need to take to get my app to be like it was before ClickOnce integrated itself?

(I know I can create a new project and import stuff into it, but it seems silly to have to do that, so I'm hoping there's another way.)

Answer

Chris Rogers picture Chris Rogers · Apr 27, 2011

Other responses here are not correct or helpful. It is incorrect to state that it never needs removing.

One such example I experienced recently was when the application had a need for administrative privileges. Any attempt to embed administrative requirements into the manifest will result in the application not even compiling while ClickOnce is still present in the solution.

The following two steps enabled me to turn off ClickOnce (in Visual Studio 2010):

In the project properties,

  1. Signing tab: Untick "Sign the ClickOnce manifests"
  2. Security tab: Untick "Enable ClickOnce security settings"