I experienced a similar issue, but based on what I found, I think the problem is with the use of the iis:WebAddress element. From the XML listed below, in the second iis:WebDirProperties block (Id="SecureTESTDirProperties") is an iis:WebSite block, and then under that is only one iis:WebAddress element, which has its Secure attribute set to yes.
In the Microsoft IIS Manager GUI, you cannot define a secure port without also defining a non-secure (TCP) port, even if you are not going to use the non-secure port. I thought I would see if WiX would let me get around having to declare an unused non-secure, but I received a leak error. After declaring a second iis:WebAddress with a non-secure port, the problem went away. I don't think this is a problem with the IIS code, per se. A simple fix is to update the documentation to state that if a secure iis:WebAddress is defined, a non-secure iis:WebAddress must also be defined. An integrity-checked fix might be to change the iis:WebAddress as follows: 1) Keep the Port attribute required, but redefine it to be the non-secure (TCP) port 2) Remove the Secure yes/no attribute 3) Add an optional SecurePort attribute, which will set the secure port (if present) Of course, others may have alternate ideas, but I think this is consistent with the constraints that are enforced in the Microsoft IIS Manager GUI. Thank you, Matthew Rob Mensching-2 wrote: > > That means the custom action crashed. First thing is to do is try the > latest WiX build. There have been tiny surgical fixes to take care of a > couple crashes in the last few months. Your issue may be fixed. If not, > then I would encourage you to build a debug version of the custom actions, > drop a debugger on the install, and see if you can capture a callstack of > the failure. A bug with that callstack will go a long way to helping us > get rid of every bug in the custom actions. > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Shurts > Sent: Tuesday, August 14, 2007 10:11 AM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Problem with ConfigureIIs > > I am getting a leaked MSI handle error. Everything was working fine until > I added an additional website component for SSL. Here is a snippet of the > installer. > Microsoft (R) Windows Installer Xml Compiler version 3.0.2925.0 -- btw > <iis:WebDirProperties > Id="TESTDirProperties" > AnonymousAccess="no" > BasicAuthentication="yes" > DefaultDocuments="Default.asp,Default.htm,Default.aspx " > Read="yes" > Index="yes" > Write="no" > Execute="no" > Script="yes" > WindowsAuthentication="no" /> > <iis:WebApplication > Id="TESTWebApplication" > Name="TEST" > AllowSessions="yes" > SessionTimeout="20" > Buffer="yes" > DefaultScript="VBScript" > ScriptTimeout="90" /> > <iis:WebApplication > Id="TESTWSApplication" > Name="TESTWS" > AllowSessions="yes" > DefaultScript="VBScript" > ScriptTimeout="90" > SessionTimeout="20" /> > <iis:WebApplication > Id="TEST_UtilsApplication" > Name="TEST_Utils" > AllowSessions="yes" > DefaultScript="VBScript" > ScriptTimeout="90" > SessionTimeout="20" /> > <DirectoryRef Id="WEBROOT"> > <Component Id="CreateServerWebsite" > Guid="9a752184-1828-4ebc-a882-406ec659b2fd" KeyPath="yes"> > <iis:WebSite Id="TESTWebsite" > ConfigureIfExists="no" > Directory="WEBROOT" > Sequence="1" > Description="TEST" > ConnectionTimeout="300" > AutoStart="yes" > StartOnInstall="yes" > WebApplication="TESTWebApplication" > DirProperties="TESTDirProperties"> > <iis:WebAddress Id="TESTWebAddress" Port="[IISPORT]" /> > <iis:WebVirtualDir > Id="TESTWSvDir" > Directory="TESTWS" > WebApplication="TESTWSApplication" > DirProperties="TESTDirProperties" > Alias="TESTWS" /> > <iis:WebVirtualDir > Id="TEST_UtilsvDir" > Directory="TEST_UTILS" > WebApplication="TEST_UtilsApplication" > DirProperties="TESTDirProperties" > Alias="TEST_Utils"> > <iis:WebVirtualDir > Id="SharedControlsvDir" > Directory="SHARED" > DirProperties="TESTDirProperties" > Alias="SharedControls" /> > </iis:WebVirtualDir> > </iis:WebSite> > <Condition><![CDATA[USESSL <> 1]]></Condition> > </Component> > > <iis:WebDirProperties > Id="SecureTESTDirProperties" > AnonymousAccess="no" > AccessSSL="yes" > AccessSSLNegotiateCert="yes" > BasicAuthentication="yes" > DefaultDocuments="Default.asp,Default.htm,Default.aspx" > Read="yes" > Index="yes" > Write="no" > Execute="no" > Script="yes" > WindowsAuthentication="no" /> > <Component Id="CreateSecureWebsite" > Guid="a04ad24b-fcc2-483a-9830-e3307a693311" KeyPath="yes"> > <iis:WebSite Id="SecureTESTWebsite" > ConfigureIfExists="no" > Directory="WEBROOT" > Sequence="1" > Description="TEST" > ConnectionTimeout="300" > AutoStart="yes" > StartOnInstall="yes" > WebApplication="TESTWebApplication" > DirProperties="SecureTESTDirProperties"> > <iis:WebAddress Id="SecureTESTWebAddress" Port="[IISPORT]" > Secure="yes" /> > <iis:WebVirtualDir > Id="SslTESTWSvDir" > Directory="TESTWS" > WebApplication="TESTWSApplication" > DirProperties="TESTDirProperties" > Alias="TESTWS" /> > <iis:WebVirtualDir > Id="SslTEST_UtilsvDir" > Directory="TEST_UTILS" > WebApplication="TEST_UtilsApplication" > DirProperties="TESTDirProperties" > Alias="TEST_Utils"> > <iis:WebVirtualDir > Id="SslSharedControlsvDir" > Directory="SHARED" > DirProperties="TESTDirProperties" > Alias="SharedControls" /> > </iis:WebVirtualDir> > </iis:WebSite> > <Condition><![CDATA[USESSL=1]]></Condition> > </Component> > > Here is a snippet of the log file: > MSI (s) (D0:EC) [09:03:38:561]: Doing action: InstallCertificates > Action ended 9:03:38: InstallFiles. Return value 1. > MSI (s) (D0:A0) [09:03:38:593]: Invoking remote custom action. DLL: > C:\WINDOWS\Installer\MSI9.tmp, Entrypoint: InstallCertificates > Action start 9:03:38: InstallCertificates. > MSI (s) (D0:EC) [09:03:38:764]: Doing action: ConfigureIIs > Action ended 9:03:38: InstallCertificates. Return value 1. > MSI (s) (D0:A0) [09:03:38:780]: Invoking remote custom action. DLL: > C:\WINDOWS\Installer\MSIA.tmp, Entrypoint: ConfigureIIs > MSI (s) (D0!DC) [09:03:38:936]: PROPERTY CHANGE: Adding > StartMetabaseTransaction property. Its value is 'ScaConfigureIIs'. > Action start 9:03:38: ConfigureIIs. > MSI (s) (D0!DC) [09:03:38:952]: Doing action: StartMetabaseTransaction > Action start 9:03:38: StartMetabaseTransaction. > MSI (s) (D0!DC) [09:03:38:952]: PROPERTY CHANGE: Adding > RollbackMetabaseTransaction property. Its value is 'ScaConfigureIIs'. > MSI (s) (D0!DC) [09:03:38:952]: Doing action: RollbackMetabaseTransaction > Action ended 9:03:38: StartMetabaseTransaction. Return value 1. > Action start 9:03:38: RollbackMetabaseTransaction. > MSI (s) (D0!DC) [09:03:38:968]: PROPERTY CHANGE: Adding > CommitMetabaseTransaction property. Its value is 'ScaConfigureIIs'. > MSI (s) (D0!DC) [09:03:38:968]: Doing action: CommitMetabaseTransaction > Action ended 9:03:38: RollbackMetabaseTransaction. Return value 1. > Action start 9:03:38: CommitMetabaseTransaction. > MSI (s) (D0:A0) [09:03:39:218]: Leaked MSIHANDLE (133) of type 790531 for > thread 220 > MSI (s) (D0:A0) [09:03:39:218]: Leaked MSIHANDLE (119) of type 790540 for > thread 220 > MSI (s) (D0:A0) [09:03:39:218]: Leaked MSIHANDLE (118) of type 790540 for > thread 220 > MSI (s) (D0:A0) [09:03:39:218]: Leaked MSIHANDLE (117) of type 790540 for > thread 220 > MSI (s) (D0:A0) [09:03:39:218]: Leaked MSIHANDLE (111) of type 790541 for > thread 220 > MSI (s) (D0:A0) [09:03:39:218]: Note: 1: 2769 2: ConfigureIIs 3: 5 > Action ended 9:03:38: CommitMetabaseTransaction. Return value 1. > DEBUG: Error 2769: Custom Action ConfigureIIs did not close 5 MSIHANDLEs. > Internal Error 2769. ConfigureIIs, 5 > MSI (s) (D0:EC) [09:03:39:233]: Machine policy value 'DisableRollback' is > 0 > MSI (s) (D0:EC) [09:03:39:233]: Note: 1: 1402 2: > HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts > 3: 2 > Action ended 9:03:39: ConfigureIIs. Return value 3. > MSI (s) (D0:EC) [09:03:39:233]: Note: 1: 1402 2: > HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts > 3: 2 > MSI (s) (D0:EC) [09:03:39:233]: No System Restore sequence number for this > installation. > MSI (s) (D0:EC) [09:03:39:233]: Unlocking Server > Action ended 9:03:39: INSTALL. Return value 3. > > Any idea on why this is happening. Again, it wasn't happening before I > added the secure component and the secure WebDirProperties. > > Thanks, > AJ > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://www.nabble.com/Problem-with-ConfigureIIs-tf4268574.html#a12678826 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users