开发者

Execute script after deployment - MSDeploy

开发者 https://www.devze.com 2023-01-20 15:48 出处:网络
Is there a wa开发者_运维技巧y to trigger a custom script (or open a windows app) after a user imports the deployment package using IIS and completes the installation?

Is there a wa开发者_运维技巧y to trigger a custom script (or open a windows app) after a user imports the deployment package using IIS and completes the installation?

Any help?


Try help for msdeploy.exe.

msdeploy.exe -help -postSync

or http://technet.microsoft.com/en-us/library/ee619740(WS.10).aspx

msdeploy -verb:sync -source:contentPath="C:\Test1"
    -dest:contentPath="C:\Test2" -preSync:runcommand="Appcmd stop sites
    MyWebSite" -postSync:runcommand="Appcmd start sites MyWebSite"

msdeploy -verb:sync -source:contentPath="C:\Test1"
    -dest:contentPath="C:\Test2" -preSync:runcommand="c:\MyBatchFile.bat"

msdeploy -verb:sync -source:contentPath="C:\Test1"
    -dest:contentPath="C:\Test2" -postSync:runcommand="c:\MyBatchFile.bat"
0

精彩评论

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