This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Multiple Targets
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 08, 2012
05:47 PM
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.
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.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 09, 2012
04:54 PM
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.