How to detect IIS version using C#?

后端 未结 11 1860
栀梦
栀梦 2020-11-30 02:17

How to detect IIS version using C#?

Update: I meant from a winapp (actually the scenario is developing a custom installer that wants to check the version of the inst

11条回答
  •  情书的邮戳
    2020-11-30 03:05

    I would just check the version of the OS: xp has IIS 5.1, Server 2003 has IIS 6 and vista/Server 2008 has IIS 7.

    Here's how to check the version of the OS.

提交回复
热议问题