我试图使用PowerShell DSC在Windows 2012 R2服务器上自动安装AppFabric 1.1。这实际上是我尝试自动化SharePoint Foundation安装和配置的一部分,但AppFabric 1.1是必备条件。下面是我的DSC配置脚本SNIPPIT:使用PowerShell安装AppFabric 1.1 DSC导致模态对话框错误
Script InstallSharePointPreRequisites
{
GetScript = { Return "InstallSharePointPreRequisites" }
TestScript = {$false}
SetScript = {
Start-Process -FilePath 'c:\temp\SharePoint\pre\MicrosoftIdentityExtensions-64.msi' -ArgumentList '/qn' -Wait | Write-verbose
Start-Process -FilePath 'c:\temp\SharePoint\pre\setup_msipc_x64.msi' -ArgumentList '/qn' -Wait | Write-verbose
Start-Process -FilePath 'c:\temp\SharePoint\pre\sqlncli.msi' -ArgumentList '/qn' -Wait | Write-verbose
Start-Process -FilePath 'c:\temp\SharePoint\pre\Synchronization.msi' -ArgumentList '/qn' -Wait | Write-verbose
Start-Process -FilePath 'c:\temp\SharePoint\pre\WcfDataServices.exe' -ArgumentList '/quiet' -Wait | Write-verbose
Start-Process -FilePath 'c:\temp\SharePoint\pre\appfabric\setup.exe' -ArgumentList '/i cacheclient","cachingService","CacheAdmin /gac /l c:\temp\appfabric.log' -Wait | Write-verbose
Start-Process -FilePath 'c:\temp\SharePoint\pre\AppFabric1.1-RTM-KB2671763-x64-ENU.exe' -ArgumentList '/quiet' -Wait | Write-verbose
}
DependsOn = "[File]GetSharePointFiles"
}
我知道了....“TestScript = $假”是坏的形式,但我只是试图让安装在这一点上运行。 :)
无论如何,当DSC运行获取到的AppFabric \ SETUP.EXE它抛出以下异常:
“{”显示模式对话框或形成当应用程序不UserInteractive模式下运行是不是有效的操作。 “}”
当我从一个普通的PS提示符运行开始 - 处理行时,它安装正常,并且不显示可见的模式对话框。我也尝试使用AppFabric安装EXE与类似的开关结果相同。我有点不知所措。其他人能否使用PowerShell DSC安装AppFabric 1.1?或者SharePoint Foundation 2013对于这个问题?如果是这样,怎么样?我还没有找到有关这种情况的良好文档。
感谢, 一个
您能标记您的答案和答案吗? – TravisEz13 2016-05-29 20:03:06