Reputation: 3327
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\
Upvotes: 4
Views: 8827
Reputation: 1273
As this turned up quite high in the Google results - anyone looking to put the file onto a drive that is not the Windows volume (ie a network drive, or if Windows is not on C drive):
Follow the answer provided by @Cosmin above (add special folder in installer's file system), but put the literal drive path in.
Eg set DefaultLocation to c:\MyApp
or z:\desired\location
.
Upvotes: 3
Reputation: 21436
You can try using the WindowsVolume property:
[WindowsVolume]
Upvotes: 7