Summary
When setting a target path to a script-defined folder, how can the value be accessed at run-time?
Question
When setting a target path to a script-defined folder, how can the value be accessed at run-time?
Answer
A component destination is created by naming a script-defined folder: Setup Design > Feature > Component > Destination > Browse, Create,... > Script-defined > (Right Click) > New > <SAMPLEDIR>
The path to SAMPLEDIR can be set in Installscript by:
szValue = <TARGETDIR> ^ "Sample Directory"; //Can be any directory path.
TextSubSetValue ( "<SAMPLEDIR>", szValue, FALSE ); //Sets the script-defined folder.
The recommended way to access the run-time value of SAMPLEDIR is to use the following function:
TextSubGetValue("<SAMPLEDIR>", szValue, FALSE, FALSE); //szValue now contains the path.
Additional Information
For additional information on script-defined folders, see the Help Library topic Destination Folders.
For additional information on TextSubSetValue, see the Help Library topic TextSubSetValue.
Related Articles
PowerShell script to monitor the log files generated and deleted in a folder 12Number of Views Creating a Custom Destination Path 10Number of Views Prevent Installer from Installing into Non-Empty Folder While Allowing Installation When Folder Does Not Exist 4Number of Views Unable to See or Access Mapped Path During Installation 16Number of Views The Folder Path Contains an Invalid Character 6Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
|
FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513
(toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367
(toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895
2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago