Hi,
I'm migrating an old Wise installer to AI, and one of the last requirements is to set up IIS (at least versions 5.1 and 6) with an ISAPI filter for Tomcat. It needs to be applied to the default web site, for use with virtual directories that are created during the install. It may also work to apply it globally. I'm using an attached custom action to install the filter, but it is throwing an error 1720 on install, and leaving things in a half-installed state. I've got a second function to uninstall, but have not gotten to the point of testing it yet.
My first priority it to get IIS to redirect servlets to Tomcat. I don't care how, but am constrained to making this work like the legacy installer.
Here is the install function. It's based on http://msdn.microsoft.com/en-us/library ... S.85).aspx.
"""
option Explicit
Sub InstallIsapiFilter
Dim appdir
appdir = Session.Property("CustomActionData")
MsgBox appdir
Dim FiltersObj, FilterObj, LoadOrder
Dim FilterName, FilterPath, FilterDesc
FilterName = "Envision_ISAPI"
FilterPath = appdir & "isapi_redirect.dll"
FilterDesc = "Envision_ISAPI"
Set FiltersObj = GetObject("IIS://LocalHost/W3SVC/Filters")
LoadOrder = FiltersObj.FilterLoadOrder
If LoadOrder <> "" Then
LoadOrder = LoadOrder & ","
End If
LoadOrder = LoadOrder & FilterName
FiltersObj.FilterLoadOrder = LoadOrder
FiltersObj.SetInfo
Set FilterObj = FiltersObj.Create("IIsFilter", FilterName)
FilterObj.FilterPath = FilterPath
FilterObj.FilterDescription = FilterDesc
FilterObj.SetInfo
End Sub ' InstallIsapiFilter
"""
Thanks,
Tim