IT:AD:WebDeploy:HowTo:Create a Publish Profile/Parameters.xml/Transformation Examples/AppPath
Summary
When making a Web Deploy Package, the default name of the package is hard baked into the package's {project}.SetParameters.xml file:
<?xml version="1.0" encoding="utf-8"?>
<parameters>
<setParameter name="IIS Web Application Name" value="Default WebSite\ExampleSite" />
...
</parameters>
If using IIS to install the package (see: IT:AD:WebDeploy:HowTo:Manually Deploy a Package on a Target IIS), then the UI will show that value.
If using a script, possibly an automatic deploy scenario within an IT:AD:Continuous Integration environment you may want to override this default value.
Process
In your IT:AD:WebDeploy:HowTo:Create a Publish Profile/Parameters.xml, place:
<parameter name="AppPath" defaultValue="Default Web Site/wordpress" tags="iisapp" > <parameterEntry type="ProviderPath" scope="iisapp" match="wordpress" /> </parameter>
<parameter name="providerPath" description="providerPath" defaultValue="NoProviderPath"> <parameterEntry type="providerPath" scope="iisApp" /> </parameter>
Will generate (in output SetParameters.xml):
<parameters> <setParameter name="providerPath" value="WSVecozo/app/Autorisatie" /> </parameters>