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

Adding Files to a Click Once Deployment

I've got an application that I'm moving over to ClickOnce and the app has a moderately sized data folder with hundreds of files that I need to inlcude in the deployment. The folder needs to be in the same place relative to the EXE after deployment.…
user91089
  • 303
  • 1
  • 4
  • 5
30
votes
4 answers

MSBuild doesn't respect PublishUrl property for my ClickOnce app

I'm trying to make a batch file to publish the few ClickOnce application we have in one click. I'm using msbuild for that, and as an example the below command line shows how I'm doing it: msbuild MyApp.sln /t:Publish …
TheBlueSky
  • 5,526
  • 7
  • 35
  • 65
28
votes
2 answers

Can ClickOnce be configured to delete off old published directories?

Can ClickOnce be configured to delete off old published directories? Or Has anyone written some code that will delete off these publish directories (maybe keeping the last 10)? Currently, every time a ClickOnce Publish is done a new directory is…
Gerhard Weiss
  • 9,343
  • 18
  • 65
  • 67
28
votes
5 answers

Multiple ClickOnce installations with different Deployment Identity, but same Application Identity

We have several deployments of the same assemblies with different configuration files for different environments. We package these up in to separate ClickOnce deployments with different Deployment Identities (Program_ENV1, Program_ENV2, etc.). The…
Karg
  • 1,467
  • 3
  • 15
  • 18
27
votes
11 answers

How can I make a Click-once deployed app run at startup?

How can I make a Click-once deployed app run a startup? The best option I found by searching was to set the Publisher on the app to Startup, so the Start menu shortcut would be placed in the Startup folder, but that seems like a huge hack and I…
Eric Haskins
  • 8,505
  • 12
  • 38
  • 47
26
votes
1 answer

How to sign a .NET Framework ClickOnce application

I have a ClickOnce application that I built for a client, and I need it to be from a trusted publisher. How do I go about acquiring an Authenticode certificate and sign my application with it? So that when the application is launched, it's from a…
Carl Weis
  • 6,794
  • 15
  • 63
  • 86
26
votes
11 answers

ClickOnce - Cannot publish because a project failed to build

When I try to publish my (WPF, C#) application, I get these errors: Cannot publish because a project failed to build. Could not find file 'obj\x86\Debug\MyAPP.exe' I get these errors no matter where from I publish: publish wizard, build menu or…
Rajko
  • 291
  • 1
  • 3
  • 9
26
votes
4 answers

How does one pass command line argument to a ClickOnce application?

I have a Clickonce application that is launched from the start menu (local). I would like to be able to specify a parameter so that the application can load certain data. The application lives on a fileshare and will be launched using the URL only…
Szymon Rozga
  • 17,971
  • 7
  • 53
  • 66
26
votes
6 answers

Can I create a desktop icon for a ClickOnce application?

I have read in some of the ClickOnce posts that ClickOnce does not allow you to create a desktop icon for you application. Is there any way around this?
Veldmuis
  • 4,678
  • 4
  • 25
  • 25
26
votes
2 answers

Uninstall ClickOnce clients

Since ClickOnce installs per profile rather than per computer, is there any way to uninstall a single ClickOnce client application from multiple profiles at the same time? We have a ClickOnce application that we would like to remove and re-install…
Aaron
  • 1,463
  • 1
  • 14
  • 20
25
votes
1 answer

What are the web server requirements for ClickOnce deployment?

I am developing a Windows .NET 4 desktop application for a client and am considering using ClickOnce for deploying it from the client's website. I also plan on deploying application version upgrades from their website. I've read through many…
PIntag
  • 932
  • 11
  • 26
24
votes
3 answers

"Manifest XML signature is not valid" on client machine but works fine on developer computer

At work we had a ClickOnce application that, when the client would try to install, was throwing the exception: Exception reading manifest from file:/FILEPATH: the manifest may not be valid or the file could not be opened. Manifest XML signature is…
Dzyann
  • 5,062
  • 11
  • 63
  • 95
24
votes
5 answers

How can you publish a ClickOnce application through CruiseControl.NET?

I have CruiseControl.NET Version 1.4 set up on my development server. Whenever a developer checks in code, it makes a compile. Now we're at a place where we can start giving our application to the testers. We'd like to use ClickOnce to…
proudgeekdad
  • 3,424
  • 6
  • 42
  • 40
23
votes
2 answers

ClickOnce setup.exe fails, but the .application file works fine when using a Windows share for deployment

I am getting the error of System.Deployment.Application.DeploymentDownloadException when I try to run setup.exe for my ClickOnce application. If run it over the network from its original location it works fine, but if I copy setup.exe from the path…
Scott Chamberlain
  • 124,994
  • 33
  • 282
  • 431
23
votes
6 answers

Restart WPF application after click-once update (start the new version)

How to restart WPF application after it has been updated using click-once, i need to start the new version!
Saw
  • 6,199
  • 11
  • 53
  • 104