Problem with installation prerequisite

Asked

Viewed 137 times

3

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

I was able to put Iisexpress 7.5 as a prerequisite:

inserir a descrição da imagem aqui

However, when trying to install the application on a computer that has Iisexpress 10, installing Iisexpress 7.5 is aborted, and my application is not installed. When I removed IIS10, I was able to install the 7.5 so the application.

How to make the installer not install IIS 7.5 if you already have 10?

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 it is a bug that will be solved soon, but in the meantime you can manually edit Launch condition, as described here: http://visualstudio2010yahya5.blogspot.ca/2015/08/iis-launch-condition-in-websetupproject_21.html

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 Lauch Contidion Editor launch conditions

Probably Voce will burn the formula:

 (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")
  • This link may be a good suggestion, but your reply will not be valid if one day the link crashes. In addition, it is important for the community to have content right here on the site. It would be better to include more details in your response. A summary of the content of the link would be helpful enough! Learn more about it in this item of our Community FAQ: We want answers that contain only links?

  • In my "Launcher condition editor" only ". NET Framework" appears in "lancher conditions". I added the prerequisite of "Iisexpress 7.5" through the "Project/Setup1 Properties" menu. This way is requested the "IIS Express". In "search target machine" there is nothing.

  • I created a web-like installer, and these settings appeared, but the indicated formula did not work yet.

  • I found this article: https://forums.iis.net/p/1229532/2117546.aspx?Re+Unable+to+install+IIS+Database+Manager+x64+under+Windows+10+Pro+x64+ ,check if it helps you, if yes, I translate and complement my answer

  • It didn’t work, it was supposed to, it must be something of the environment. But anyway I won’t need to solve this more for n reasons. I will accept the answer because I brought good examples and references, and it didn’t work maybe for some small detail that I don’t have time to see.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.