Click here to Skip to main content
15,891,905 members
Everything / ClickOnce

ClickOnce

ClickOnce

Great Reads

by Graeme_Grant
This article comprehensively covers the Microsoft ClickOnce Installer with a bare bones WinForm/WPF C#/VB Silent Updater framework plus covers how to implement, troubleshoot, test locally, to release.
by Graeme_Grant
.NET compliant Silent ClickOnce Update Background Worker Service for Winform, WPF & Console in C# & VB
by Phil Jeffrey
How to run a ClickOnce app as Administrator on Windows 8 when the app includes a SQL Compact database
by Zahid Khan Kakar
Deploy your Windows Application in Online Mode

Latest Articles

by Graeme_Grant
.NET compliant Silent ClickOnce Update Background Worker Service for Winform, WPF & Console in C# & VB
by Graeme_Grant
This article comprehensively covers the Microsoft ClickOnce Installer with a bare bones WinForm/WPF C#/VB Silent Updater framework plus covers how to implement, troubleshoot, test locally, to release.
by Ajcek84
How to properly sign ClickOnce deployment in a way that actually works
by Zahid Khan Kakar
Deploy your Windows Application in Online Mode

All Articles

Sort by Score

ClickOnce 

9 Jan 2023 by Graeme_Grant
This article comprehensively covers the Microsoft ClickOnce Installer with a bare bones WinForm/WPF C#/VB Silent Updater framework plus covers how to implement, troubleshoot, test locally, to release.
12 Oct 2023 by Graeme_Grant
.NET compliant Silent ClickOnce Update Background Worker Service for Winform, WPF & Console in C# & VB
21 Jul 2014 by Phil Jeffrey
How to run a ClickOnce app as Administrator on Windows 8 when the app includes a SQL Compact database
14 Apr 2011 by Michel [mjbohn]
Hi allI'd like to distribute applications via clickonce. As you might guess, this is not a problem at all.But in the intranet of the company where these apps should be deployed, all PC stuff, users, rights and policiesare handled by ActiveDirectory.Due to some strict policy, users can...
28 Sep 2016 by Richard Deeming
That's not how SQL Server works. You don't copy the .mdf file to the client computer; you attach it to an existing instance of SQL Server, and have the client connect to that instance.If you're using the AttachDBFileName option, the user will need to have a copy of SQL Server Express...
18 Apr 2011 by Pete O'Hanlon
Well, you could always look at using makecert to generate your own certificate. Full details can be found here[^].
7 Jun 2012 by Maciej Los
Have a look here:Adding automatic updates to your program - Part...
2 Apr 2013 by OriginalGriff
Don't. Find a different solution.The problem is that the max length of a query string is not large, but it also isn't defined. IE has a maximum length of the entire URL + Query string of 2,083 characters http://support.microsoft.com/kb/208427[^] and that is characters, not bytes - since the...
10 Feb 2014 by jing567
Hello , I have done a wpf application in c#. Now I want to provide an update to my application through online..For that i have goggled and achieved it by using click one application. So now if i publish the application. The user gets an update prompt when he opens the...
10 Feb 2014 by hari111r
Hi,Right click solution and go to properties, In publish tab click updates button you can see textbox for update location at the bottom of the popup mention you update location there.
26 Mar 2023 by Graeme_Grant
If you want to pass the event from the UserControl to a parent container, like a Form, then you need to: 1. expose either a Method to a delegate (a method or function to call from within the UserControl) or 2. add a public Event property to the...
3 Apr 2011 by Wendelius
Never tried it but when you publish the application, the "Application Files" folder is defined in the deployment manifest (the file SomeApplication.application), so you can change it manually. The downside is that it's generated again every time you publish.So perhaps a better way to do this...
11 Aug 2011 by Wendelius
Have you already tried including http://resources.businessobjects.com/support/communityCS/FilesAndUpdates/CRRedist2008_x86.zip[^] to the package?Could be that you have to make separate publishes for x86 and x64 installations to handle the different versions.
7 Feb 2012 by Christian Graus
This looks like it means you tried to interact with a form element that did not exist yet. Look at your constructors and ask if there's stuff better moved to the Load event.
9 Aug 2012 by Christian Amado
In your project, go to Properties --> Publish and click the Application files... button.Search for your dlls files and select Include from the DropDownList. Click Ok. Publish again. And everything going to work perfectly =)Hope you can find it useful.
18 Aug 2012 by gchq
We can reproduce the error this way.Re-boot the machine and as soon as the OS has loaded start you application. If will almost always fire the unhandled exception you mentioned! If you leave it a few minutes after the OS has loaded you might not get the exception.The error only seems to...
14 Feb 2013 by Mike Meinz
For ClickOnce Deployment, you have to add the "compact database file" to the project to be deployed. ClickOnce Deployment requires that all files to be deployed be declared and present within the project.
8 Oct 2013 by SREENATH GANGA
I had made a Clickonce deployemnt to my application set the installation folder and publishing folder the same that is a network share and then it work perfect for my development machineThen when I went to on client machine opened the network share and I tried to install the application using...
20 Apr 2016 by hari111r
I trying to update my application i am gettings the below issue please help me to come out of it.PLATFORM VERSION INFO Windows : 6.1.7601.65536 (Win32NT) Common Language Runtime : 4.0.30319.225 System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100) clr.dll :...
3 Oct 2014 by Wendelius
I've had similar problems. Another variation is that the new version won't install at all.So far the only fix I've been able to do is to remove the app completely from the computer and then do a fresh install. Sometimes I've had to manually clean the APPDATA folder.
21 Dec 2014 by Mehdi Gholam
Read this : http://stackoverflow.com/questions/14485914/cannot-find-applicationdeployment-in-system-deployment[^]
14 Sep 2016 by MrDeej
Hello!I have an application wich the last month have gotten a bug i have been unsucessfull in solving.The application is a warehouse/production WPF application and is published to an non-internet connected LAN with around 100 Windows 7 Computers. The application is in rapid development...
1 Sep 2017 by Graeme_Grant
You need to write your own code to either report stats back to your own server or use a commercial tool... many out there to choose from... desktop app analytics - Google Search[^] Here are some examples: * Google Measurement Protocol Overview  |  Analytics Measurement Protocol  | ...
5 Apr 2019 by Graeme_Grant
I have written an article on this topic. Hope it helps: Silent ClickOnce Installer for Winform & WPF in C# & VB[^]
18 Mar 2022 by RickZeeland
It might be caused by some of the files of the application that are still running, or being opened during the installation. Make sure all files are closed. Another cause might be a virus scanner, try to disable scanning of the install location. ...
13 Jan 2012 by Abhinav S
Go through this[^] discussion.This[^] discusses another approach to achieve the same task.
24 Mar 2011 by E.F. Nijboer
Looks like this isn't possible:http://support.microsoft.com/kb/306134[^]You could convert it to xml something like this:DataTable dt = myDataAccess.ExamTable(); XmlDocument XMLDoc = new XmlDocument();XMLDoc.LoadXml(table.DataSet.GetXml());Good luck!
25 Mar 2011 by Kschuler
You can pass a DataSet through the Web Service but not a DataTable. Just leave it in the DataSet. The DataSet is already serializeable, but a DataTable is not. Go figure.
3 Apr 2011 by Dave_Lowe
Is there a way to set a custom publish path for ClickOnce? The hosting i have doesn't support spaces in paths and the "Application Files" folder where the files get published has a space. If i just change the codebase path in the .application file, the application won't even get past the...
3 Apr 2011 by Abhinav S
Did you try using the Publish wizard? There should be an "Where do you want to publish the application?" when you run this wizard.
15 Apr 2011 by Kschuler
I googled and this[^] was the best walk-through I could find. Hope it helps.
8 Jul 2011 by fjdiewornncalwe
Ensure that your publish worked properly. It sounds like that is your issue. If you need to, check some other change that happened as well if possible. Is there any other code running in button1_click? If so, validate that the code is still executing. If it is, then your publish failed. If it...
11 Jul 2011 by aureliosjr
After losing a few years of life troubleshooting this problem, I finally found it's ridiculously obvious cause (isn't it always like that?): there were two calls to the "InitializeComponent" method. I hope this at least helps someone else who might make this stupid mistake.
12 Jul 2011 by kZR
Hello,Can you exclude certain files from an update with ClickOnce?I don't wanna update for example the local database (so it's empty again).Thanks.
12 Jul 2011 by Philippe Mori
One of the best way to handle this would be to copy the file the first time the user run the application.That solution also works nicely with UAC and multiples users (that don't share the data).When the application want to use the file (typically in a subdirectory of "My documents"), if...
12 Jul 2011 by Philippe Mori
For database, it might even be a better solution to create the file at run-time if it does not yet exist.There are 2 advantages to this method:The setup file will typically be smaller which is interesting particulary for small applicationIt is somewhat easier to support multiple...
11 Aug 2011 by saravanan6
Hi All,We are developing C# Winforms applications.Now i want to deploy my application using clickonce.Here i successfully added the dll reference and prerequisites(.net 4).But we are using DSO Framer control for displaying word document through our c# application.For, that we have installed...
11 Aug 2011 by Kschuler
I have a PC Windows Application that I deploy with ClickOnce. My app started out as a small app with Micrsoft Access as the database, so that users didn't have to install a big database package when they first use it. Because of the Access Database, I have it set to compile the app to x86...
12 Aug 2011 by Kschuler
Using the Bootstrapper Manifest Generator download from here[^] and the product xml and package xml that is for the regular Crystal Reports bootstrap I muddled together a new bootstrap package that seems to work. I haven't fully tested it yet, so there could be plenty of problems with it.I...
15 Aug 2011 by Kschuler
Here is a CP Article about Custom Prereqs (Not sure it's for .Net 4, though):Add your own (custom) prerequisite to "ClickOnce" application[^]Here is the MDSN:http://msdn.microsoft.com/en-us/library/ms165429(v=VS.100).aspx[^]Another article that helped me once, but it's not .Net 4...
15 Aug 2011 by Harmanjeet Singh
Go to the Solution Explorer Project Properties, and u will find you answer..
7 Jan 2012 by thatraja
Here workaround linkClickonce: , has a different computed hash than specified in manifest[^]
13 Jan 2012 by MatthysDT
We have a very large, very slow, distributed network.On the network we have a Main central server, as well as a smaller server at each individual site.Since we have slow lines, and our application is quite large (20MB) we cannot have all our client PC's (300+) installing/updating the...
17 Apr 2012 by Kschuler
I have a windows forms application written in vb.net. I have a form called SplashScreen which is set as the Splash screen in the project properties. The Startup form is set to a form called Logon. I have a user who got an exception when running my app. It occurred right after the splash...
1 Mar 2012 by Sergey Alexandrovich Kryukov
Oh, I can see the bug.First of all, let me assure you that you have a form constructor. Just find it. It looks like you are handling the "fake" event Form.Load. This event is actually fired as if your place its handler in a constructor, after the auto-generated layout call. I actually do it...
24 Apr 2012 by Kschuler
If I'm understanding you correctly, I think you're just overthinking it. Create a form level variable that keeps track of whether or not the process is running. When the user attempts to close the form, you can use this variable to see if they should be allowed to close it or not. I use the...
26 Apr 2012 by Sergey Alexandrovich Kryukov
First of all, thank you for providing a complete code sample. Well, not quite complete, because you did not show the essential code done by the designer (for code sample you should write that code by yourself and show: adding controls and adding event handlers to invocation lists of event), but...
7 Jun 2012 by theskiguy
I use Click Once to deploy all the apps I make. I set the publish settings to check for a new version before the application starts. I also set the minimum required version to the current version number so that click once will automatically download the latest version to the user. I am...
15 Aug 2012 by Vondersmith
I have a new WinForms application that I'm trying to deploy with the ClickOnce method. However, the app.config file that is needed for the application is not included with the installation.The application is installed properly from the server, and launches the exe, but as soon as I try to...
15 Aug 2012 by Wes Aday
I believe that this article, http://msdn.microsoft.com/en-US/library/kzy0fky2(v=vs.80).aspx[^] will help you.
18 Sep 2012 by Kschuler
I have a Windows Forms App that was built with VS 2005 and uses ClickOnce to deploy. I am trying to update it to VS 2010. I wanted to upgrade to VS 2010 to take advantage of the fancier ClickOnce ability to setup proper File Associations. I made a test project in VS 2010 and found that the...
18 Sep 2012 by nikki88
Hi,Im am trying to deloy an application using clickonce from visual studio 2010 on development computer to my Win2008 Server. However i am getting errors. I first tried to use IIS, when publishing to the server IIS, it says 'web server Frontpage server extension doesnt exist'.Upon...
19 Sep 2012 by Chris Ross 2
This isn't a complete solution, but it may be a step on the way...I would try doing a click once deployment to some non-server target first, to confirm that I've got my click once setup right. I suspect that the target being a server is not the root problem, but that your click once setup...
29 Oct 2012 by Member 8021019
Hi,We have a VSTO project-excel- that is deployed with clickonce technology.For some reasons- I can't use this project any more ,So we recreated a new project using the same file as in the old project.Project name and solution name are the same and the PFX file too.Now I want to...
12 Nov 2012 by G8nie
Hello !I have developed a little Word 2010 extension using VSTO.The issue is that a new build where I have only changed a few lines of code, installation on a computer yields a certificate error.Computer A is a Windows 7, office 2010, a lot of other programs.Computer B is my...
14 Feb 2013 by Jon Larborn
I have one main project referencing an other project. The referenced projects output is successfully copied to the output folder bin/debug. However, for my clickonce deployment the content files in the referenced project is not included, only the DLL files. The content files in the the main...
28 Mar 2013 by Kschuler
I have a ClickOnce app that has been published and used by our customers for about a year now. It's an app that can run online and has a desktop shortcut. Everything has been working okay until we started getting reports a couple of months ago that when users try to launch the app they get the...
28 Mar 2013 by Member 1303755
I would be interested in what responses you get to your question. I am having issues as well (we don't blue screen, but hang). We have a vendor provided application that uses ClickOnce accessed in Terminal server mode by several users. We have noticed that sometimes it hangs and after that, the...
2 Apr 2013 by Nader El Masry
I have array of bytes for an image that i want to send it using query stringFirst I convert the bytes to string using : MemoryStream ms = new MemoryStream(); Image img = Image.FromFile(@"C:\Hydrangeas.jpg"); img.Save(ms,...
6 Jun 2013 by Seyed Hamed Khatami
hello.i used prism to develop framework that compatible for our business.after deployed,i used Clickonce to publish app.i used below link and every thing is good else one thing.http://msdn.microsoft.com/en-us/library/gg405497(v=pandp.40).aspx[^]my published app capacity is 12...
6 Jun 2013 by Mike Meinz
To do this, I uncheck Create setup program to install prerequisite components in the Prerequisites dialog box of the Publish tab.
18 Jul 2013 by hasbina
HI,For my clickonce application created my own certificate using the visual studio command prompt and then used it to sign the code. I referred to the below link. But when I try to install it on some other computer it shows unknown publisher.How to solve...
18 Jul 2013 by User 8696850
Try this link :howto-add-a-digital-signature-to-executables[^]
23 Jul 2013 by hasbina
Hi, i created a digital certificate using the following method.but the certificate cannot view wheni open a 'Select from Store' option in visual studio project properties signing tab.why?how to get it from there?Method #1 - By using a custom MMC 1.Go to the Start menu >...
8 Oct 2013 by Mart Rijkers
Many installations do not install from network shares. Try to install it manually from the share and you will see if this is the case. If so, you will need to copy to local disk first
26 Oct 2013 by Tina Ng
I created my WPF single instance click once applcation by using the Microsoft.VisualBasic dll method. However I'm facing some difficulty to get the file path for second clicked file which associated with my app.For example, I have two file "First.my" and "Second.my". When I click on file...
27 Oct 2013 by Bernhard Hiller
You can get it from the CommandLine property of the StartupNextInstanceEventArgs / StartupEventArgs property.
31 Oct 2013 by MrGlass3
I am using Visual Studio 2012 and trying to publish a solution using the ClickOnce feature. I created a project that calculates some data and reference text files that have been added to that project. Because many of my applications end up doing these calculation I just reference that project...
31 Oct 2013 by Bhuvanesh Mohankumar
Hi,This may help you.Project Deployment VS2012[^]Thanks!
19 Nov 2013 by Member 10411451
Hello All, I have a dotnet windows application in which i am using crystal reports, built using vs 2005, installed on a machine using click once setting. Till now the application is working fine. but when i am migrating my application from vs 2005 to 2010 and deploying it onto the test...
9 Dec 2013 by thams
We are deploying a winforms application tru click once. Everything went well upto last update. In the latest update, we go the following error.abc.dll, has a different computed hash than specified in manifest.Searched in net and come to know that mage.exe has to be used to resolve this...
18 Dec 2013 by rskuchimanchi
Hi All,Thanks in advance...can any one tell me if there is a better way other Clickonce deployment to create a custom setup using VS 2012 on Win 8 platform?Thanks and regards,Kuchimanchi
20 Jan 2014 by Adwaitam
Hi All,I have application which is developed in English language. However, I want to show it in French language as well. The application contains the resource files and all for french language. Can anyone suggest how can I deploy the language in two different language ? I need to change...
31 Jan 2014 by jing567
Hello, I have done a wpf application to my client machines. i have added a setup wizard to my vss solution and with help of it i am creating a setup file. Now if the setup file is double clicked the application will be installed in that respective system. Now I want to give update...
31 Jan 2014 by MarkLTX
ClickOnce is an alternative to MSI. They don't mix. When using ClickOnce, you don't create a setup project and you don't have an MSI file. An MSI (or setup.exe) is required if want to be able to install the app for "all users", or configure the computer to run the app whenever a user logs...
3 Feb 2014 by jing567
Hello, i have deployed my wpf application using click one.. I get get updates of my wpf application whenever a new version is available.... Upto that part I have completed.... Now I want to show notification in the task bar saying that an update is available for my application( right...
3 Feb 2014 by Punamchand Dhuppad
Please refer this linkhttp://www.hardcodet.net/wpf-notifyicon[^]On CodePlex - http://toastify.codeplex.com/[^]
12 May 2014 by Abhishek Kumar (here to help!!)
Hi,I've an wpf application whose deployment type is gonna be Click-once setup.I've used some data-grid templates which runs absolutely fine on windows 8 machine while executing on windows of previous editions(7,xp) it crashes.On later researching for the same I came across a...
12 May 2014 by Matej Hlatky
Take a look at the Add your own (custom) prerequisite to "ClickOnce" application[^] CP article.
19 May 2014 by anee146
Hi,I need to make SED. Files Included is Prerequisites, Supporting Files and Folders.When i try it, but getting error on extracting the SED.
6 Apr 2016 by Zahid Khan Kakar
Deploy your Windows Application in Online Mode
5 Jun 2014 by Matt T Heffron
I have a ClickOnce application that I'm trying to test the installation.I've set the prerequisite to be .NET 4.0.When I test it on a workstation with Windows 7 and explicitly remove .NET 4 using the Control Panel, the ClickOnce installation appears to be installing the .NET prerequisite, but...
8 Jun 2014 by Member 10872351
hi.. i implemented a UI to run the ordered test for BDD of my application .. there is a list of ordered test and if u select one of these tests and click on execute the ordered test case will be executed.This is a wpf application that i have built which represtent a dashboard for running...
18 Jun 2014 by Adwaitam
I am working on an application having ClickOnce Deployment implemented. When I am going to check the availability of newer version programmatic-ally (using C#) it gives me exception like Application not installed?One more point - while debugging the value of...
18 Jun 2014 by ashok rathod
You are getting exception that application not installed because it will going to check that application is installed on local machine or not ... if not installed then it might get you issue.And for resolving issue related to ApplicationDeployment.IsNetworkDeployed remains false because in...
27 Jun 2014 by Abhinav S
In general, you will not face any issues in building a .Net 2.0 dll in .Net 4.0..Net is backward compatible.
27 Jun 2014 by Raul Iloc
You should target .NET 4.0 without problem; some small problem could occur in the process of converting the solution (and its projects) from an older version (VS2005 that use .NET 2.0) to a new Visual Studio version (VS2010 for .NET4.0).
27 Jun 2014 by Sergey Alexandrovich Kryukov
Just change the target and see what happens. Few types/members are made obsolete. Try to get away from non-generic collections (additionally).—SA
11 Jul 2014 by Member 10420430
I am using ClickOnce for deployment of my project. My solution contain 2-3 projects and I am using reference of project in my main project. I would like to know how to add App.config file in installed location.I am getting "configuration section for logging cannot be found in the configuration...
21 Jul 2014 by Valery Possoz
Hello,I have an issue with ClickOnce on an ASP.Net site.When the users click a link I redirect to a ClickOnce application:HttpContext.Current.Response.Redirect(url, False)HttpContext.Current.ApplicationInstance.CompleteRequest()The url is the ClickOnce application deployment...
3 Oct 2014 by Roland gr
I am getting a really strange issue. I have ClickOnce application which i deploy manually to clients running many different versions of windows. The issue I am facing is that on the machines running Windows Server 2012 and Server 2012 R2 the ClickOnce app often asks to be installed. What I mean...
30 Oct 2014 by Kschuler
I had an application that I created using Visual Studio 2010 which had a prerequisite of the 32 bit version of SAP Crystal Reports Runtime Engine for .NET Framework 4.0. (Appears to be version 13.0.2) Now for the same set of customers I want to create an application using Visual Studio 2012...
28 Dec 2014 by Ravi Kanasagra
I am learning clickonce deployment and created a POC console application. I have selected 2 separate folders, one for Publish and another for install. I have used shared folder as install folder. When I published this POC application using publish wizard, I found setup.exe, one manifest file...
28 Jan 2015 by Member 10846480
i have made a vs2012 c# clickonce application.in the project in application file, i have include more dll in publish status(default was prerequisite auto) to prevent error "assembly must be strong signed in order to be marked as a prerequisite".as soon as i have changed all prerequisite in...
30 Jan 2015 by Abhinav S
You can give any product name as described here - ClickOnce - Quick steps to Deploy, Install and Update Windows Based Client Applications[^].
1 Feb 2015 by Member 10846480
i'd like to create a clickonce installation for my apllication in VS2012 c#.my main project (startup project) doesn't include all projects reference because uses project dependencies. My output release is made through post build action. These post build actions create a release output tree...
20 Feb 2015 by theskiguy
I am pretty new with the dealing with certificates so please bear with me. I have a certificate that I created via MakeCert a while ago that I use when I deploy my VB.net apps via click once. These apps are used by close to 50 people within my company. When I created the certificate, I used...
20 Mar 2015 by Gocoolprasad
http://stackoverflow.com/questions/23239460/clickonce-deployment-auto-update-is-not-working[^]
5 Apr 2015 by amazingavis
Hi I have a scenario here can anyone sort out this..I performed a button click in a class and its working fine OK.but I want to find that whether that button is clicked again when an event is fired. If i find that button is clicked then i have to stop its action.