
ajh1.5524897113690513E12 asked a question.
Installing application on non default IIS Web Site.
Hi everyone!
I have the InstallScript project created with InstallShiel 2009 Premier (v.15. SP2), it targets Win. 2003 and 2008 server. Because IIS 7 haven’t ADSI installed by default, I decide to try InstallShield IIS support features instead of my old good scripts.
Setup task - install application files in IIS virtual directory on existing Web Site.
User could choice one of existing sites from UI and provide data to be used to create Virtual directory and physical folder to be mapped to this Virtual Dir. UI resolve all required IIS information:
Web Site name, Id and RootFolder ( for ex. m_strWebSite, m_strWebSiteNr, m_strSiteRoot)
Virtual Directory name and it’s physical folder path for ex. is m_strVirtDir and m_strPhysDir.
Web site properties in IIS design panel set to use substitute variables:
Web Site name:
Site number:
Site Home Directory:
Virtual Directory name:
Application name: (same as VirtDir)
Virtual directory local path:
Both have the same required Installation Component assigned
After collecting of required data I perform Substitution using code:
TextSubSetValue("",m_strWebSite,TRUE);
TextSubSetValue("",m_strWebSiteNr, TRUE);
TextSubSetValue("",m_strSiteRoot,TRUE);
TextSubSetValue("",m_strVirtDir, TRUE);
TextSubSetValue("",m_strPhysDir, TRUE);
Substitution performed properly, I have check that in setup log (.ilg) file.
During installation setup already creates specified Virtual directory under Default Web Site, physical directory structure is correct.
As alternate solution I have tested simple setup with one component and explicitly set non default Web Site name and ID (number). Virtual directory name also was set explicitly. This setup also creates Virtual Directory under default Web Site :confused: .
Any ideas ?
Also, what port number is set in the website contained in your project?
As I mean, the was replaced with user selected, existing site number, let’s say 2. IIS port number in design pane was set to 0, and wasn’t changed during setup. According InstallShield documentation topic Configuring the TCP Port and Site Numbers, this meet item 1 of table. Unfortunately it does not working for me.
I have my setup to work properly only by dynamic setting the Port Nr. I set Port Number in design pane to and substitute it during setup with port of site, selected by user. Looks like Site Number does not work as described in documentation :( .
Is it a bug? Or may be described rules valid only when Port and Site numbers was set during setup design?
I'm installing a VD to a specific folder in an existing web site (ISV folder of the Microsoft Dynamics CRM web site), but then what site number should I set it too? On my test machine it's site number 2, but on an arbitraty machine how can I know?