tserg
Posts: 7
Joined: Wed Oct 06, 2021 5:22 pm

IIS with URL Rewrite module as Prerequisites

Wed Oct 06, 2021 5:31 pm

i need enabled IIS with URL Rewrite module to have my program working.

i enabled Internet Information Services in Available Windows Features pane and IIS URL Rewrite 2.1 in Packages -> Predefined Prerequisites.

it looks like resulting setup launches URL Rewrite module before enabling Windows Features. URL Rewrite module installer is downloaded, run and asks for missing IIS features.

are there any workaround i may implement here?

Liviu
Posts: 1034
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: IIS with URL Rewrite module as Prerequisites

Thu Oct 07, 2021 8:02 am

Hello and welcome to our forums,

You need to set Windows feature turn on/off before installing Prerequisites.

The steps to be followed are:
1. Turn on Windows Feature
2. Install prerequisites
3. Install Main Application

In this case you can create a completely separate setup package only for turning on/off the Windows features. Then you can add this package as a pre-install prerequisite (it should be added before the other prerequisites in the "Prerequisites" page list) to your main project, followed by checking the 'Reboot system after installing this prerequisite' checkbox (that if the IIS needs to reboot to be activated).

Note: The prerequisites from "Prerequisites" page are executed in the order they are added/scheduled in the list. Based on that, you need to move to the top of the list the prerequisite which enables IIS.

Let me know if this helps. If you have any other questions, please don't hesitate to contact us.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

tserg
Posts: 7
Joined: Wed Oct 06, 2021 5:22 pm

Re: IIS with URL Rewrite module as Prerequisites

Thu Oct 07, 2021 2:43 pm

Liviu, thank you for quick response.

i moved IIS URL Rewrite module to the post-install stage. It helps me as i don't need rewrite working during setup procedures.

Liviu
Posts: 1034
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: IIS with URL Rewrite module as Prerequisites

Thu Oct 07, 2021 4:06 pm

You are welcome!

I'm glad everything works as expected now!

Yes, this can work if you don't need the "URL Rewrite" prerequisite during the installation.

If you have any other questions, please don't hesitate to contact us.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”