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: Get IIS version
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 30, 2011
08:17 AM
Get IIS version
I upgraded InstallShield from version 12 to 2011 Premier and get the following error when compiling:
'IISRTGetIISVersion' : undefined identifier
This function works fine in version 12, how to fix it for version 2011?
Thanks in advance.
'IISRTGetIISVersion' : undefined identifier
This function works fine in version 12, how to fix it for version 2011?
Thanks in advance.
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 30, 2011
08:31 AM
Just add
\Script\IISRuntime\Lib\IISRT.obl
in Build settings (Build\Settingz menu)
in Build settings (Build\Settingz menu)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 30, 2011
08:44 AM
What about, if you use this notation?
\Script\ifx\Lib\ifx.obl,\Script\ISRT\Lib\isrt.obl,\Script\Isrt\Lib\IISRT.obl
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 30, 2011
08:48 AM
No change, I get the same error message.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 30, 2011
09:15 AM
Try this:
prototype GetIISVersion(BYREF NUMBER, BYREF NUMBER);
function GetIISVersion(nIISMajor, nIISMinor)
STRING svResult;
NUMBER nvType, nvSize;
begin
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
if RegDBGetKeyValueEx ("Software\\Microsoft\\InetStp", "MajorVersion",
nvType, svResult, nvSize) < 0 then
nIISMajor = 0;
nIISMinor = 0;
else
StrToNum(nIISMajor, svResult);
RegDBGetKeyValueEx ("Software\\Microsoft\\InetStp", "MinorVersion",
nvType, svResult, nvSize);
StrToNum(nIISMinor, svResult);
endif;
end;
Now you have nIISMajor and nIISMinor.
prototype GetIISVersion(BYREF NUMBER, BYREF NUMBER);
function GetIISVersion(nIISMajor, nIISMinor)
STRING svResult;
NUMBER nvType, nvSize;
begin
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
if RegDBGetKeyValueEx ("Software\\Microsoft\\InetStp", "MajorVersion",
nvType, svResult, nvSize) < 0 then
nIISMajor = 0;
nIISMinor = 0;
else
StrToNum(nIISMajor, svResult);
RegDBGetKeyValueEx ("Software\\Microsoft\\InetStp", "MinorVersion",
nvType, svResult, nvSize);
StrToNum(nIISMinor, svResult);
endif;
end;
Now you have nIISMajor and nIISMinor.