This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Getting IIS Version of Machine
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 22, 2013
10:18 AM
Getting IIS Version of Machine
Hello All,
I'm trying to have the install determine if IIS 7 or greater is installed. Is there a simple way to get this information? I see that HKLM\SOFTWARE\Microsoft\InetStp contains a string called VersionString but contains "Version 7.5". Is there a way to get that 7.5 value from to do a version check?
I'm trying to have the install determine if IIS 7 or greater is installed. Is there a simple way to get this information? I see that HKLM\SOFTWARE\Microsoft\InetStp contains a string called VersionString but contains "Version 7.5". Is there a way to get that 7.5 value from to do a version check?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 22, 2013
11:13 AM
The version of IIS is always tied to the version of the OS.
http://support.microsoft.com/kb/224609
So the simplest way is to use the flags in SYSINFO which is the way I do it.
if you want to fish that string out of the registry, then use StrFind and StrSub to get the numerical portion of the string. Then use StrGetTokens with "." to get a szMajor and szMinor. And use StrToNum to convert those to numbers.
I would use SYSINFO.
http://support.microsoft.com/kb/224609
So the simplest way is to use the flags in SYSINFO which is the way I do it.
if you want to fish that string out of the registry, then use StrFind and StrSub to get the numerical portion of the string. Then use StrGetTokens with "." to get a szMajor and szMinor. And use StrToNum to convert those to numbers.
I would use SYSINFO.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 22, 2013
01:20 PM
Thanks, Phil!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 23, 2013
02:11 PM
Also, there is a "MajorVersion" and a "MinorVersion" value under that same key.
You could just have two system searches assign those values to the properties [IIS_VERSION_MAJOR] and [IIS_VERSION_MINOR]. Then create a a "Set a property" CA to set your internal [IIS_VERSION_STR] property to "[IIS_VERSION_MAJOR].[IIS_VERSION_MINOR]"
You could just have two system searches assign those values to the properties [IIS_VERSION_MAJOR] and [IIS_VERSION_MINOR]. Then create a a "Set a property" CA to set your internal [IIS_VERSION_STR] property to "[IIS_VERSION_MAJOR].[IIS_VERSION_MINOR]"