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
23
votes
3 answers

Disallow publishing of debug builds for ClickOnce deployment

Is there a way to disallow publishing of debug builds with ClickOnce? I only want to allow release builds through, but right now human error causes a debug build to slip through once in a while. We're publishing the build from within Visual…
Daniel Jennings
  • 6,304
  • 3
  • 32
  • 42
23
votes
5 answers

ClickOnce application skips asking for an update (or fail launch if skip is selected)

I updated my ClickOnce application and then when the user runs they are asked if they want to install the new version. I am working in a highly controlled environment. When an update is available it has to be installed (backwards compatibility with…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
22
votes
4 answers

ClickOnce - File Already Exists Error - Why is a DLL File Trying to be Copied Twice by ClickOnce?

Does ClickOnce only look at the application manifest file to determine which dll files to copy to the client’s machine or does it also interrogate the internals of an assembly to determine dependency files? The reason I’m asking is because I’m…
ChrisNel52
  • 14,655
  • 3
  • 30
  • 36
22
votes
3 answers

Problems using MsBuild using command line for Publish Click Once

I have Windows application in csproj in my solution, and I want generate Publish using command line (bat, cmd). My script is (I put \r\n for better reading): SET MSBUILD="%SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe" SET…
Alhambra Eidos
  • 1,515
  • 4
  • 21
  • 31
21
votes
4 answers

.Net Encryption

What I would like to know is the definite approach to encrypting connection strings in a config file. Here are my questions: Using machine-level encryption, can't anybody accessing my server write a little .Net program to read the contents of the…
Gus Cavalcanti
  • 10,527
  • 23
  • 71
  • 104
21
votes
2 answers

Is it possible to use NGen with ClickOnce deployment?

Is it possible to use NGen with ClickOnce deployment?
Branko
  • 545
  • 6
  • 16
21
votes
5 answers

ClickOnce deployment is leaving multiple versions (yes, more than two)

I've got a ClickOnce application that is leaving all old versions on my disk. It's an internal corporate application that gets frequent updates, so this is a disaster for rapidly inflating our backup size. According to the documentation and other…
Clyde
  • 8,017
  • 11
  • 56
  • 87
21
votes
3 answers

Click Once - All Users

How to I configure click-once to install apps for all users. On another forum I got to 'use MSI' - thanks - but how. Also, the first installing user may not be admin - which may be a problem. And I want all users to trigger an update check. No local…
Tony Trembath-Drake
  • 1,638
  • 3
  • 13
  • 14
20
votes
4 answers

Serialization Assembly. Is it needed or not?

I have a .net 2.0 c# ClickOnce app and it connects to its data via Web Services. I've been told that one way to potentially speed up the application is to generate a serialization assembly beforehand. I have several questions on this front. The…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
20
votes
9 answers

Google Chrome extension for Click Once?

I have a client that wants to use Google Chrome for an internal web app we've developed(I don't blame him, I really enjoy using chrome!) The problem is we have a win forms app that the users can launch from the browser, deployed using click once. …
Dan
  • 1,003
  • 1
  • 7
  • 16
20
votes
5 answers

Is it possible to offer a ClickOnce installer on Github?

I'm wondering if you can create a ClickOnce installer for a project and then host the installation folder on GitHub (via the downloads page)? I guess by default ClickOnce publishes the installation files to a subfolder which I think is not supported…
Koen
  • 3,626
  • 1
  • 34
  • 55
19
votes
5 answers

Why doesn't ClickOnce in Visual Studio deploy content files from dependent assemblies?

I have a smart client application that is deployed via click once. The problem is that i have content files in dependent assemblies that just don't show up in the published application files dialog in visual studio. This means that everytime I…
John Hunter
  • 4,042
  • 4
  • 26
  • 35
19
votes
6 answers

Automatically increment "minimum required version" in a ClickOnce deployment?

Is there a way to automatically increment the "minimum required version" fields in a ClickOnce deployment to always equal the current build number? Basically, I always want my deployment to be automatically updated at launch. I suspect I'm going to…
Bob King
  • 25,372
  • 6
  • 54
  • 66
18
votes
3 answers

Where can I safely store data files for a ClickOnce deployment?

I have been using ApplicationDeployment.CurrentDeployment.DataDirectory to store content downloaded by the client at runtime which is expected to be there every time the app launches, however now I've found this changes seemingly randomly if the…
Brett Ryan
  • 26,937
  • 30
  • 128
  • 163
18
votes
1 answer

How can I disable code signing for debug builds in Visual Studio 2013?

We recently upgraded Visual Studio from 2010 to 2013 and everything seems to be working the same as before except for one thing. In 2010 code signing was only performed when publishing the project, but in 2013 it wants to sign the output assembly…
Anthony
  • 9,451
  • 9
  • 45
  • 72