PDA

View Full Version : How to specify drive for Folders



ljensen
05-30-2008, 02:31 PM
I am creating a MSI Factory installer for an app for which the app can go to one drive and the data to another. The user doing the install chooses which drive for each via a VolumeSelectCombo control on an MSIF Dialog.

I've used the Folders option to specify which folders particular Components get installed into. Some of those components go to the app drive, others go to the data drive. Sometimes those are the same drive.

My question is, how do I specify the correct drive for a MSIF Folder structure to get written to?

Adam
06-11-2008, 01:18 PM
Here are the instructions:

1) Go to Project -> Settings -> Properties and add a new one. Name it MSIFACT_INSTALLDIR2, make the value INSTALLDIR2
2) Now go to Project -> Folders. Add your secondary set of folders. For example SourceDir -> Widgets. Make the folder ID INSTALLDIR2. Make this your root folder and add any subfolders that are needed.
3) Now point the files that go to this drive to the appropriate folder.
4) Now in your 'Combo drive select' make it an indirect property mapped to MSIFACT_INSTALLDIR2.

This same concept would be the same for your INSTALLDIR for your other set of files.