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
1
vote
0 answers

Is it possible to have different publishing destinations depending on the configuration in visual studio?

I have a Winforms application that deploys using ClickOnce. I have several customers for this application and I need to deploy it in each of them with different configurations and different destinations (publishing folders and installations…
Ariel Larraburu
  • 439
  • 1
  • 5
  • 14
1
vote
2 answers

Public "Click Once" application

As the title suggests, I would like to create - and public - my application through Visual Studio's Publish Wizard. I am running into an issue, however. It seems as though by publishing my application VS is forcing me to create an installer. The…
user725913
1
vote
3 answers

ClickOnce deployment for restricted users

From firsthand experience, it appears that ClickOnce only installs for the current user, and there is no option to install for all users. This is a problem because some users within the company need to use ClickOnce applications but do not have…
James Jones
  • 8,653
  • 6
  • 34
  • 46
1
vote
0 answers

VSTO Excel add-in not working after Expiry date of certificate which used to signing

I am using VSTO in my project with WPF. I am signing my exe,addin dll,msi,installer using pfx file which having expiry on june-23-2021.I am time stamping using digicert.But after expiry of certificate addin is not working. i checked by below…
sudeep
  • 126
  • 1
  • 4
1
vote
1 answer

Missing files after Click Once Installation

We have a project with a similar structure: Project A Additional Files FileA.json FileB.json Project B Project B is our main project in this case and includes project A. Everything works fine when I build and run it. It also works fine,…
Zumpel
  • 82
  • 19
1
vote
1 answer

How to enable publishing of ClickOnce applications?

I have SKD project Net461. VS 2019. And I dont have options to publish ClickOnce like it look like in: https://learn.microsoft.com/en-us/visualstudio/deployment/quickstart-deploy-using-clickonce-folder?view=vs-2019 I was looking for a component in…
Silny ToJa
  • 1,815
  • 1
  • 6
  • 20
1
vote
1 answer

Distributing files with application via ClickOne

I'm creating some Excel add-in. I distribute those add-ins via ClickOnce. In each add-in there is an .CHM help: in the property of this file, I set Copy to Output Directory to Copy always. If I check the deploy folder, I can't file the help…
Enrico
  • 3,592
  • 6
  • 45
  • 102
1
vote
1 answer

.NET 5 TargetFramework issue with referenced project when publishing WPF App over ClickOnce

I'm trying to publish a WPF app with Target Framework net5.0-windows using ClickOnce (Built in VS2019), which has a Project Reference to another .NET5 Class Library. But I always run into the following exception: Publish has encountered an…
TheJounezz
  • 13
  • 3
1
vote
1 answer

Is there group policy settings for manage code access security for clickonce app

We have a legacy .NET 2.0? ClickOnce application for which developers have been using the caspol.exe tool located at: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\caspol.exe To add a group, adding a site in, and giving it full trust to be able…
JustinDev
  • 21
  • 3
1
vote
2 answers

Allow users to run existing version of clickonce app when update fails

I am working on a ClickOnce application, and deploying using Mage. Is there a way to allow users to run their installed version of the application if an update fails? Some users are occasionaly unable to run the program when connecting to the…
andypaxo
  • 6,171
  • 3
  • 38
  • 53
1
vote
1 answer

How can I ensure a project only publishes in Release configuration while still letting me debug in other configurations?

I have two .NET Framework applications, one a ClickOnce application and the other a web application, which I want to prevent from ever being published with the debug configuration. How can I force Visual Studio to only ever publish them in the…
IronMonkey
  • 51
  • 8
1
vote
2 answers

No "Start" menu shortcut using ClickOnce

I am publishing a .NET 3.5 SP1 WPF application through ClickOnce. By default, when the user clicks on the published link the application gets installed and a menu and shortcut are added to the client's Start/All Programs menu. How can I prevent the…
Gus Cavalcanti
  • 10,527
  • 23
  • 71
  • 104
1
vote
1 answer

ClickOnce for a windows application

I have an image viewer plugin called SuperViewer (it is a windows control). I would like to use it as contol in my web page. I could succeeded to use. Now, I want to: Publish the 'SuperViewer' using Visual Studio 2008, to use with the ClickOnce…
mmk_open
  • 1,005
  • 5
  • 18
  • 27
1
vote
0 answers

Include font file in ClickOnce application

I am developing a ClickOnce winforms application, through visual studio 2017, and the main fonts used are Century Gothic and Segoe UI. The Segoe UI shows fine on most client PCs, however, Century Gothic only shows on those that also have Microsoft…
lhunter664
  • 99
  • 15