Hi, i have the following cmdline that works except for the where it deploys the acual files to (phyical path). When i use iisapp instead of apphostconfig it creates the folders in the correct location but when using apphostconfig it creates them in the same directory structure as the staging site. I've tried the replace switch but can't seem to get that to work. Any ideas?
"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:apphostconfig='Staging Web Site/Demo2/WCFD3/1.0.0.41212' -dest:apphostconfig='Default Web Site/Demo2/WCFD3',computername=productsvr001, -setParam:type=DestinationVirtualDirectory,scope='Default Web Site/Demo2/WCFD3',value='C:\inetpub\wwwroot\Demo2\WCFD3' -skip:ObjectName=filePath,absolutePath='.*.log$' -whatif
Thanks in advance
JK
EDIT:
OK I've managage to get the replace to work but it doesn't really offer the right type of replace.
"C:\Program Files\IIS\Microsoft Web Deploy V3\\msdeploy.exe" -verb:sync -source:appHostConfig='Staging Web Site/Demo2/WCFD3/1.0.0.41212' -dest:appHostConfig='Default Web Site/Demo2/WCFD3',computername=productsvr001 -replace:objectName=virtualDirectory,scopeAttributeName=physicalPath,match=^'c:\\inetpub\\StagingWebSite\\',replace='c:\inetpub\wwwroot\' -skip:ObjectName=filePath,absolutePath='.*.log$' -whatif
Rather than matching a string (match=^'c:\\inetpub\\StagingWebSite\\') can i just do a replace all? I can then put the full path i want into the replace='xx' switch.