Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Setup project: install files in different directories

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?

An example:

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

like image 689
Ksice Avatar asked Sep 20 '25 01:09

Ksice


1 Answers

You can try using the WindowsVolume property:

  • 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.)
like image 189
rmrrm Avatar answered Sep 22 '25 15:09

rmrrm