Auto Install Workflow Manager 1.0

Write-Host "- Begining Download Service Bus..."
Start /W "c:Program FilesMicrosoftWeb Platform InstallerWebpiCmd.exe /offline /Products:ServiceBus /Path:c:WorkflowManagerInstallServiceBus"
Write-Host "- Downloaded Service Bus"

Write-Host "- Begining Download WorkflowClient"
Start /W "c:Program FilesMicrosoftWeb Platform InstallerWebpiCmd.exe /offline /Products:WorkflowClient /Path:c:WorkflowManagerInstallWorkflowClient"
Write-Host "- Downloaded WorkflowClient"

Write-Host "- Begining Download WorkflowManagerRefresh"
Start /W "c:Program FilesMicrosoftWeb Platform InstallerWebpiCmd.exe /offline /Products:WorkflowManagerRefresh /Path:c:WorkflowManagerInstallWorkflowManagerRefresh"
Write-Host "- Downloaded WorkflowManagerRefresh"


Write-Host "- all files download finished..."
Write-Host "- Begin Install..."

Write-Host "- Installing Service Bus 1.0"
Start-Process -FilePath "WebpiCmd.exe" -ArgumentList "/Install /Products:ServiceBus /XML:d:ServiceBusfeedslatestwebproductlist.xml /AcceptEula /SuppressPostFinish" -Wait -PassThru

Write-Host "  - Patching Service Bus 1.0 using Cumulative Update (KB2799752)"
Start-Process -FilePath "d:WorkflowManagerInstallServiceBus-KB2799752-x64-EN.exe" -ArgumentList "/passive" -Wait -PassThru 

Write-Host "- Installing Workflow Client"
Start-Process -FilePath "WebpiCmd.exe" -ArgumentList "/Install /Products:WorkflowClient /XML:d:WorkflowClientfeedslatestwebproductlist.xml /AcceptEula /SuppressPostFinish" -Wait -PassThru 

Write-Host "- Installing Workflow Manager Refresh"
Start-Process -FilePath "WebpiCmd.exe" -ArgumentList "/Install /Products:WorkflowManagerRefresh /XML:d:WorkflowManagerRefreshfeedslatestwebproductlist.xml /AcceptEula /SuppressPostFinish" -Wait -PassThru 

如果环境无法连接网络,应当先在联网机器上执行离线下载,然后再拷贝到目标机器,执行安装。

原文地址:https://www.cnblogs.com/wpsl5168/p/3798717.html