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
181
votes
7 answers

How to get folder path for ClickOnce application

I need to write a file in the same folder where a console ClickOnce .application (executable file) resides. The folder where it launches from. I tried using Application.StartupPath &…
Tony_Henrich
  • 42,411
  • 75
  • 239
  • 374
120
votes
23 answers

Error deploying ClickOnce application - Reference in the manifest does not match the identity of the downloaded assembly

I'm trying to deploy a ClickOnce application, but installation fails on the client. Here's the error log: PLATFORM VERSION INFO Windows : 6.1.7601.65536 (Win32NT) Common Language Runtime : 4.0.30319.1 System.Deployment.dll :…
Shaul Behr
  • 36,951
  • 69
  • 249
  • 387
110
votes
11 answers

"ClickOnce does not support the request execution level 'requireAdministrator.'"

So I was writing an application that requires access to the registry. I had not touched any build settings, wanting to get the thing working before I added the other touches, such as a description or name. Out of the blue, I get an error that will…
LMS
  • 4,117
  • 5
  • 27
  • 37
101
votes
7 answers

How to find the Target *.exe file of *.appref-ms

I have to make a backup of the program running from the file *.appref-ms When I opened the file GitHub.appref-ms using a text editor I found http://github-windows.s3.amazonaws.com/GitHub.application#GitHub.application, Culture=neutral,…
VenomVendor
  • 15,064
  • 13
  • 65
  • 96
83
votes
2 answers

Best way to deploy Visual Studio application that can run without installing

I wrote a fairly simple application with C#/.NET and can't figure out a good way to publish it. It's a sort of a "tool" that users would only run once, or run every few months. Because of this, I'm hoping that there is a way I could deploy it where…
Wilson
  • 8,570
  • 20
  • 66
  • 101
83
votes
12 answers

An error occurred while signing

I maintain a large WPF application which I inherited from another developer. I use ClickOnce to publish it. Suddenly, today I got an error message: Error 2 Cannot publish because a project failed to build. 1 1 Error 3 An error…
David Shochet
  • 5,035
  • 11
  • 57
  • 105
70
votes
10 answers

How to display ClickOnce Version number on Windows Forms

I have a windows forms application that is deployed to two different locations. Intranet - ClickOnce Internet - Installed on a citrix farm through Windows installer I display ClickOnce version number for click-once deployed…
dance2die
  • 35,807
  • 39
  • 131
  • 194
67
votes
4 answers

What alternatives are there to ClickOnce?

I've used ClickOnce a lot over the years, but I have run up against a lot of its limitations. What alternatives are there for web deployment? So far the only one I've been able to turn up is ClickThrough, which is part of WiX now on the back burner.…
ScottB
  • 1,363
  • 2
  • 14
  • 24
62
votes
16 answers

ClickOnce error: Value does not fall within the expected range

Getting this error on ALL ClickOnce application launches for a certain user. This started happening after a version upgrade (but happens to no one else). I've tried subsequently changing the version number, add/remove, registry scrub, clearing…
TheSoftwareJedi
  • 34,421
  • 21
  • 109
  • 151
56
votes
2 answers

Unable to find manifest signing certificate in the certificate store

I signed the assembly with my VSTO 4.0 word add-in with strong name key file .snk and tried to uncheck Sign the ClickOnce manifest but after rebuild it appears again. After I tried to delete lines for ClickOnce manifest in .csproj, .pfx manifest…
Vlad Omelyanchuk
  • 3,021
  • 7
  • 29
  • 35
56
votes
10 answers

Error message "Unable to install or run the application. The application requires stdole Version 7.0.3300.0 in the GAC"

When one user tries to run the application, our ClickOnce application is reporting: Unable to install or run the application. The application requires stdole Version 7.0.3300.0 in the GAC. It's interesting to note that the GAC…
proudgeekdad
  • 3,424
  • 6
  • 42
  • 40
55
votes
9 answers

How can I roll-back a ClickOnce application?

Is there a way (hacky will do) to allow a user to go back to a previous version of a ClickOnce network deployed application? I've looked in the docs and API and there seems to be no way. You can selectively choose if you would like to update, but…
Jan Bannister
  • 4,859
  • 8
  • 38
  • 45
53
votes
3 answers

ClickOnce deploy a Windows Service?

Is it possible to deploy a Windows Service using ClickOnce? If so, how do you achieve this? Currently we have to use a Deployment project, and the installation process could be simplified greatly by using ClickOnce.
NoizWaves
  • 2,650
  • 6
  • 28
  • 32
53
votes
3 answers

ClickOnce application replace current installed fliles

With ClickOnce applications, is it possible to replace the current files or install in a different directory when creating a new version? Because the error I get is: Unable to install this application because an application with the same identity…
Oliver Kucharzewski
  • 2,523
  • 4
  • 27
  • 51
46
votes
5 answers

Remove ClickOnce from a WinForms app

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…
Ryan Lundy
  • 204,559
  • 37
  • 180
  • 211
1
2 3
99 100