开发者

How to add custom folder to install project?

I am trying to deploy a piece of software. It has become apparent that for backward compatibility I need to add a 'c:/abc/system' folder and populate it with some images, how do you do that? c:/abc is not the installation directory but is a data store for the app when running.

Visual Studio 2008 gives you开发者_JS百科 the option of adding a custom folder but we can't seem to find a way to define a custom path, that is not the installation path, in to which to put the folder and the images, so how do you do that?

Thanks.


A solution is to use WindowsVolume property:

  • go to your setup project File System Editor
  • right-click File System on Target Machine tree item and select Add Special Folder -> Custom Folder menu item
  • select this custom folder and go to its Properties pane
  • set DefaultLocation attribute to:

[WindowsVolume]abc\system

During install WindowsVolume will be resolved to your Windows partition, usually C:.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜