在Visual Studio 2012中设置ClickOnce安装文件夹URL [英] Settting the ClickOnce installation folder URL in Visual Studio 2012
问题描述
在 Visual Studio 2012 中,我正在尝试在
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屋!