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
- :
- Re: How to detect if a Server Role for WebServer(IIS) is installed + features
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
‎Jan 12, 2010
11:20 AM
How to detect if a Server Role for WebServer(IIS) is installed + features
I am creating an InstallScriptMSI project, and I need to a way to verify on a SQL Server 2008 R2 server that
1. a Server Role for Web Server (IIS) has been installed
2. various features have been installed on this server (i.e)
a. .NET Framework 3.5.1 Features
b. WCF Activation
Any help/direction would be greatly appreciated.
1. a Server Role for Web Server (IIS) has been installed
2. various features have been installed on this server (i.e)
a. .NET Framework 3.5.1 Features
b. WCF Activation
Any help/direction would be greatly appreciated.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 18, 2010
01:02 PM
I think the best thing to do is to look for registry keys. This is what I do in one of my projects.
function ScriptingToolsCheck(hMSI)
STRING szKey, szName, svValue, szMsg;
NUMBER nvType, nvSize;
begin
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
szKey = "SOFTWARE\\Microsoft\\InetStp\\Components";
szName = "ManagementScriptingTools";
nvType = REGDB_STRING;
if(RegDBGetKeyValueEx(szKey, szName, nvType, svValue, nvSize) < 0) then
szMsg = "The setup needs IIS Management Scripts and Tools to be installed. ";
szMsg = szMsg + "Please add this role in Server Manager and then run this setup again.";
MessageBox(szMsg, SEVERE);
abort
endif;
RegDBSetDefaultRoot(HKEY_CLASSES_ROOT);
end;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 25, 2011
10:03 AM
Is there any chance that the "Is" function would find the Framework version 3.5 and not 3.5.1? My installer needs 3.5.1, is it possible that only 3.5 would be installed on a Server 2008 or Server 2008 R2 box? The reason I ask is because the Is function does not have a REGDB_KEYPATH_DOTNET_35_SP define.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)