Questions tagged [clickonce]

ClickOnce is a Microsoft technology that simplifies deployment of applications by publishing to a website, where the user can install it by clicking a link on a page of that website. After the initial set-up, the developer can update the application with 'one click'.

From msdn

ClickOnce is a deployment technology that enables you to create self-updating Windows-based applications that can be installed and run with minimal user interaction. Visual Studio provides full support for publishing and updating applications deployed with ClickOnce technology if you have developed your projects with Visual Basic and Visual C#. For information about deploying Visual C++ applications, see ClickOnce Deployment for Visual C++ Applications.

ClickOnce deployment overcomes three major issues in deployment:

  • Difficulties in updating applications. With Microsoft Windows Installer deployment, whenever an application is updated, the user can install an update, an msp file, and apply it to the installed product; with ClickOnce deployment, you can provide updates automatically. Only those parts of the application that have changed are downloaded, and then the full, updated application is reinstalled from a new side-by-side folder.

  • Impact to the user's computer. With Windows Installer deployment, applications often rely on shared components, with the potential for versioning conflicts; with ClickOnce deployment, each application is self-contained and cannot interfere with other applications.

  • Security permissions. Windows Installer deployment requires administrative permissions and allows only limited user installation; ClickOnce deployment enables non-administrative users to install and grants only those Code Access Security permissions necessary for the application.

3364 questions
46
votes
5 answers

How to manually register ClickOnce file associations after installation?

Microsoft's ClickOnce deployment system offers an easy-to-use file association manager which is built into the Visual Studio deployment process. Developers can add up to 8 file associations which will automatically be associated with their…
Evan Wondrasek
  • 2,610
  • 3
  • 22
  • 21
46
votes
9 answers

IIS - can't access page by ip address instead of localhost

I'm trying to publish ClickOnce application and test it locally. I want to provide installation link so I need to update location with an IP address otherwise I won't be able to install it (because localhost is translated into computer name and…
KlimczakM
  • 12,576
  • 11
  • 64
  • 83
46
votes
4 answers

How do I completely uninstall a ClickOnce application from my computer?

While experimenting with trying to publish both a Foo and Foo Beta version of my application via ClickOnce I managed to clobber the existing and previously-working-fine Foo 1.0.0 install (replacing it with Foo Beta 1.0.5, which does not work) due to…
fostandy
  • 4,282
  • 4
  • 37
  • 41
42
votes
1 answer

What is signing ClickOnce manifests for?

According to Microsoft, you must sign your ClickOnce application. But it seems to me that it works just fine when I publish it without signing it (by turning off the 'Sign the ClickOnce manifests' option). I really didn't care and kept the default…
Juan
  • 15,274
  • 23
  • 105
  • 187
41
votes
6 answers

How to synchronise the publish version to the assembly version in a .NET ClickOnce application?

In my C# ClickOnce application, there is an auto-incremented publish version in the Project -> Properties -> Publish tab. I'd like to display that version in my menu Help -> About box, but the code I'm using apparently accesses the assembly Version,…
Randy Gamage
  • 1,801
  • 6
  • 22
  • 31
40
votes
10 answers

How can I prevent launching my app multiple times?

I deployed my C# WinForms application using ClickOnce installation. Everything works fine with it (after a lot of work) :), but now I'm facing a problem: Whenever I click on the application shortcut in the Start menu, a new instance starts. I need…
Tolga Evcimen
  • 7,112
  • 11
  • 58
  • 91
38
votes
8 answers

How do I deploy two ClickOnce versions simultaneously?

I would like the ability to have a test ClickOnce server for my applications where users can run both the production version and the test version in parallel. Is this possible? I first tried using the following in AssemblyInfo.cs and also changing…
Brett Ryan
  • 26,937
  • 30
  • 128
  • 163
37
votes
1 answer

Clear the .NET-downloaded application cache without Mage?

I have a .NET application that I distribute using ClickOnce and I make available online only. How do I clear the download cache from a users' machine that doesn't have Visual Studio installed?
isorfir
  • 771
  • 2
  • 8
  • 19
34
votes
5 answers

How can I renew my expired ClickOnce certificate?

I need to make some changes to a ClickOnce application that I haven't touched for over a year and therefore the certificate has expired. I've read that publishing with a new certificate will make the application fail, because it will be signed with…
HAdes
  • 16,713
  • 22
  • 58
  • 74
34
votes
8 answers

Visual Studio 2010 RTM is not publishing with ClickOnce

Is anyone using ClickOnce with VS2010? I’m getting the following on publish, when the solution builds fine ... Building WindowsFormsApplication1... Error: Cannot publish because a project failed to build. Have tried everything, new clean project…
nite
  • 970
  • 9
  • 17
31
votes
2 answers

Signing ClickOnce with a certificate?

What is the process of obtaining a certificate to sign my ClickOnce assembly(ies)? I've got a few ClickOnce applications at my company, but they are all signed with temporary certificates created by Visual Studio. Those are obviously not Trusted…
Brian
  • 1,383
  • 3
  • 16
  • 30
31
votes
4 answers

How do I get the ClickOnce Publish version to match the AssemblyInfo.cs File version?

Every time I publish the application in ClickOnce I get get it to update the revision number by one. Is there a way to get this change automatically to change the version number in AssemblyInfo.cs file (all our error reporting looks at the Assembly…
Kris Erickson
  • 33,454
  • 26
  • 120
  • 175
31
votes
1 answer

ClickOnce - Publishing folder vs. Installation folder

Could someone tell me the difference between the publishing folder location and the installation folder URL? Is there any reason why these two wouldn't be the same?
Randy Minder
  • 47,200
  • 49
  • 204
  • 358
31
votes
11 answers

Pitfalls/gotchas of ClickOnce/smart-client deployment in .NET

I have several .NET Windows Forms applications that I'm preparing to convert into a ClickOnce/smart-client deployment scenario. I've read the isn't-this-great tutorials, but are there pitfalls or "gotchas" that I should be aware of? There are…
Steven A. Lowe
  • 60,273
  • 18
  • 132
  • 202
31
votes
4 answers

Unable to install or run the application: Click Once

I published my .net application using ClickOnce, and all my users get the following error message on trying to open the program: "Unable to install or run the application. The application requires that assembly Telerik.Windows.Data Version…
David Shochet
  • 5,035
  • 11
  • 57
  • 105