Hi,

Here's a sample code to detect IIS 5/6 or some IIS7 components :
<Property Id="IIS56" Value="#0">
      <RegistrySearch Id="IIS56InstalledComponents" Root="HKLM"
Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OC
Manager\Subcomponents" Type="raw" Name="iis_common" />
    </Property>

    <Property Id="IIS7" Value="#0">
      <RegistrySearch Id="IIS7W3SVC" Root="HKLM"
Key="SOFTWARE\Microsoft\InetStp\Components" Type="raw" Name="W3SVC" />
    </Property>

    <Property Id="IIS7ASP" Value="#0">
      <RegistrySearch Id="IIS7ASP" Root="HKLM"
Key="SOFTWARE\Microsoft\InetStp\Components" Type="raw" Name="ASP" />
    </Property>

    <Property Id="IIS7STATICCONTENT" Value="#0">
      <RegistrySearch Id="IIS7STATICCONTENT" Root="HKLM"
Key="SOFTWARE\Microsoft\InetStp\Components" Type="raw" Name="StaticContent"
/>
    </Property>

    <Property Id="IIS7WINDOWSAUTH" Value="#0">
      <RegistrySearch Id="IIS7WINDOWSAUTH" Root="HKLM"
Key="SOFTWARE\Microsoft\InetStp\Components" Type="raw"
Name="WindowsAuthentication" />
    </Property>

    <Property Id="IIS7MC" Value="#0">
      <RegistrySearch Id="IIS7MC" Root="HKLM"
Key="SOFTWARE\Microsoft\InetStp\Components" Type="raw"
Name="ManagementConsole" />
    </Property>

    <Property Id="IIS7METABASE" Value="#0">
      <RegistrySearch Id="IIS7METABASE" Root="HKLM"
Key="SOFTWARE\Microsoft\InetStp\Components" Type="raw" Name="Metabase" />
    </Property>

Then I use these properties to diplay or not a feature :
<Feature Id="web" Title="Web site" Level="1" ConfigurableDirectory="IISROOT"
>
        <ComponentGroupRef Id="group_web"/>

        <ComponentRef Id="WebApp"/>
        <ComponentRef Id="NewWebSite"/>
        <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>

I did'nt check for SQL Server.

Regards,
Loïc Delambre 


Peter Oehlert wrote:
> 
> This isn't strictly wix related but more a general setup question: 
> 
>  
> 
> Is anyone aware of a robust check to see that SQL Server (2005, express,
> std, or ent) and IIS (6, 7 + compatibility components) are installed?
> 
>  
> 
> Any help would be appreciated.
> 
>  
> 
>  
> 
> Thanks,
> 
> Peter
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Checking-for-IIS-and-SQL--tp21731373p21743980.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to