IIS Setup project - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

spsjeremy
Posts: 2
Joined: Wed Oct 13, 2010 9:06 pm

IIS Setup project

Hello,

I have a somewhat complicated website that I would like to deploy using Advanced Installer. I have downloaded the demo and I can't seem to figure out how to achieve the results I want if they are even possible. I will outline below what I need to do and if possible could someone please provide some guidance.

1. If Windows XP install as the "Default Web Site". If Vista, 7, or Server ask to create a new site or use an existing site.
2. Add script mappings to .NET Framework DLLs if Windows XP. Our reporting control requires 3 script mappings to aspnet_isapi.dll. Advanced Installer only seems to let me do mappings to files in the project.
3. Run a 3rd party tool from within the setup program that will gather information and pass it back to the setup program.
4. Use the information from 3 to create a virtual directory in the web site.
5. Modify an XML file in the web site's bin directory with information from step 3 above.

Any help would be totally awesome.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: IIS Setup project

Hi,

Thank you for your interest in Advanced Installer and welcome to our forums.
. If Windows XP install as the "Default Web Site". If Vista, 7, or Server ask to create a new site or use an existing site.
Please note that you cannot install a web site as the Default Web Site. This is automatically created by IIS when the server is installed.

Simply go to IIS page and create a new web site. Set its name to "[MY_WEB_SITE]". Now go to Dialogs page and add an edit box on a MSI with the property [MY_WEB_SITE]. Here is an example that could help you.
Add script mappings to .NET Framework DLLs if Windows XP. Our reporting control requires 3 script mappings to aspnet_isapi.dll. Advanced Installer only seems to let me do mappings to files in the project.
You can create a copy of the site configured which will be installed only on XP. To condition the site installation only for XP you need the following condition:

Code: Select all

VersionNT = 501
Run a 3rd party tool from within the setup program that will gather information and pass it back to the setup program.
What you want to do is to run a custom action. The only custom action type that will allow you to pass data to the installer or receive data from it is a C++ DLL or VBScript.
Information can be passed through public properties, which you can access as see in the above examples.
Use the information from 3 to create a virtual directory in the web site.
You will use the property like in the first example, [MY_VIRTUAL DIR_NAME]. I assumed that you would like to set programatically the name of a virtual directory.
5. Modify an XML file in the web site's bin directory with information from step 3 above.
I assume you are referring to the file web.config. Here is another forum post that could help you.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
spsjeremy
Posts: 2
Joined: Wed Oct 13, 2010 9:06 pm

Re: IIS Setup project

Thanks for the reply. Regarding the website creation, IIS in Windows XP only allows for a single website to be present. So how will creating a new site work?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: IIS Setup project

Hi,
IIS in Windows XP only allows for a single website to be present. So how will creating a new site work?
If just created a simple package that installs a web site on my test machine (XP SP3) and the new site from my package installed correctly, next to the Default Web Site.

Are you telling that you cannot install another web site on your XP machine? If so, have you tested this on several machines?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”