Hello,
I'm afraid we don't have out of the box support for this requirement. All launch conditions are evaluated and triggered at the very beginning of the installation setup.
However, as a workaround, you can remove the IIS launch condition added in your project and create and use your own
custom action to check if IIS is installed and save the result check into a
property. Then you can add a
"Display a specific child dialog" event on the [Next] button which will pop up while the related feature is selected and the IIS is not installed, thus preventing the installation without IIS installed.
As another approach, more straight forward, you can add IIS as a "Windows Feature Bundle" to your setup (this way will be installed by your setup package) and condition the IIS bundle to be installed only when the related feature is deployed. Just go to "Prerequisites" page and add a new "Windows Feature bundle" configured to enable the "IIS" Windows feature. Use in the "Condition" field a condition like this:
Code: Select all
((&MyWebFeature = 3) AND NOT (!MyWebFeature = 3))
Let us know if this helped, otherwise please give us more details about your scenario.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging