Synopsis
This helpnet article gives instructions on how to have the installer automatically detect the next available site number and use it to install the website.
https://docs.revenera.com/installshield31helplib/helplibrary/IISPortSiteNo.htm
However, this will have the installer still attempt to add a new site even if a site with the same name already exists.
Discussion
The following VbScript code can check for an existing website and get the Site Number.
Dim objW3SVC, objIisWebSite
Set objW3SVC = GetObject("IIS://localhost/W3SVC")
For Each objIisWebSite In objW3SVC
If objIisWebSite.Class = "IIsWebServer" Then
MsgBox objIisWebSite.Name ' SiteNumber
MsgBox objIisWebSite.ServerComment ' SiteName
if objIisWebSite.ServerComment = Session.Property("SSWEBSITE") then
Property("SSNEXTNEWSITENUMBER")=objIisWebSite.Name
end if
end if
next
The MSI Property SSWEBSITE should be set the site name being checked.
The MSI Property SSNEXTNEWSITENUMBER is where the site number is stored if the existing Website is found.
This vbscript can be called from a vbscript custom action.
Related Articles
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