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
- :
- Setup requires IIS when not installing optional IIS component
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 09, 2012
03:09 AM
Setup requires IIS when not installing optional IIS component
We recently added an optional IIS feature to our InstallScript installation and have discovered that if you don't select the IIS feature (as it's optional) you still need IIS installed for the other features otherwise you get an error message that says "This setup requires Internet Information Server 4.0 or higher for configuring IIS Virtual Roots. Please make sure that you have IIS 4.0 or higher."
How do we fix this as we do not want this error to come up when not installing the IIS features? I've found posts regarding MSI projects and custom actions, but we're using InstallScript not MSI so don't have the option to use custom actions.
P.S. We are using InstallShield 2012!
How do we fix this as we do not want this error to come up when not installing the IIS features? I've found posts regarding MSI projects and custom actions, but we're using InstallScript not MSI so don't have the option to use custom actions.
P.S. We are using InstallShield 2012!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 09, 2012
04:51 AM
It appears that I can workaround this issue by overriding the following InstallScript functions like so so that they only do what they do if the feature that has IIS in it has been selected...
It's also odd that we don't get this with another product installation that has a similar selectable IIS feature.
The installation that has the problem has NT Service object components. We know there have been previous InstallShield bugs regarding using NT Service objects and IIS in the same installation so perhaps there are some more bugs still in there.
function int OnIISInitialize()
string szSettingsFile;
string szRuntimeFile;
begin
if (FeatureIsItemSelected(MEDIA, "My Web Feature") = TRUE) then
// Initialize IIS runtime
szSettingsFile = SUPPORTDIR ^ IISRT_INI;
szRuntimeFile = SUPPORTDIR ^ IISRT_DLL;
return IISRTInitialize( szSettingsFile, szRuntimeFile );
else
return ISERR_SUCCESS;
endif;
end;
function int OnIISComponentInstalled(szComponent)
begin
if (FeatureIsItemSelected(MEDIA, "My Web Feature") ) = TRUE) then
return IISRTComponentInstall( szComponent );
else
return ISERR_SUCCESS;
endif;
end;
It's also odd that we don't get this with another product installation that has a similar selectable IIS feature.
The installation that has the problem has NT Service object components. We know there have been previous InstallShield bugs regarding using NT Service objects and IIS in the same installation so perhaps there are some more bugs still in there.