clickonce

Adding Files to a Click Once Deployment

不羁岁月 提交于 2019-11-27 01:19:54
I've got an application that I'm moving over to ClickOnce and the app has a moderately sized data folder with hundreds of files that I need to inlcude in the deployment. The folder needs to be in the same place relative to the EXE after deployment. I've seen several suggestions on how to do this but there doesn't seem to be a agreed upon method for doing this. Any suggestions would be great - Thanks! One good way of doing this is: Create a folder under the app in VS name e.g. "datafiles" Add all files to that folder using Add as link in the dialog box after selecting Add existing item on the

MSBuild doesn't respect PublishUrl property for my ClickOnce app

被刻印的时光 ゝ 提交于 2019-11-27 01:18:57
问题 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

Persisting app.config variables in updates via Click once deployment

旧巷老猫 提交于 2019-11-27 00:58:17
问题 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? 回答1: Do you have the "Applications should check for updates"

What alternatives are there to ClickOnce?

元气小坏坏 提交于 2019-11-27 00:55:22
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? Mark 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 deployed using the Visual Studio deployment project. Is it limited? Yes. It is also very simple to

ClickOnce deploy a Windows Service?

心已入冬 提交于 2019-11-26 22:53:10
问题 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. 回答1: 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

ClickOnce error: Value does not fall within the expected range

瘦欲@ 提交于 2019-11-26 22:20:37
问题 Getting this error on ALL ClickOnce application launches for a certain user. This started happening after a version upgrade (but happens to no one else). I've tried subsequently changing the version number, add/remove, registry scrub, clearing Local Settings\Apps folder, etc... Still no luck. This article points to a user profile corruption, but I recreating this user isn't an option. Are there any other ideas on cleaning this up? PLATFORM VERSION INFO Windows : 5.1.2600.196608 (Win32NT)

How do I dictate the destination folder of a clickOnce application?

对着背影说爱祢 提交于 2019-11-26 22:04:25
问题 How do I dictate the destination folder of a clickOnce application? 回答1: This is not possible with ClickOnce. ClickOnce applications are always installed in the Apps subdirectory of local application data. 回答2: As a further to the above, this is a security feature. Allowing websites to install software to arbitrary locations on someone's harddrive somewhat automatically is a bad idea. 回答3: One Click application directly installs into the user profile directory. There is no way you can install

Install ClickOnce without running

喜欢而已 提交于 2019-11-26 21:49:12
问题 When you install a ClickOnce application, the program runs after the install. Is it possible to install without running? I know I can use a setup and deployment project and create an installer, but I'd prefer to use ClickOnce. 回答1: I guess you could fake it. Introduce an "IsInstalled" boolean property, defaulted to false. Then in Program.cs, change your Main() method to look like this: [STAThread] static void Main() { Application.EnableVisualStyles(); Application

How to move a ClickOnce deployment package

萝らか妹 提交于 2019-11-26 19:38:41
问题 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

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

给你一囗甜甜゛ 提交于 2019-11-26 19:25:43
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 included when using ClickOnce, but that still installs the application onto the user's computer. Is