在Visual Studio 2012中设置ClickOnce安装文件夹URL [英] Settting the ClickOnce installation folder URL in Visual Studio 2012

查看:132
本文介绍了在Visual Studio 2012中设置ClickOnce安装文件夹URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2012 中,我正在尝试在 Windows窗体项目.在发布下的项目属性中,安装文件夹URL 不接受绝对路径.我想将程序安装到我预定义的路径,但是它将安装在以下位置:

In Visual Studio 2012 I'm trying to create an installer on my Windows Forms project. In the projects properties under publish, Installation Folder URL does not accept an absolute path. I want to install the program to a path I predefined, but it installs it under:

C:\Users\[USER_NAME]\AppData\Local\Apps\2.0\71530DHX.EQT\HX2K7H9Z.BVH\i..tion_adf38724ab9c7a8b_0001.0000_dac8e5c01327591a

如何指定 C:\ MyApplication 这样的安装位置?

How can I specify an install location like C:\MyApplication?

推荐答案

为了让ClickOnce管理应用程序的缓存(包括处理更新),它将放置在AppData文件夹下.您将无法将其安装到您选择的文件夹中.这是野兽的本质.

In order for ClickOnce to manage the caching of your application including handling updates, it will put it under the AppData folder. You will not be able to install it a folder of your choosing. It's the nature of the beast.

通常这没什么大不了的.您仍然可以为用户创建一个桌面图标来访问您的程序(如果您对此有所关注):

Normally this isn't a big deal. You can still create a desktop icon for the user to access your program (if that was your concern):

这篇关于在Visual Studio 2012中设置ClickOnce安装文件夹URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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