Problem understanding MSDeploy's -dest param

juststeve
juststeve used Ask the Experts™
on
I have a site named myWeb. It's path is C:\inetpub\wwwroot\myWeb. I'm trying to devise the msdeploy commandline that will update the current contents with myWeb.zip's deployment package.

To my mind it should be:

"msdeploy" -verb:sync -source:contentPath="C:\deployContents\myWeb.zip" -dest:contentPath="C:\inetpub\wwwroot\myWeb" 

Open in new window


or maybe just using the site name instead of the site's path. But i get:

Error: Cannot create the file 'C:\inetpub\wwwroot\myWeb' because a directory with the same name already exists.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Security Analyst Senior
Commented:
I would use the second example on this page to do what you need..

http://www.hanselman.com/blog/MSDeployNewIISWebDeploymentTool.aspx

HTH,

Kent

Author

Commented:
You make a good point - i should be explicitly coding objectives all the way from VS.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial