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
- :
- InstallScript project - changing component destination directory
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
‎Feb 16, 2012
08:01 AM
InstallScript project - changing component destination directory
I have several components that need to be installed to directory A in some circumstances and directory B in others.
[The option of creating 2 different components, each with different destination directories, and then assigning them to 2 different features and then selecting one of the 2 features to install is not an option - long story.]
I really just want to put a variable in the destination block - something line - that has a default value but that I can change in scripting prior to the files being laid down.
I guiess I'm looking for something like the user defined path variables for the destination computer, not the build computer.
Is this possible?
[my hack solution will be to rename the directory after the files are laid down in OnMoved() and before the post processing is started.]
[The option of creating 2 different components, each with different destination directories, and then assigning them to 2 different features and then selecting one of the 2 features to install is not an option - long story.]
I really just want to put a variable in the destination block - something line
I guiess I'm looking for something like the user defined path variables for the destination computer, not the build computer.
Is this possible?
[my hack solution will be to rename the directory after the files are laid down in OnMoved() and before the post processing is started.]
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 16, 2012
12:19 PM
Is something preventing the use of ComponentSetTarget? It sounds to me like this is what you're looking for.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 16, 2012
12:52 PM
Thank you. I did a search in the help for the componentsettarget script command and it doesn't come up (3 items contain the command reference in them) - and no autofinish help either....it is listed only obscurely in the document.