Skip to content

Commit

Permalink
RavenDB-825 Added default web config for IIS6
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkadiusz Palinski committed Apr 16, 2013
1 parent 7bc9873 commit d816a90
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 2 deletions.
29 changes: 29 additions & 0 deletions DefaultConfigs/Web_IIS6.config
@@ -0,0 +1,29 @@
<configuration>

<appSettings>

<add key="Raven/DataDir" value="~\Database\System"/>

<add key="Raven/AnonymousAccess" value="Get"/>

</appSettings>

<system.web>
<httpHandlers>
<add path="*" verb="*" type="Raven.Web.ForwardToRavenRespondersFactory, Raven.Web"/>
</httpHandlers>
</system.web>

<runtime>

<loadFromRemoteSources enabled="true"/>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<probing privatePath="Analyzers;Plugins"/>

</assemblyBinding>

</runtime>

</configuration>
34 changes: 33 additions & 1 deletion Raven.Setup/Components/IIS/Raven.Web.wxs
Expand Up @@ -9,7 +9,8 @@
</Component>
</DirectoryRef>
<DirectoryRef Id='INSTALLFOLDER'>
<Component Id="Raven.Web.Config" Guid="{B2E0822E-B80A-4BA2-851B-CA025BC61333}">
<Component Id="Raven.Web.Config.IIS_7_And_8" Guid="{B2E0822E-B80A-4BA2-851B-CA025BC61333}">
<Condition><![CDATA[IISMAJORVERSION >= "#7"]]></Condition>
<File Id='web.config' Name='web.config' DiskId='1' Source='$(var.SolutionDir)\DefaultConfigs\Web.config'>
</File>
<util:XmlFile Id="AddEmptySettingIIS"
Expand Down Expand Up @@ -39,6 +40,37 @@
SelectionLanguage="XSLPattern"
Sequence="4" />
</Component>
<Component Id="Raven.Web.Config.IIS_6" Guid="{0D39076B-E488-44DD-9E07-57732A515601}">
<Condition><![CDATA[IISMAJORVERSION < "#7"]]></Condition>
<File Id='web_iis6.config' Name='web.config' DiskId='1' Source='$(var.SolutionDir)\DefaultConfigs\Web_IIS6.config'>
</File>
<util:XmlFile Id="AddEmptySettingIIS6"
Action="createElement"
Permanent="yes"
ElementPath="/configuration/appSettings"
Name="add"
File="[#web_iis6.config]"
SelectionLanguage="XSLPattern"
Sequence="2" />
<util:XmlFile Id="AddRavenLicensePathKeyIIS6"
Action="setValue"
Permanent="yes"
ElementPath="/configuration/appSettings/add[\[]not(@key)[\]] "
Name="key"
Value="Raven/LicensePath"
File="[#web_iis6.config]"
SelectionLanguage="XSLPattern"
Sequence="3" />
<util:XmlFile Id="SetLicenseFilePathIIS6"
Action="setValue"
Permanent="yes"
ElementPath="/configuration/appSettings/add[\[]@key='Raven/LicensePath'[\]]"
Name="value"
File="[#web_iis6.config]"
Value="[RAVEN_LICENSE_FILE_PATH]"
SelectionLanguage="XSLPattern"
Sequence="4" />
</Component>
<Component Id="PersistWebSiteValues" Guid="{BA5C1D27-7DD0-4521-BE13-4BC0A57D9D1D}">
<RegistryKey Action="create" Root="HKLM"
Key="SOFTWARE\[Manufacturer]\[ProductName]">
Expand Down
3 changes: 2 additions & 1 deletion Raven.Setup/Product.wxs
Expand Up @@ -65,7 +65,8 @@
<ComponentRef Id='Raven.Web' />
<ComponentRef Id='Raven.Database.Web' />
<ComponentRef Id='Raven.Abstractions.Web' />
<ComponentRef Id='Raven.Web.Config'/>
<ComponentRef Id='Raven.Web.Config.IIS_7_And_8'/>
<ComponentRef Id='Raven.Web.Config.IIS_6'/>

<!-- Include IIS Configuration. -->
<ComponentGroupRef Id="IISConfigurationBasedOnExistingWebSite" />
Expand Down

0 comments on commit d816a90

Please sign in to comment.