<parameters>
    <parameter name="AppPath"
               description="Application should be installed to the root of new or existing website."
               defaultValue="VirtoCommerce"
               tags="iisapp">
        <parameterEntry type="ProviderPath" scope="iisApp" match="wwwroot" />
    </parameter>

    <parameter name="StoreAcl"
               defaultValue="{AppPath}/App_Data"
               tags="Hidden">
        <parameterEntry type="ProviderPath" scope="setAcl" match="wwwroot/App_Data" />
    </parameter>

    <parameter name="AdminAcl"
               defaultValue="{AppPath}/Areas/Admin/App_Data"
               tags="Hidden">
        <parameterEntry type="ProviderPath" scope="setAcl" match="wwwroot/Areas/Admin/App_Data" />
    </parameter>

    <parameter name="AssetsAcl"
               defaultValue="{AppPath}/Areas/Admin/Assets"
               tags="Hidden">
        <parameterEntry type="ProviderPath" scope="setAcl" match="wwwroot/Areas/Admin/Assets" />
    </parameter>

    <parameter name="ModulesAcl"
               defaultValue="{AppPath}/Areas/Admin/Modules"
               tags="Hidden">
        <parameterEntry type="ProviderPath" scope="setAcl" match="wwwroot/Areas/Admin/Modules" />
    </parameter>

    <parameter name="SQL Server" description="Name of the server" defaultValue="(local)" tags="SQL, dbServer" />
    <parameter name="SQL Server Database Name" description="Name of the database which VirtoCommerce should use." defaultValue="VirtoCommerce" tags="SQL, dbName" />
    <parameter name="SQL Server Administrator" description="Enter SQL server administrator username." defaultValue="sa" tags="SQL,DbAdminUsername" />
    <parameter name="SQL Server Administrator Password" description="Enter SQL server administrator password." tags="DbAdminPassword,Password, SQL" />

    <parameter name="Database Username"
               description="User name to access VirtoCommerce application database."
               defaultValue="virto"
               tags="SQL, DbUsername">
        <parameterEntry type="TextFile" scope="installSQL1.sql" match="PlaceHolderForUser" />
        <parameterEntry type="TextFile" scope="installSQL2.sql" match="PlaceHolderForUser" />
    </parameter>

    <parameter name="Database User Password"
               description="Password for the database username."
               tags="New, Password, SQL, DbUserPassword">
        <parameterEntry type="TextFile" scope="installSQL1.sql" match="PlaceHolderForPassword" />
    </parameter>

    <parameter name="Connection String MASTER"
               description="Automatically sets the connection string for the connection request."
               defaultValue="Data Source={SQL Server};Initial Catalog=MASTER;User Id={SQL Server Administrator};Password={SQL Server Administrator Password}"
               tags="NoStore,Hidden,SQL,SQLConnectionString">
        <parameterEntry type="ProviderPath" scope="dbfullsql" match="installSQL1.sql" />
    </parameter>

    <parameter name="Connection String"
               description="Automatically sets the connection string for the connection request."
               defaultValue="Data Source={SQL Server};Initial Catalog={SQL Server Database Name};User Id={SQL Server Administrator};Password={SQL Server Administrator Password}"
               tags="Hidden,SQL,SQLConnectionString">
        <parameterEntry type="ProviderPath" scope="dbfullsql" match="installSQL2.sql" />
    </parameter>

    <parameter name="Application URL"
               description="Enter the same URL as resulting URL on the previous step"
               defaultValue="http://localhost"
               tags="AppURL">
    </parameter>
    <parameter name="VirtoCommerceBaseUrl"
               defaultValue="{Application URL}"
               tags="Hidden">
        <parameterEntry type="XmlFile" scope="Web\.config$" match="/configuration/connectionStrings/add[@name='VirtoCommerceBaseUrl']/@connectionString" />
    </parameter>
    <parameter name="AssetsConnectionString"
               defaultValue="provider=LocalStorage;rootPath=~/Areas/Admin/Assets;publicUrl={Application URL}/Areas/Admin/Assets"
               tags="Hidden">
        <parameterEntry type="XmlFile" scope="Web\.config$" match="/configuration/connectionStrings/add[@name='AssetsConnectionString']/@connectionString" />
    </parameter>

    <parameter name="VirtoCommerceConnectionString"
               defaultValue="Data Source={SQL Server};Initial Catalog={SQL Server Database Name};User Id={Database Username};Password={Database User Password};Persist Security Info=True;MultipleActiveResultSets=True"
               tags="Hidden">
        <parameterEntry type="XmlFile" scope="Web\.config$" match="/configuration/connectionStrings/add[@name='VirtoCommerce']/@connectionString" />
    </parameter>
</parameters>
