开发者

MS Deploy package to IIS site with custom path

I have a package I created from an IIS 6 site and 开发者_运维知识库I want to deploy it to IIS7 but I dont want to use the path specified in the package (it doesn't exist on target). How do I deploy the package with a new path?

  • Is there a switch I can specify, such as an additional -dest?
  • Is there something I have to do when creating the pacakge to set the path?


I found the answer here http://raquila.com/software/ms-deploy-basics/ at the very bottom. You have to use a replace switch

msdeploy -verb:sync -source:package=c:\pkg.zip -dest:metakey=lm/w3svc/2 -replace:objectName=metaProperty,match="c:\\path1",replace="c:\\path2"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜