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.
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.