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 KB Articles
Q104964Related Articles
Target SVM packages with "Path Applicability" rules 13Number of Views Unable to See or Access Mapped Path During Installation 14Number of Views How and Where to Change the Default Download Folder Path for Package Feed Module 9Number of Views InstallScript and PowerShell: Set Folder Permissions So Only an Administrator Can Access a Specific Folder 10Number of Views SendSoftwareBundle inventory import step reading from ILMT SQL Server database may fail with error: "The given value of ty… 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