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
- :
- IIS Version - InstallScript Project
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
‎Mar 25, 2008
09:01 AM
IIS Version - InstallScript Project
Hi,
I have the following code used in InstallShield 12 and it works ok:
if ( IISRTGetIISVersion( IIS_GET_VERSION_MAJOR ) < IIS_VERSION_MAJOR_MIN_SUPPORT ) then
szMsg = "IIS is not Installed or the Version is not correct, Version 4.0 is required. " + "\nThe setup will now terminate.";
MessageBox(szMsg, SEVERE);
abort;
endif;
I have converted my project from version 12 to version 2008 and now when I compile I am getting the following error messages:
- error C8025: 'IISRTGetIISVersion' : undefined identifier
- error C8025: 'IIS_GET_VERSION_MAJOR' : undefined identifier
I am using a pure InstallScript project.
Does anybody have any ideas?
I have the following code used in InstallShield 12 and it works ok:
if ( IISRTGetIISVersion( IIS_GET_VERSION_MAJOR ) < IIS_VERSION_MAJOR_MIN_SUPPORT ) then
szMsg = "IIS is not Installed or the Version is not correct, Version 4.0 is required. " + "\nThe setup will now terminate.";
MessageBox(szMsg, SEVERE);
abort;
endif;
I have converted my project from version 12 to version 2008 and now when I compile I am getting the following error messages:
- error C8025: 'IISRTGetIISVersion' : undefined identifier
- error C8025: 'IIS_GET_VERSION_MAJOR' : undefined identifier
I am using a pure InstallScript project.
Does anybody have any ideas?
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 15, 2008
12:59 PM
I'm getting the same error. Any ideas InstallShield developers? Did you get this resolved?
sspencer wrote:
Hi,
I have the following code used in InstallShield 12 and it works ok:
if ( IISRTGetIISVersion( IIS_GET_VERSION_MAJOR ) < IIS_VERSION_MAJOR_MIN_SUPPORT ) then
szMsg = "IIS is not Installed or the Version is not correct, Version 4.0 is required. " + "\nThe setup will now terminate.";
MessageBox(szMsg, SEVERE);
abort;
endif;
I have converted my project from version 12 to version 2008 and now when I compile I am getting the following error messages:
- error C8025: 'IISRTGetIISVersion' : undefined identifier
- error C8025: 'IIS_GET_VERSION_MAJOR' : undefined identifier
I am using a pure InstallScript project.
Does anybody have any ideas?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 21, 2008
06:49 AM
I'm not sure if you resolved this issue or not, but I contacted support and they suggested I copy the IISRTGetIISVersion from IS12. That code is below. For my project, I just added the registry check.
function int IISRTGetIISVersion( nFlag )
NUMBER nResult, nVersion, nType, nSize;
STRING szName, szValue;
begin
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE );
if (nFlag == IIS_GET_VERSION_MAJOR) then
szName = "MajorVersion";
elseif (nFlag == IIS_GET_VERSION_MINOR) then
szName = "MinorVersion";
else
return ISERR_INVALID_ARG;
endif;
nSize = -1;
nType = REGDB_NUMBER;
nResult = RegDBGetKeyValueEx("SYSTEM\\CurrentControlSet\\Services\\W3SVC\\Parameters", szName, nType, szValue, nSize);
if (ISERR_SUCCESS != nResult) then
return nResult;
endif;
nResult = StrToNum(nVersion, szValue);
if (ISERR_SUCCESS != nResult) then
return nResult;
endif;
RegDBSetDefaultRoot(HKEY_CURRENT_USER );
return nVersion;
end;
function int IISRTGetIISVersion( nFlag )
NUMBER nResult, nVersion, nType, nSize;
STRING szName, szValue;
begin
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE );
if (nFlag == IIS_GET_VERSION_MAJOR) then
szName = "MajorVersion";
elseif (nFlag == IIS_GET_VERSION_MINOR) then
szName = "MinorVersion";
else
return ISERR_INVALID_ARG;
endif;
nSize = -1;
nType = REGDB_NUMBER;
nResult = RegDBGetKeyValueEx("SYSTEM\\CurrentControlSet\\Services\\W3SVC\\Parameters", szName, nType, szValue, nSize);
if (ISERR_SUCCESS != nResult) then
return nResult;
endif;
nResult = StrToNum(nVersion, szValue);
if (ISERR_SUCCESS != nResult) then
return nResult;
endif;
RegDBSetDefaultRoot(HKEY_CURRENT_USER );
return nVersion;
end;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 09, 2008
09:36 PM
hi Sspencer, can you share how you get your project to work ?
I have added in Build>Settings:
\Script\IISRuntime\Lib\IISRT.obl
and added new row in Directory Editor > Binary Table:
\redist\compressed files\language independent\intel 32\IISRT.dll
But I still got the following error:
- error C8025: 'IIS_GET_VERSION_MAJOR' : undefined identifier
- error C8025: 'IIS_GET_VERSION_MINOR' : undefined identifier
I am using InstallScript project too (InstallShield 2008). Thanks
I have added in Build>Settings:
and added new row in Directory Editor > Binary Table:
But I still got the following error:
- error C8025: 'IIS_GET_VERSION_MAJOR' : undefined identifier
- error C8025: 'IIS_GET_VERSION_MINOR' : undefined identifier
I am using InstallScript project too (InstallShield 2008). Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 09, 2009
08:28 AM
Hi,
Has anybody found a resolution to this problem?
Thanks,
Roger
Has anybody found a resolution to this problem?
Thanks,
Roger
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 12, 2009
01:55 PM
The IISRTGetIISVersion function was an undocumented function that was not intended for general use. The functionality it provided was moved to an internal function that automatically performs a version check for IIS.
You can use the InstallScript registry functions to query the MajorVersion and MinorVersion values contained in the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters if necessary.
You can use the InstallScript registry functions to query the MajorVersion and MinorVersion values contained in the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters if necessary.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)