PDA

View Full Version : Multiple Targets



kaneohe
08-08-2012, 05:47 PM
Project Type: InstallScript

Our product needs to have files deployed into two separate folders that will not have any parent/child relation. One of them I'm happy to use TARGETDIR. How would I go about setting the destination for the other set of features/components?

For example:

Feature1/Component1 - TARGETDIR, C:\Program Files\My Company\My Product
Feature2/Component2 - WWWDIR, C:\inetpub\wwwroot\MyWebSite

How would I go about doing this in the script code? I can manage the UI elements easily enough.

joshstechnij
08-09-2012, 04:54 PM
Assuming you've already defined these additional folders in the IDE, the script function FeatureSetTarget (http://helpnet.flexerasoftware.com/installshield19helplib/Default.htm#StartTopic=Subsystems/installshield19langref/helplibrary/LangrefFeatureSetTarget.htm) can be used to change the target path referenced by the folder name. If you only need these to be changed in a first time install, the calls to FeatureSetTarget can be made in the OnFirstUIBefore event in your script, perhaps after prompting a user for a desired path if needed.