Hi,

I' m working on a setup for our product. The setup has 2 features :

-          First feature to install our service

-          Second feature to install the web application in an existing web site
The two feature are optional : I want that users can install only the service 
or only the web application or both.

I'm testing my setup under Windows Server 2008 SP2 (x64) and I have an error 
when the "Web Server" role is not installed. Even if the web feature is 
unselected (level = 0), it fails. If I remove the WebApp component from setup, 
it works. I tried to put a condition on the component, but it fails too.

Here are parts of my setup :

<Feature Id="web" Title="Web site" Level="1" ConfigurableDirectory="IISROOT" >
        <ComponentGroupRef Id="group_web"/>
        <ComponentRef Id="WebApp"/>
        <ComponentRef Id="InstallRegistryEntries"/>
        <Condition Level="0">
          <![CDATA[IIS56="#0" AND (IIS7="#0" OR IIS7ASP="#0" OR 
IIS7StaticContent="#0" OR IIS7WindowsAuthentication="#0" OR 
IIS7ManagementConsole="#0" OR IIS7Metabase="#0")]]>
        </Condition>
      </Feature>

<Fragment>
    <IIs:WebSite Id='DefaultWebSite' Description='[WEBDESCRIPTION]'>
      <IIs:WebAddress Id='DWSA' Port='[WEBPORT]' IP="*" />
    </IIs:WebSite>

    <DirectoryRef Id='TARGETDIR'>
      <Component Id="WebApp" Guid="3ED4CCEC-8528-4566-A573-BA24ADA43FE3">
        <CreateFolder/>
        <IIs:WebServiceExtension Id="ASP" Allow="yes" 
File="[System64Folder]inetsrv\asp.dll" Description="ASP Pages" />
        <IIs:WebAppPool Id="WatchdocAppPool" Name="WatchdocPool" 
Identity="localSystem"/>
        <IIs:WebVirtualDir Id="WatchdocVDir" Alias="watchdoc" 
Directory="dir_web_watchdoc4110_0" WebSite="DefaultWebSite">
          <IIs:WebApplication Id="WatchdocWebApp" Name="watchdoc"  
ParentPaths="yes"/>
        </IIs:WebVirtualDir>
        <Condition><![CDATA[IIS56="#1" OR IIS7="#1"]]></Condition>
      </Component>
    </DirectoryRef>
</Fragment>

In the log file :
MSI (s) (88:14) [16:06:47:353]: Component: WebApp; Installed: Absent;   
Request: Null;   Action: Null
...
MSI (s) (88:14) [16:06:53:166]: Executing op: 
ActionStart(Name=StartMetabaseTransaction,Description=Starting IIS Metabase 
Transaction,)
Action 16:06:53: StartMetabaseTransaction. Starting IIS Metabase Transaction
MSI (s) (88:14) [16:06:53:182]: Executing op: 
CustomActionSchedule(Action=StartMetabaseTransaction,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (88:74) [16:06:53:182]: Invoking remote custom action. DLL: 
C:\Windows\Installer\MSIDE3.tmp, Entrypoint: StartMetabaseTransaction
StartMetabaseTransaction:  Error 0x80040154: failed to get IID_IIMSAdminBase 
object
Error 26001. Cannot connect to Internet Information Server.  (-2147221164       
  )
MSI (s) (88!74) [16:06:54:322]: Product: Watchdoc -- Error 26001. Cannot 
connect to Internet Information Server.  (-2147221164         )

Action ended 16:06:54: InstallFinalize. Return value 3.
...
Property(C): IIS56 = #0
Property(C): IIS7 = #0
Property(C): IIS7ASP = #0
Property(C): IIS7STATICCONTENT = #0
Property(C): IIS7WINDOWSAUTH = #0
Property(C): IIS7MC = #0
Property(C): IIS7METABASE = #0

How can I isolate the web part of my setup to avoid an error when Web server is 
not installed?

Thanks for the help.

Best regards,
Loïc Delambre
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to