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

Multiple Targets

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.
Labels (1)
0 Kudos
(1) Reply
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

Assuming you've already defined these additional folders in the IDE, the script function FeatureSetTarget 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.
0 Kudos