Visual Studio安装设置 [英] Visual Studio Installation Setup
问题描述
大家好,
我尝试使用Visual Studio安装向导创建安装设置.我的问题是我想创建一个文件夹并在该文件夹内复制文件,该文件夹应在路径"C:\ Users \ teller2 \ AppData \ LocalLow"下创建.文件夹和文件应在该特定安装机器上的每个用户帐户下创建.
基本上我想在用户appdata \ locallow文件夹下创建一个文件夹
任何人都可以提出任何建议.
预先感谢您.
注意:我在安装程序中添加了名为字典"的CUSTOM FOLDER,并打开属性窗口,然后尝试
将TARGETDIR设置为
"Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)+ \ AppData \ LocalLow"
但这给了我错误.
谁能告诉我如何为自定义文件夹分配TARGETDIR
Hello All,
I trying create a installation setup using visual studio setup wizard.My problem is that i want to create a folder and copy a file inside the folder, folder should be created under path "C:\Users\teller2\AppData\LocalLow". Folder and file should be created under each user account on that particular installation machine.
basically i want to create a folder under users appdata\locallow folder
Can anybody give any suggestion.
Thanking you in advance.
Note : I have added CUSTOM FOLDER named it as Dictionary in setup and open the property window and try to
set the TARGETDIR as
"Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)+\AppData\LocalLow"
but it giving me error.
can any body tell me how to assign the TARGETDIR for custom folder
推荐答案
使用Environment.SpecialFolder
参见此处: ^ ]
Use Environment.SpecialFolder
see here : http://msdn.microsoft.com/en-us/library/system.environment.specialfolder.aspx[^]
转到此链接
http://social.msdn.microsoft.com/Forums/zh/vssetup/thread/8f7a3d05-a2df-41ac-bacd-e4ab4a289578 [
Go this link
http://social.msdn.microsoft.com/Forums/en/vssetup/thread/8f7a3d05-a2df-41ac-bacd-e4ab4a289578[^]
这篇关于Visual Studio安装设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!