clickonce

Is it possible to use NGen with ClickOnce deployment?

爱⌒轻易说出口 提交于 2019-11-27 20:57:41
问题 Is it possible to use NGen with ClickOnce deployment? 回答1: Actually you can use NGEN and clickone, but you are going to need to run the NGEN after the clickonce installation has happened, since NGEN is part of the .NET installation (for 3.5 you should refer to the 2.0 installation). Here is an example, I think it is generic enough for you to use it without changing or doing very little changes to the code (except for the call to your form): static class Program { /// <summary> /// The main

ClickOnce deploy a Windows Service?

强颜欢笑 提交于 2019-11-27 19:58:00
Is it possible to deploy a Windows Service using ClickOnce? If so, how do you achieve this? Currently we have to use a Deployment project, and the installation process could be simplified greatly by using ClickOnce. Marc Gravell AFAIK you can't really use ClickOnce end-to-end to deploy a service; there are issues with both the file locations (ClickOnce installs into a user's profile) and installation (ClickOnce is largely side-effect free). You can, however, write a service as an exe that can self-install/uninstall from the services list, like so ; basically, you write it as as a console exe

How to move a ClickOnce deployment package

梦想的初衷 提交于 2019-11-27 18:52:52
I have a collection of ClickOnce packages in a publish folder on a network drive and need to move them all to another server (our DR machine). After copy/pasting the whole directory and running the setups on the new machine I get an error message stating that it cannot find the old path: Activation of ...MyClickOnceApp.application resulted in exception. Following failure messages were detected: + Downloading file://oldMachine/c$/MyClickOnceApp.application did not succeed. + Could not find a part of the path '\\oldMachine\c$\MyClickOnceApp.application'. Once I change the installation URL to

How can I make a Click-once deployed app run at startup?

只愿长相守 提交于 2019-11-27 18:48:30
How can I make a Click-once deployed app run a startup? The best option I found by searching was to set the Publisher on the app to Startup, so the Start menu shortcut would be placed in the Startup folder, but that seems like a huge hack and I would like there to be a Start menu icon people can find. What options do I have? Don Scott I feel that adding your application to the startup folder is unprofessional. I strongly recommend using a startup registry key to launch your application. Contrary to what a lot of the material on this topic says, it is extremely simple to setup a key to launch a

How do I publish multiple applications / processes with one clickonce deployment?

夙愿已清 提交于 2019-11-27 18:35:00
问题 I need a process with administrator privileges. From this question and answers it seems that there is no better way than to launch a separate process. Since I would rather have a process dedicated to that instead of just launching my original application in a second process just for this one method – I thought I would simply create two projects in one solution in VS2010. However – when trying to deploy it – it seems that I can only publish one of them at a time. That wouldn't do, because I

How do I deploy two ClickOnce versions simultaneously?

∥☆過路亽.° 提交于 2019-11-27 18:21:47
I would like the ability to have a test ClickOnce server for my applications where users can run both the production version and the test version in parallel. Is this possible? I first tried using the following in AssemblyInfo.cs and also changing the name in the ClickOnce deployment though all this achieved was overwriting the users' production version with the test version. Likewise, it did the same when they went back to the production server. #if DEBUG [assembly: AssemblyTitle("Product Name - Test")] #else [assembly: AssemblyTitle("Product Name")] #endif I thought I should also clarify

Click Once - All Users

耗尽温柔 提交于 2019-11-27 18:02:13
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. 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 rights. You will need to create a MSI installer to distribute an application to multiple users on the same

ClickOnce setup.exe fails, but the .application file works fine when using a Windows share for deployment

僤鯓⒐⒋嵵緔 提交于 2019-11-27 17:32:13
问题 I am getting the error of System.Deployment.Application.DeploymentDownloadException when I try to run setup.exe for my ClickOnce application. If run it over the network from its original location it works fine, but if I copy setup.exe from the path on the server I get the error Can not download application. The Application is missing required files. I need the setup as it installs some prerequisites (.NET 4) that the end user may not have. Clicking the details button from the error window

does .Net 4.5 include .Net 4.0

蹲街弑〆低调 提交于 2019-11-27 15:59:25
问题 I am developing a C# desktop application using Winforms. I created an installation strategy using visual studios click once installation tool. Luckily it provides clients to detect, download and setup the related prerequisite components. My question is I started to develop this app with .NET 4.0 and then upgraded it to .NET 4.5 now on the prerequisites list both 4.5 and 4 is checked. i am wondering if i uncheck the .NET 4.0 component would it be alright? does .NET 4.5 include .NET 4.0? 回答1:

Remove ClickOnce from a WinForms app

给你一囗甜甜゛ 提交于 2019-11-27 15:28:48
问题 I have a WinForms application that was going to use ClickOnce. But it turns out ClickOnce won't work for my application, so I'd like to remove it. Only...there doesn't seem to be an obvious way to do this. There's no "Un-ClickOnce" button. Does anybody know what steps I need to take to get my app to be like it was before ClickOnce integrated itself? (I know I can create a new project and import stuff into it, but it seems silly to have to do that, so I'm hoping there's another way.) 回答1: