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
- :
- Check if IIS 6 or higher is installed
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
May 19, 2009
12:47 PM
Check if IIS 6 or higher is installed
Hi,
I have a InstallScript MSI Project where I want to be able to check if IIS 6 or higher is installed.
I want to display a message if IIS 6 or higher is not installed.
Here is what I am trying to do, but it fails:
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
RegDBGetKeyValueEx ("SYSTEM\\CurrentControlSet\\Services\\W3SVC\\Parameters","MajorVersion",nvType,szReturn,nReturn);
StrReplace(szReturn,".","",0);
StrToNum(nReturn,szReturn);
if (szReturn < "6") then
MessageBox("The Internet Information Server must be version 6.0 or higher", SEVERE);
abort;
endif;
Thanx.
I have a InstallScript MSI Project where I want to be able to check if IIS 6 or higher is installed.
I want to display a message if IIS 6 or higher is not installed.
Here is what I am trying to do, but it fails:
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
RegDBGetKeyValueEx ("SYSTEM\\CurrentControlSet\\Services\\W3SVC\\Parameters","MajorVersion",nvType,szReturn,nReturn);
StrReplace(szReturn,".","",0);
StrToNum(nReturn,szReturn);
if (szReturn < "6") then
MessageBox("The Internet Information Server must be version 6.0 or higher", SEVERE);
abort;
endif;
Thanx.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 27, 2009
06:17 AM
I found help and resolved the problem. This is the code that works.
Thanks to Honolua:
http://community.acresso.com/showthread.php?p=439374#post439374
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
if (RegDBKeyExist("SOFTWARE\\Microsoft\\InetStp") < 0) then
MessageBox("The Internet Information Server must be version 6.0 or higher", SEVERE);
abort;
else
nSize = 10;
if (RegDBGetKeyValueEx("SOFTWARE\\Microsoft\\InetStp","MajorVersion",nvType,szReturn,nSize) < 0) then
MessageBox("The Internet Information Server must be version 6.0 or higher", SEVERE);
abort;
else
if ( StrCompare( szReturn, "6" ) < 0 ) then
MessageBox("The Internet Information Server must be version 6.0 or higher", SEVERE);
abort;
else
if ( StrCompare( szReturn, "7" ) < 0 ) then
iisVersion = 6;
else
iisVersion = 7;
endif;
endif;
endif;
endif;
Thanks to Honolua:
http://community.acresso.com/showthread.php?p=439374#post439374