cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bobmcm461
Level 6

Changing INSTALLDIR on the Fly

I'm working on an Installscript MSI package, and I have been given a requirement that several components need to be installed in a different location that are to be user definable. Is there a way to change the INSTALLDIR per component so that I can prompt the user where he wants a particular component to be installed, and then install the files to that location. I tried changing INSTALLDIR in the Installing and Installed events, but the files were all installed in the same directory.

Robert McMahan
robert.mcmahan@siemens.com
Labels (1)
0 Kudos
(2) Replies
gayathrim
Level 4

Hi Robert,

You can use FeatureSetTarget for setting different paths to different components.

Thanks,
Gayathri
0 Kudos
bobmcm461
Level 6

I'll look into this. We ended up going a different route. We created installations for each feature, and created a master installer to execute each of the installations. This is working well and as each feature can also stand on it's own it allows the users to install them seperatly if desired.

Robert Mcmahan
0 Kudos