clickonce

How do I detect the first time a ClickOnce-deployed application has been run?

房东的猫 提交于 2019-12-17 19:22:24
问题 I have a ClickOnce-deployed application and I'm currently using this to detect the first time a new deployment is being run: if (ApplicationDeployment.IsNetworkDeployed && ApplicationDeployment.CurrentDeployment.IsFirstRun) { // Display release notes so user knows what's new } It seems to works as expected after ClickOnce performs an automatic update. But it doesn't work at all when the user goes to publish.htm on the install site and installs a newer version manually. Is there a way to

How can I roll-back a ClickOnce application?

佐手、 提交于 2019-12-17 17:26:04
问题 Is there a way (hacky will do) to allow a user to go back to a previous version of a ClickOnce network deployed application? I've looked in the docs and API and there seems to be no way. You can selectively choose if you would like to update, but once updated there is, seemingly, no way back. 回答1: ClickOnce will use whatever version you send them. If you send them an old version, they will rollback to that old version. Back in May my buddy David wrote an article on how to do this on a per

Deploying System.Net.Http.dll with ClickOnce

↘锁芯ラ 提交于 2019-12-17 16:22:16
问题 I'm developing an application which is to be deployed with ClickOnce. After downgrading from .NET 4.5 to .NET 4.0 and replacing repairing bad references, now I have problem with deployment package. Some files, most importantly System.Net.Http.dll are not deployed with the application. I've done some checks but can't conclude why exactly this happens. My suspicion is that package is created with expectation that this assembly already exists on target machine. This would be reasonable if target

Click Once - All Users

瘦欲@ 提交于 2019-12-17 15:25:29
问题 How to I configure click-once to install apps for all users. On another forum I got to 'use MSI' - thanks - but how. Also, the first installing user may not be admin - which may be a problem. And I want all users to trigger an update check. No local storage, it's a WPF client to a WCF service. We're XP, internal. 回答1: If you need to install / upgrade for all users on a PC, Clickonce is not an option. Clickonce is meant for installing an application for a single user without administrative

Why doesn't ClickOnce in Visual Studio deploy content files from dependent assemblies?

爷,独闯天下 提交于 2019-12-17 07:30:47
问题 I have a smart client application that is deployed via click once. The problem is that i have content files in dependent assemblies that just don't show up in the published application files dialog in visual studio. This means that everytime I deploy I have to copy all the content files from the application build output directory into the published directory and rebuild the manifests which is a real pain. Why are these files not visible to the publisher in visual studio? 回答1: I seemed to have

How to get folder path for ClickOnce application

为君一笑 提交于 2019-12-17 07:00:40
问题 I need to write a file in the same folder where a console ClickOnce .application (executable file) resides. The folder where it launches from. I tried using Application.StartupPath & Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) but the path is pointing to a subfolder under c:\Documents & Settings . How do I get the path where the .application resides in? 回答1: To find the folder location, you can just run the app, open the task manager (CTRL-SHIFT-ESC), select the app and

What alternatives are there to ClickOnce?

十年热恋 提交于 2019-12-17 06:34:47
问题 I've used ClickOnce a lot over the years, but I have run up against a lot of its limitations. What alternatives are there for web deployment? So far the only one I've been able to turn up is ClickThrough, which is part of WiX now on the back burner. Are there others that have had success? 回答1: After using WiX, NSIS and InstallAware, I have to humbly admit that they were all overkill for what I really need as a software developer. There are no projects that I've done so far which couldn't be

Best way to deploy Visual Studio application that can run without installing

假装没事ソ 提交于 2019-12-17 03:23:26
问题 I wrote a fairly simple application with C#/.NET and can't figure out a good way to publish it. It's a sort of a "tool" that users would only run once, or run every few months. Because of this, I'm hoping that there is a way I could deploy it where it wouldn't need installing to run (it could just be run by double clicking an EXE file straight after downloading). However, it still needs (somehow) to include the correct version of .NET, libraries, etc. so it will run correctly. I know this is

how to deploye C# windows form application developed with sql server express 2012 and crystal report

本秂侑毒 提交于 2019-12-14 04:25:18
问题 I have developed an application in Microsoft Visual Studio 2013. .Net framework 4.5. DBMS i used is sql server 2012 express and for reporting is used Crystal report 13 I want to Create a setup file which can install .net framework, sql server and crystal report on client computer. This setup should be offline and silent . I used click once but it is not working when i choose "Download file same as my application location". I meant offline setup is not working with click once. Second there is

What's the difference between Publish (Click Once) from the context menu and from the Project properties page in Visual Studio 2010?

杀马特。学长 韩版系。学妹 提交于 2019-12-14 03:54:06
问题 I have a Windows GUI client I've written in C# using Visual Studio 2010. When I publish from the project's Property Page it fails whilst it succeeds from the context menu on the project. Does anyone know why this might happen? 回答1: I have an answer for this from the ClickOnce team at Microsoft. When you use the publish option on the build menu, it totally circumvents anything in Visual Studio and uses msbuild directly. If you use the Publish button on the Publish tab, any add-ins that the