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

How to pass cmd line args to a published ClickOnce .NET Framework Console App

After a .NET Framework console application is published out to a dev server, how do you run the .exe with command line args? For example, the application is published to \MYSERVER\path\to\published\app In that directory are the following files after…
HappyDev95
  • 21
  • 3
1
vote
3 answers

Path for storing the 'per machine' application details

My application needs to write some information to a file and keep it common to the machine(common to all users). Currently I stored it in C:\Documents and Settings\All Users\Application Data But the problem is whenever the file is created by admin…
Bhaskar
  • 1,680
  • 7
  • 26
  • 40
1
vote
1 answer

ClickOnce Looking for Update in Local Build Folder

I've built a ClickOnce vsto add-in for Outlook and I was able to publish it to a network directory and install it. I can publish updates/revisions. However, when I restart Outlook after a revision, it gives me the following error: It's basically…
Basic.Bear
  • 111
  • 1
  • 9
1
vote
0 answers

Uploading Click Once to app service results in this error:Application manifest has either a different computed hash than the one specified or no hash

I made an MVC app that hosts a vsto click once installer. The setup.exe installs the app well when its in local host but when it's in a hosted app service the click once is producing an error with this message "Application manifest has either a…
1
vote
0 answers

Windows Forms "Deploy Task" failing with "The process cannot access the file because it is being used by another process." in .NET5

I've just migrated my .NET 4.8 Windows Forms application to .NET 5. The process was incredibly easy. The only problem I'm having is with Deploy. I've been using Click Once deploy with my application for years but after changing it to .NET5 and…
Chris Walsh
  • 3,423
  • 2
  • 42
  • 62
1
vote
1 answer

.net 5 ClickOnce FTP no longer an option?

So I used to use an FTP path in the form of ftp://xxx.xxx.xxx.xx/Folder/ with click once and on .NET framework this was working fine however I recently moved over to .NET 5 in order to prepare for the move to .NET Maui in the future. and so far the…
1
vote
2 answers

Failed while publishing clickonce application

I get the following error while trying to publish a wpf clickonce application. Error 1 Publish failed with the following error: Unable to cast COM object of type 'EnvDTE.DTEClass' to interface type…
Peter Stephens
  • 1,040
  • 1
  • 9
  • 23
1
vote
0 answers

ClickOnce activated in Chromium Edge - Browser still downloads deployment manifest instead of starting application

We deploy one of our applications as a ClickOnce application. To make this work in the new Chromium based Edge browser we have had to make sure that our users either manually activate ClickOnce using edge://flags or are using a policy to enable…
1
vote
0 answers

Signing ClickOnce with GoDaddy Code Signing Certificate

We have purchased a Code Signing Certificate from GoDaddy, signinged our software, but when I'm trying to install the app - it still says "unknown publisher" and antivirus and firewall are axing the install. I have re-keyed the certificate and went…
Pavel
  • 565
  • 6
  • 19
1
vote
1 answer

Debugging query string values for click once application

I am developing a click once aplication. I need to pass some values in the url to the application. I referred this article Retrieve Query String from Click Once to pass and retrieve the query string values. How can I pass and debug these query…
Bhaskar
  • 1,680
  • 7
  • 26
  • 40
1
vote
0 answers

Error during publish Unable to remove directory “bin\Debug\app.publish\ ClickOnce

I am trying to publish my project but when I do it I got an error I look at here : Error during publish Unable to remove directory "bin\Debug\app.publish\" I try to delete the "bin" file and "obj" file it's not help I try to delete all my project…
hedbisker
  • 179
  • 1
  • 1
  • 15
1
vote
2 answers

I do not have Application Files dialog box in my vs2010

I am using : Visual studio 2010 Professional Edition and developing Excel addin 2007 Where could i find the options I have there? Or could you tell me which edition of vs has the button? Print screen Thank you!
Sergey Kucher
  • 4,140
  • 5
  • 29
  • 47
1
vote
1 answer

Vs 2010 Click Once application written in c# copies the xml files into other directory

I have an Excel addin application which I developed with C# and I published to a network location using ClickOnce from VS2010. The application assumes that all the xml files that I use in it are in the same folder as the application itself. But…
Sergey Kucher
  • 4,140
  • 5
  • 29
  • 47
1
vote
1 answer

Whats the best way to create a auto update solution for my WPF C# App?

Im creating a simple alarm application which uses PNRP to send and recive alarms over the local network. Now Im planning och implementing some auto update for this application and have looked at a few existing solutions. The following is the…
Frej
  • 320
  • 4
  • 14
1
vote
1 answer

Build fails when signing code in Azure Pipeline

I've searched everything I can think of and cannot find the solution. I've got a ClickOnce application that I am attempting to sign with a certificate that was created by our in house Certificate Authority. On my local machine, I can sign the code…
dstnrgrs
  • 107
  • 1
  • 1
  • 7