Hi All,
I have migrated a web setup project from VS2003 to VS2005. In earlier installer, the installation address dialogue box has the option for port and it does not have the option for Site. i have four web sites running on my different port on my production server. These are:
1. Administrator: 8098
2. Default Web Site: 80
3. Microsoft SharePoint Administration: 5675
4. CAS Web site: 9114.
In VS2003 setup, user has the option to select the port, and in case if CAS Web Site (in IIS) is not running or configured for the different port (lets' say 9116), it shows an error message to the user and does not allow to install web application.
However in VS2005 setup, in Installation Dialouge box, if a user selects the Site Administration (configured on port 8098), it allows to install web application on this web site.
My issue is to restrict user to install web application on CAS Web Site only. I have tried to use installer.cs class and added a check for port, but i am not able to added a check for Site too.
If i add a custom Action for Site (property = TARGETSITE) and pass the site value (CAS) as command line argument it shows me the following error:
Could not access network location CAS Web site\ROOT\CAS.
Please help me to resolve this issue.