clickonce

Uninstalling a ClickOnce application silently

匆匆过客 提交于 2019-11-28 09:53:10
We have an production application that is deployed using Visual Studio's built-in ClickOnce deployment tool. I am writing a batch file to uninstall the application: rundll32.exe dfshim.dll,ShArpMaintain AppName.application, Culture=neutral, PublicKeyToken=XXXXXX, processorArchitecture=x86 The batch file works and the application's uninstall is called. However, I'm looking to do this silently. I have tried /Q /q /S /s /Silent but with no joy. How can I do this? I do not want to hide the batch file window. Only the ClickOnce window. Since there seemed to be no good solution for this, I

Where can I safely store data files for a ClickOnce deployment?

谁说胖子不能爱 提交于 2019-11-28 09:06:26
I have been using ApplicationDeployment.CurrentDeployment.DataDirectory to store content downloaded by the client at runtime which is expected to be there every time the app launches, however now I've found this changes seemingly randomly if the application is updated. What is the best reliable method for storing user data for the application in click-once deployments? Currently I've been using the following method private const string LocalPath = "data"; public string GetStoragePath() { string dir; if (ApplicationDeployment.IsNetworkDeployed) { ApplicationDeployment ad = ApplicationDeployment

Set registry key through ClickOnce installation

耗尽温柔 提交于 2019-11-28 08:09:54
问题 I need to add my application to the startup and hence, need to set the Registry Key with the Installation path. I have got this working through the Visual Studio Setup project but can't figure out how to do it through a ClickOnce deployment. Anyone know how to set registry keys when using ClickOnce for installation? 回答1: ClickOnce can't do this. If you want your app to start when the user logs in, you have to write code in your application to do it (copy a shortcut to the startup folder, edit

How can I renew my expired ClickOnce certificate?

元气小坏坏 提交于 2019-11-28 08:05:47
I need to make some changes to a ClickOnce application that I haven't touched for over a year and therefore the certificate has expired. I've read that publishing with a new certificate will make the application fail, because it will be signed with a different key. Therefore I think I need to use the same certificate but not sure how to renew it. If you're after a quick solution, then you can "renew" your existing certificate and just give it a longer expiry date. Cliff Stanford has cleaned up the Microsoft "workaround" and made it available as a simple command line exe - available here: http:

.NET Framework 4.0 does not install when 4.5 is already installed

孤者浪人 提交于 2019-11-28 07:17:12
问题 I use Visual Studio 2012 for a WPF project needing (at least) .NET Framework 4.0. I have 4.5 already installed, but people with Windows XP cannot install the application (because 4.5 does not run on Windows XP). I use ClickOnce as the deployment application. When I try to intall version 4.0, I get the error (translated from Dutch so the English version might be a bit different): The same or a higher version of .NET Framework 4 is already installed on this computer How can I fix this? 回答1:

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

跟風遠走 提交于 2019-11-28 06:51:37
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 once (like described here on MSDN ). This implies that the method describe in this link will not work; users will be launching the application using an .appref-ms shortcut in the Start Menu. I haven't been able to find a solution. Is it possible to somehow pass a parameter into the click once application? If so, how? If not, what are some

Problems using MsBuild using command line for Publish Click Once

老子叫甜甜 提交于 2019-11-28 06:29:56
I have Windows application in csproj in my solution, and I want generate Publish using command line (bat, cmd). My script is (I put \r\n for better reading): SET MSBUILD="%SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe" SET CARWIN="..\..\Security.CarWin.csproj" rem msbuild para publish %MSBUILD% /target:rebuild;publish %CARWIN% /p:ApplicationVersion="1.0.0.0" /p:Configuration=release /p:PublishUrl="C:\ClickOnce\CarWin.WebInstall\Publicacion\" /p:InstallUrl="http://desserver/carwinclickonce/Publicacion/" /p:PublishDir="C:\ClickOnce\CarWin.WebInstall\Publicacion\" note: I'll try too using

MSBuild doesn't respect PublishUrl property for my ClickOnce app

故事扮演 提交于 2019-11-28 06:23:15
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 /p:Configuration=Release /p:PublishUrl="C:\Apps\" /v:normal > Log.txt (wrapped for easier reading) when I run the above command it builds and publish the application in the release directory, i.e. bin\release! Any idea why msbuild doesn't respect PublishUrl property in my example above? PS: I tried also different combinations including remove 'Configuration', use 'Rebuild' and

How to sign a ClickOnce application

不问归期 提交于 2019-11-28 05:58:27
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 trusted publisher? How do I install the certificate? Do I have to install it on my development server or does it matter where I install it? How does the whole process work? I don't want to spend 3-5 hundred dollars on a certificate, and install something wrong and be out of luck. Are there good tutorials on purchasing and installing a certificate and

Persisting app.config variables in updates via Click once deployment

十年热恋 提交于 2019-11-28 05:34:07
Every time a new update is released for an application with click once, the variables in the app.config file are destroyed <userSettings> <app.My.MySettings> <setting name="Email" serializeAs="String"> <value /> </setting> <setting name="UserName" serializeAs="String"> <value /> </setting> </app.My.MySettings> </userSettings> How can i prevent that? Is there any way of feching the variables from the previous application version? Mitch Wheat Do you have the "Applications should check for updates" option checked? Have a look at Exploring Secrets of Persistent Application Settings (the section