clickonce

Use mage.exe to create a ClickOnce deployment manifest for *.deploy files

落爺英雄遲暮 提交于 2019-12-24 00:52:22
问题 How does one use mage.exe to create a ClickOnce deployment manifest, when the application files have the *.deploy extension? Some give up and use MSBuild.exe and the GenerateDeploymentManifest task instead. What if you want to use mage.exe directly? 回答1: If you want to use mage.exe alone, what you need to know is that it cannot be done. At least not with mage.exe alone. Mage.exe does not have a way to build a deployment manifest (*.application file) to download *.deploy files. You must

ClickOnce download fails unless end user has VS2008

烈酒焚心 提交于 2019-12-23 20:21:56
问题 I'm still working on the problem described here, trying to get ClickOnce to work from Visual Studio 2008. I originally assumed the problem was related to the fact that the application I was deploying was upgraded from 2005. But that's not the case. I created a new VS2008 application and deployed it with the same result. I've tried (I think) every possible combination of publish settings (except signing the manifest, which I don't need to do because I'm deploying over an intranet). Most users

How to use Text file with clickonce and be able to update it when updating?

邮差的信 提交于 2019-12-23 17:15:27
问题 I have a project and i want to use clickonce... in the project directory, it has text files on it needed bt my applications. How can i deliver my program with the text files to my end users via clickonce? What if i change the text files, added, and removed, and modify some, how can clickonce help me to replace the old textfiles and main program in my end program. A sample pseudocode, if possible. Tnx Ps: the text files are used by my program but its not part of the source code. 回答1: 1) You

MSBuild Click-Once issues with manifest

浪子不回头ぞ 提交于 2019-12-23 16:49:04
问题 I am getting the following error when I publish my ClickOnce application with MSBuild. I have a pre-publish task which copys the correct app.config file into the project before the publish and this is the only thing that I think could be causing this error. How can I correct this? Following failure messages were detected: File, MyApplication.exe.config, has a different computed hash than specified in manifest. 回答1: You're copying the file after the hash is generated. You need to copy the file

Updating local SQL Server databases with ClickOnce Deployment

帅比萌擦擦* 提交于 2019-12-23 15:24:15
问题 I'm building an application which will use some settings and a local SQL Server. My question is, when it comes time to update the application; will the settings or data be overwritten? What happens if I want to change some tables around in the future? 回答1: Frankly, I've always thought that ClickOnce's way of handling data is dangerous. If you deploy a database with ClickOnce, it puts it in the DataDirectory. Then when you deploy an update to the application, it copies the database forward to

How do I get ClickOnce to uninstall an old version during install of new version?

浪尽此生 提交于 2019-12-23 12:06:46
问题 I have been able to successfully package up my ClickOnce setup into an Inno Setup install script so I could deploy it as a single EXE file to my customers. This process works fine and is relatively painless. Now I have a new version of my application that I want to deploy. I've updated the version, published the changes in Visual Studio 2013 and packaged them up using Inno Setup again. The install process works fine except that the old version of my application remains installed and the file

Could not find file 'obj\Debug\Program.exe.manifest'

痞子三分冷 提交于 2019-12-23 09:56:05
问题 Apologies if this has been answered before. Something happened to my VS2010 SP1 VB.NET environment. I have been successfully working on, compiling and publishing project A via ClickOnce for a while, and then tried to publish project B, and received the error: Could not find file 'obj\Debug\Program.exe.manifest' in file microsoft.common.targets. When I look at the microsoft.common.targets file, i receive > 101 warnings. The Help tells me its error MSBuild Error MSB3113. Now ALL projects behave

ClickOnce error after deploying — has a different computed hash than specified in manifest

丶灬走出姿态 提交于 2019-12-23 08:28:54
问题 Afer deploying my VSTO add-in with ClickOnce, I get the following error message when trying to launch setup.exe: File, Addin.resources.dll, has a different computed hash than specified in manifest. Why is this happening? What can I do to fix this? 回答1: I was able to resolve this just by doing a clean build and publish. For some reason the manifest wasn't updated like it was supposed to. 回答2: I'm using Visual Studio 2013 SP2, and am having the same issue. Regularly, I will create a new release

ClickOnce won't install .NET 4.5

狂风中的少年 提交于 2019-12-23 07:56:15
问题 I’m trying to deploy a WPF application using ClickOnce. The project’s target framework is: “.NET Framework 4.5”. In the VS project properties -> “Publish” -> “Prerequisites” I have checked two items: “Microsoft .NET Framework 4.5 (x86 and x64)” “Windows Installer 4.5” When I try to launch this application on a Windows 7 computer that doesn’t have .NET 4.5 preinstalled I get a popup saying: The installation does not attempt to download/install the framework for me. It simply gives up

Is it possible to pre-generate NGen images so customers don't have to?

ⅰ亾dé卋堺 提交于 2019-12-23 07:41:02
问题 Our app, distributed via ClickOnce, takes 10.8 seconds on average to start up. After running ngen on the .exe (in the directory that ClickOnce installed it into), it starts up in 6.4 seconds on average. This is obviously a huge speedup ( 40% ) and I would like to make use of ngen-ification if possible. Ron's answer to Is it possible to use NGen with ClickOnce deployment? shows how it can be done on the customer's machine, assuming I guess he runs Windows XP , as it wants Administrator rights