Problem with installation prerequisite

3

I have an installer project in Visual Studio 2013. One of the prerequisites for the installation is IISExpress 7.5 or higher.

I was able to put IISExpress 7.5 as a prerequisite:

However, when you try to install the application on a computer that has IISExpress 10, the IISExpress 7.5 installation is aborted, and my application is not installed. When I removed IIS10, I was able to install the 7.5 then the application.

How do I not install IIS 7.5 if the installer already has 10?

    
asked by anonymous 04.10.2016 / 15:38

1 answer

6
The problem is that the version check fails, because "10" is less than "7" if you use the string comparison (order 1, 10,11 ..., 100,1000,10000,2,20, 21,3,4,5,6,7)

I believe this is a bug that will be resolved soon, but in the meantime you can manually edit the launch condition, as described here: link

and here: IIS Launch Condition in WebSetupProject fails to detect IIS 10 on Win10

One way to resolve this manually is to use ORCA or use the following method:

Open the Lauch Contidion Editor

You'llprobablyfindtheformula:

(IISMAJORVERSION>="#5" AND IISMINORVERSION >= "#1") OR (IISMAJORVERSION >= "#6") or (IISMAJORVERSION >= "#7" AND IISMINORVERSION >= "#5")

Change it to:

(IISMAJORVERSION >= "#5" AND IISMINORVERSION >= "#1") OR (IISMAJORVERSION >= "#6") or (IISMAJORVERSION >= "#7" AND IISMINORVERSION >= "#5") or(IISMAJORVERSION >= "#10")
    
29.11.2016 / 20:14