VS安装项目:在不同目录中安装文件 [英] VS Setup project: install files in different directories

查看:143
本文介绍了VS安装项目:在不同目录中安装文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Visual Studio安装项目.我想将我的文件之一安装到驱动器C上的某个目录中.我该怎么做?

I have Visual Studio Setup project. And I want to install one of my file to some directory on drive C. How am I supposed to do it?

一个例子:

我要在C:\ MyApp中安装我的应用程序.还有一个文件settings.ini到C:\ Settings \ MyAppSettings \

I'm installing my app in C:\MyApp. And one file, settings.ini, to C:\Settings\MyAppSettings\

推荐答案

您可以尝试使用

  • 转到文件系统编辑器
  • 右键单击目标计算机上的文件系统"树项,然后选择添加特殊文件夹"->自定义文件夹"上下文菜单
  • 将新文件夹重命名为友好名称,例如"C Drive"
  • 选择文件夹
  • 在其属性"窗格中,将 DefaultLocation 设置为[WindowsVolume]
  • 在此自定义文件夹中添加所需的文件夹结构(MyApp,设置等)
    • go to File System Editor
    • right-click the "File System on Target Machine" tree item and select "Add Special Folder" -> "Custom Folder" context menu
    • rename the new folder to something friendly, for example "C Drive"
    • select the folder
    • in its Properties pane set DefaultLocation to [WindowsVolume]
    • in this custom folder add the folder structure you want (MyApp, Settings etc.)

    这篇关于VS安装项目:在不同目录中安装文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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