Summary
Internet Information Services support was added to InstallScript project types beginning with InstallShield X. This functionality allows you to configure and install web sites and virtual directories. Specifically, you can statically set the port number of your web site through the InstallShield IDE. However, you may want to set the port number dynamically through script. This article explains how this can be done in an InstallScript project type. NOTE: This does not apply to an InstallScript MSI project type.Synopsis
Internet Information Services support was added to InstallScript project types beginning with InstallShield X. This functionality allows you to configure and install web sites and virtual directories. Specifically, you can statically set the port number of your web site through the InstallShield IDE. However, you may want to set the port number dynamically through script. This article explains how this can be done in an InstallScript project type. NOTE: This does not apply to an InstallScript MSI project type.
Discussion
To dynamically set the Port Number property of the web site you are about to install, follow these steps:
- In your InstallScript project, select the Files and Folders view, under Application Data > Files and Folders.
- Underneath the Destination Computer node, right-click the Script-defined Folders node and select New Folder to create a new script-defined folder variable, for example, <PORTNUMBER>. You will use this script-defined folder variable to dynamically set the port number for your web site.
- Open the Internet Information Services view, under Server Configuration > Internet information Services.
- Select the web site you want to configure and a property sheet for that web site should appear to the right.
- Change the Port Number property from the default value of 80 and replace it with the script-defined folder variable you created, for example, <PORTNUMBER>. The script-defined folder variable is case sensitive.
- Select the InstallScript view, under Behavior and Logic > InstallScript.
- In your setup.rul file, add custom code to dynamically determine the port number you want to install. This can be done through a simple dialog or by some other means.
- Use the InstallScript function TextSubSetValue() to assign the port number value to the script-defined folder variable you created. Because the web site is installed during data transfer, make sure your call to TextSubSetValue() is made in a script event that occurs before data transfer, for example, OnFirstUIBefore.
NOTE: For DevStudio 9 InstallScript projects, you can use the function FeatureSetTarget() instead of TextSubSetValue().
Additional Information
Related Articles
How to set a default server port number in license file using Flexnet operations 6Number of Views 6X: Scan commit fails with error 'the port number of this URI is not set at com.palamida.workspace.ScanServiceImpl.commitS… 4Number of Views Getting Windows Installer Property in InstallScript 4Number of Views Failing to Open the TCP Port Number in the License 7Number of Views Getting and Setting a Property From InstallScript 8Number 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