ClickOne wpf应用程序 [英] ClickOne wpf application

查看:102
本文介绍了ClickOne wpf应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我已经为我的客户端计算机完成了一个wpf应用程序。我已经在我的vss解决方案中添加了一个设置向导,并借助它创建了一个安装文件。现在,如果双击安装文件,则应用程序将安装在相应的系统中。现在我想给该应用程序提供更新版本。所以每当用户开始打开该应用程序时,它应该询问是否安装最新版本...当我浏览网页时我想知道Click One最适合我的要求。我没有通过Click One但我的问题是它只是下载一个.msi文件....这不会起到我的设置的作用..所以我被打到这里......如果有任何有价值的信息存在我的问题请发给我...对于数据库调用,我写了一个wcf应用程序。

Hello,
I have done a wpf application to my client machines. i have added a setup wizard to my vss solution and with help of it i am creating a setup file. Now if the setup file is double clicked the application will be installed in that respective system. Now I want to give update versions to that application.. So whenever the user starts to open that application, then it should ask with a prompt that whether to install the latest version or not... When i browsed in web I cam to know that Click One is best suited for my requirement. I have don't through Click One but my problem is that its just downloading a .msi file.... which will not act as my setup behaves.. So I was strucked here.... IF any valuable info is present about my problem please post it to me... For Database call I have written a wcf application.

推荐答案

ClickOnce是MSI的替代品。他们不混合。使用ClickOnce时,您不创建安装项目,也没有MSI文件。



如果希望能够为所有用户安装应用程序,或者将计算机配置为每当运行应用程序时,都需要MSI(或setup.exe)用户登录(通过将其放在Startup文件夹中)。此类安装需要管理员权限。



仅为当前用户安装ClickOnce应用程序,并且不需要管理员权限即可安装。此外,您(以及执行安装的用户)无法控制应用程序的实际安装位​​置。它进入ClickOnce缓存。实际的目录路径看起来就像一只猫在键盘上诞生了。



要使用ClickOnce,请转到要部署的应用程序的项目设置(而不是您的设置)单击Visual Studio中的发布选项卡。有几个要配置的东西,但最重要的两个是您希望部署应用程序的路径,以及用户将用于访问安装并从中获取更新的路径。您应该发布到本地目录并尝试配置,直到获得所需的结果。



ClickOnce应用程序可以通过程序和功能(也称为''''卸载添加或删除程序')。
ClickOnce is an alternative to MSI. They don't mix. When using ClickOnce, you don't create a setup project and you don't have an MSI file.

An MSI (or setup.exe) is required if want to be able to install the app for "all users", or configure the computer to run the app whenever a user logs on (by putting it in the Startup folder). Such installations require administrator privileges.

A ClickOnce app is installed only for the current user and doesn't require administrator privileges to install. Also you (and the user doing the install) have no control over where the app is actually installed. It goes into the "ClickOnce cache". The actual directory path looks like a cat gave birth on your keyboard.

To use ClickOnce, go to the project settings of the app you want to deploy (not your setup project) and click on the Publish tab in Visual Studio. There are several things to configure, but the two most important are the path where you want the app to be deployed to, and the path that users will use to access the installation and get updates from. You should probably publish to a local directory and experiment with the configuration until you get the desired results.

ClickOnce apps can be uninstalled via 'Programs and Features' (aka 'Add or Remove Programs').


这篇关于ClickOne wpf应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆