Christian Hayter
Christian Hayter

Reputation: 31071

Detect whether certain IIS features are present from InstallScript

I have an InstallScript project written in InstallShield 2010, which, amongst other things, shells out to several .NET MSI installers that install web apps. If any of these web apps are selected for installation by the end user, I need to check for the following optional IIS features from InstallScript code before allowing the install to proceed:

Can anyone point me in the right direction please? Ideally I'm looking for registry values that I can check directly from InstallScript code, but I guess some kind of WMI or COM check would be OK as well.

PS: In case it's relevant, we need to support all versions of IIS from 5.1 onwards at this time. If 5.1 support is a problem, we may consider dropping it if we have to.

Upvotes: 0

Views: 1723

Answers (1)

Lex Li
Lex Li

Reputation: 63298

Microsoft provides Powershell cmdlets for IIS 7,

http://technet.microsoft.com/en-us/library/cc732757.aspx

But for IIS 5.* and IIS 6, you are almost on your own (have to scan registry keys or %windir%\system32\inetsrv folder).

Upvotes: 1

Related Questions