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
4 answers

Running C# clickonce console app

I have a Command line console app that references a dll 'VMware.Vim.dll', but this has other referenced dll's like VimService41.dll, VimService20.dll etc saved off in the GAC on my local machine. I want to deploy this exe to any computer and be able…
Jai
  • 319
  • 2
  • 9
  • 30
1
vote
2 answers

Clickonce deployment error

A small number of our users are experiencing an error when they try to launch our application through ClickOnce. it shows "Application cannot be started. Contact the application vendor." From reading other solutions on the web, we've figured that…
Jimmy
  • 89,068
  • 17
  • 119
  • 137
1
vote
2 answers

Difference between 'Publish...' in VS and /target:publish in MSBuild?

We're trying to publish a ClickOnce application, but we are forced to do so using MSBuild, since we're suffering from the Visual Studio bug where Visual Studio stupidly insists on re-enabling 'The application should check for updates', which we do…
ErikHeemskerk
  • 1,623
  • 14
  • 30
1
vote
0 answers

ClickOnce deployment goes rogue after upgrading to .Net Framework 4.8

I upgraded a project from .Net Framework 4.7.1 to .Net Framework 4.8, and ClickOnce stopped working. It deploys, but it is no longer generating all of the files, and it is no longer respecting the path of the content files. I appreciate any idea you…
cilerler
  • 9,010
  • 10
  • 56
  • 91
1
vote
0 answers

Unable to launch WPF application through ClickOnce

We have a WPF application which is launched through clickOnce technology. The application installs on Citrix machines with Windows 10. Recently we have deployed a change in the application. Now some users in Citrix are facing issue in launching the…
Abhinav Singh
  • 233
  • 1
  • 3
  • 11
1
vote
1 answer

ClickOnce application signed with purchased CA shows "Unknown Publisher"

I know this question has been asked a lot. I already tried many of the solutions in other questions, but is not working. The application target framework is 4.5.2. I'm working on Windows 7 with Visual Studio Community 2017. The certificate is a code…
1
vote
1 answer

Azure MSBuild.exe not respecting 'NoWin32Manifest'

I have ClickOnce app and I want to generate .application file for every version without manifest. I've set true In the project file, but when building through Azure Pipelines…
Expressingx
  • 1,480
  • 1
  • 14
  • 39
1
vote
1 answer

ClickOnce applications re-downloading

We are facing an issue with our ClickOnce applications re-downloading, even when there is no new version of the software published. The issue seems to be intermittent, but not reliably repeatable. There are multiple applications written in VB.NET…
Evan09
  • 39
  • 4
1
vote
1 answer

Can a clickonce application know what directory it was installed from?

First, long time reader, first time poster. Let's say that you have 2 clickonce folders, Prod and Dev. If the application is installed from Prod you want it to access database ABC_Prod. If the application is installed from Dev you want it to access…
ScottTENN
  • 11
  • 2
1
vote
1 answer

Amending google analytics tracking code in clickonce published html

Has anybody tried this before? How can i amend the google analytics tracking code .js into the publish.htm via visual studio? Is there an easy way? For example by using post build events or what? Any help appreciated!
OrElse
  • 9,709
  • 39
  • 140
  • 253
1
vote
1 answer

Set CustomActionData on a ClickOnce setup.exe

I need to do a Publish of my application (ClickOnce) so people can install my application from the web. With ClickOnce the setup.exe file is automatically created. What I have done in my application is to add a "Visual Studio Setup project" (which I…
Kurmanc
  • 33
  • 3
1
vote
0 answers

Adding CefSharp dependencies to application files

I have several files that I need to add to my projects application files. These are the dependencies for CefSharp but are required when publishing my application. Would anyone be able to give me any guidance into how I would go about doing this? I…
Joe Carter
  • 61
  • 6
1
vote
0 answers

Control ItemsSource binding does not update on ClickOnce Web Published WPF app

I have a WPF application with an XAML Window containing a few Buttons and a DataGrid. When buttons are pressed, some logic is performed in the background which builds a list of some type and finally assigns the list to a (MVVM) model property…
UяošKoт
  • 416
  • 6
  • 10
1
vote
1 answer

MSIX Core solution build errors

I have an MSIX package that I need to be able to allow users to install from a web page on versions of Windows older than Windows 10 build 1709. This is possible with MSIX Core. However the documentation here…
1
vote
1 answer

Disable clickonce application rollback

is there any way for disabling the rollback (getting the previous version) in an clickonce installed application?
OrElse
  • 9,709
  • 39
  • 140
  • 253