jasonslater2000
Posts: 5
Joined: Wed Jan 31, 2007 5:43 am

prerequisite dependencies, ordering, iis and .net

I am deploying an ASP.NET app

The app depends on both .NET Framework v1.1 and IIS 5.0
In order for .NET to register itself properly with IIS, IIS needs to be installed first.

On the Preprequisites / Launch Conditions page, I have ticked off:
Minimum IIS Version - IIS 5.0
Minimum .NET Version - .NET Framework 1.1

The installer contains the .NET Framework v1.1 installer, which I have specified on the Prerequisites / Software page

However, when installing to a target which has neither IIS nor .NET Framework, the .NET is installing first, then the message that IIS is necessary is installed. Basically, I want the installer to NOT install .NET if IIS is not already installed. How can I do this?

Thanks,
Jason
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Jason,
Basically, I want the installer to NOT install .NET if IIS is not already installed. How can I do this?
I'm afraid that you cannot specify multiple conditions for a prerequisite. We have this on our TODO list and will be available in a future version of Advanced Installer.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
jasonslater2000
Posts: 5
Joined: Wed Jan 31, 2007 5:43 am

Hi Gigi,

Do you know how (or if) I could accomplish this through a manual edit of the .AIP file?

Thanks,
Jason


gigi wrote:Hi Jason,
Basically, I want the installer to NOT install .NET if IIS is not already installed. How can I do this?
I'm afraid that you cannot specify multiple conditions for a prerequisite. We have this on our TODO list and will be available in a future version of Advanced Installer.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Jason,

Just to clarify, the prerequisites are executed first before your main package does. And Launch conditions are executed with your package under "LaunchConditions" standard action.

In the next version of AI which will support launch conditions for the Bootstrapper and also multiple conditions for a prerequisite it will be possible to condition the .Net prerequisite with the existence on IIS.

Kind Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
lubosh
Posts: 11
Joined: Mon Feb 05, 2007 6:22 am

jasonslater2000 wrote:Do you know how (or if) I could accomplish this through a manual edit of the .AIP file?
Go to .NET framework directory and there is a tool called aspnet_regiis.exe

This will register IIS with .NET framework
jasonslater2000
Posts: 5
Joined: Wed Jan 31, 2007 5:43 am

what version is this fix planned for?

Hi Gigi,

What version # is this fix planned for?

Thanks,
Jason

>> In the next version of AI which will support launch conditions for the Bootstrapper and also multiple conditions for a prerequisite it will be possible to condition the .Net prerequisite with the existence on IIS.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Jason,
In the next version of AI which will support launch conditions for the Bootstrapper and also multiple conditions for a prerequisite it will be possible to condition the .Net prerequisite with the existence on IIS.
This will be available in the next version ( 4.8 ) of Advanced Installer scheduled for release this week.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
EricNguyen
Posts: 21
Joined: Sat Feb 17, 2007 1:58 am

Hi Gigi,
Could you let me know how to do it with v4.8.1? And anyway I can install IIS if they have not install it?

Thanks,
Eric
gigi wrote:Hi Jason,
In the next version of AI which will support launch conditions for the Bootstrapper and also multiple conditions for a prerequisite it will be possible to condition the .Net prerequisite with the existence on IIS.
This will be available in the next version ( 4.8 ) of Advanced Installer scheduled for release this week.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Eric,

IIS comes as a Windows component (installed by default) not as a separate setup file. And because of this you can not specify it as prerequisite. What you can do is to create your own custom EXE (that opens the "Windows Components Wizard") ant put it as prerequisite. Also note that the next version of AI will offer support to specify launch conditions for the Bootstrapper.

Hope this helps.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”