Summary
Create a Custom Destination PathSynopsis
This article applies to InstallScript projects and explains how to create a custom destination path using script-defined folders or public properties.
Discussion
DevStudio 9.x and later users
InstallScript MSI Projects
Follow these steps to create a custom destination path using public properties:
- Open the Components view, under Organization.
- Select a component to create a custom destination path.
- In the Components property window, select the value for the component?s Destination property.
- Click the drop down and select "Browse, create, or modify a directory entry?"
- In the Browse for Directory window, select the Destination Computer.
- Click the Insert (Ins) key and name the folder, for example My Directory.
- Set the Directory Identifier to a public property (all capitol letters), for example MY_CUSTOM_PATH.
- Make sure to select the new folder My Directory and then click OK.
To define the location of the public property, in the OnFirstUIBefore event handler function, after the begin statement, call the function FeatureSetTarget. For example:
FeatureSetTarget ( MEDIA , "MY_CUSTOM_PATH" , TARGETDISK ^ "customfolder" );The third parameter of this function should be the custom destination path.
InstallScript Projects
Follow these steps to create a custom destination path using script-defined folder:
- Open the Components view, under Organization.
- Select a component to create a custom destination path (script-defined folder).
- In the Components property window, select the value for the component?s Destination property.
- Click the drop down and select "Browse, create, or modify a directory entry?"
- In the Browse for Directory window, select Script-defined Folders.
- Click the Insert (Ins) key and name the folder, for example <MY_CUSTOM_PATH>.
- Make sure to select the new script-defined folder <MY_CUSTOM_PATH> and then click OK.
To define the location of the script-defined folder, in the OnFirstUIBefore event handler function, after the begin statement, call the function FeatureSetTarget. For example:
FeatureSetTarget ( MEDIA , "<MY_CUSTOM_PATH>" , TARGETDISK ^ "customfolder" );The third parameter of this function should be the custom destination path.
Professional 7.x and 6.x users
Follow these steps to create a custom destination path using script-defined folder:
- Open the project workspace?s File Groups pane.
- Select a file group to create a custom destination path (script-defined folder).
- In the File Groups property and value window, double-click the file group?s Destination property.
- In the Destination Properties window, select Script-defined Folders.
- Click the New Folder button and name the folder, for example <MY_CUSTOM_PATH>, then click OK.
To define the location of the script-defined folder, in the OnFirstUIBefore event handler function, after the begin statement, call the function ComponentSetTarget. For example:
ComponentSetTarget ( MEDIA , "<MY_CUSTOM_PATH>" , TARGETDISK ^ "customfolder" );The third parameter of this function should be the custom destination path.
Additional Information
For more information, see Help Library topic FeatureSetTarget.Related Articles
Creating a Custom ICE with InstallShield 3Number of Views Create a new analytics report and add a custom widget 6Number of Views Creating a Custom Action that Displays a Property 3Number of Views What fields are available when creating a custom report? 8Number of Views Create a custom role for BDNA and BDNA_PUBLISH 11Number 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. | |
Case id: 00001065
Activity: Status change: 2 hours ago