ClickOnce应用程序取代目前安装fliles [英] ClickOnce application replace current installed fliles

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

问题描述

通过ClickOnce应用程序,是有可能创造一个新的版本时替换当前的文件或在不同的目录安装?因为我得到的错误是:




,因此无法与
相同标识的​​应用程序已经安装到安装此应用程序。安装此应用程序,
要么修改此应用程序或卸载
预先存在的应用程序的清单版本。



解决方案

由于错误消息说,有两种选择。



首先,你作为一个开发商应该修改的ClickOnce的版本号表现。这是在项目设置中的ClickOnce选项卡来完成。需要注意的是ClickOnce版本没有任何共同之处与组件(组件)的版本。



另一个选择是卸载应用程序,不幸的是,这可能需要手动完成。你必须找到ClickOnce部署文件夹( C:\Users\username\AppData\Local\Apps\2.0 ),并手动删除所有文件夹的内容。这也可以通过调用

  RUNDLL32 dfshim CleanOnlineAppCache 


命令。


With ClickOnce applications, is it possible to replace the current files or install in a different directory when creating a new version? Because the error I get is:

Unable to install this application because an application with the same identity is already installed. To install this application, either modify the manifest version for this application or uninstall the preexisting application.

解决方案

As the error message says, there are two options.

First, you as a developer should modify the version number of the ClickOnce manifest. This is done at the ClickOnce tab of the project settings. Note that ClickOnce version has nothing in common with your assembly (assemblies) version.

Another option is to uninstall the application and unfortunately, this probably has to be done manually. You have to find the ClickOnce deployment folder (C:\Users\username\AppData\Local\Apps\2.0) and manually delete all folder contents. This can also be done by invoking the

 rundll32 dfshim CleanOnlineAppCache

command from the commandline.

这篇关于ClickOnce应用程序取代目前安装fliles的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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