部署后执行脚本 - MSDeploy [英] Execute script after deployment - MSDeploy
本文介绍了部署后执行脚本 - MSDeploy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在用户使用IIS导入部署包并完成安装后,是否有方法触发自定义脚本(或打开Windows应用程序)?
Is there a way to trigger a custom script (or open a windows app) after a user imports the deployment package using IIS and completes the installation?
任何帮助
推荐答案
请尝试帮助msdeploy.exe。
Try help for msdeploy.exe.
msdeploy。 exe -help -postSync
msdeploy.exe -help -postSync
或
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"
这篇关于部署后执行脚本 - MSDeploy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文