【问题标题】:Installing AppFabric 1.1 with PowerShell DSC results in modal dialog error使用 PowerShell DSC 安装 AppFabric 1.1 会导致模式对话框错误
【发布时间】:2014-09-24 21:32:54
【问题描述】:

我正在尝试使用 PowerShell DSC 在 Windows 2012 R2 服务器上自动安装 AppFabric 1.1。这实际上是我尝试自动化 SharePoint Foundation 安装和配置的一部分,但 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 = $false”的形式不好,但我只是想让安装在这一点上运行。 :)

无论如何,当 DSC 运行到 appfabric\setup.exe 时,它​​会引发以下异常:

"{"当应用程序未在 UserInteractive 模式下运行时显示模式对话框或表单不是有效操作。指定 ServiceNotification 或 DefaultDesktopOnly 样式以显示来自服务应用程序的通知。"}"

当我从普通 PS 提示符运行 Start-Process 行时,它可以正常安装并且不显示可见的模式对话框。我还尝试使用具有相同结果的类似开关的 AppFabric 设置 EXE。我在这里有点不知所措。是否有其他人能够使用 PowerShell DSC 安装 AppFabric 1.1?还是 SharePoint Foundation 2013 呢?如果是这样,怎么做?我还没有找到关于这种情况的好的文档。

谢谢, 一个

【问题讨论】:

    标签: powershell sharepoint appfabric dsc


    【解决方案1】:

    我解决了这个问题。首先,我的脚本中有一个错字。应用程序结构设置行有 CachAdmin 而不是 CacheAdmin(在 cache 中缺少“e”)。我花了一些时间,又写了几次才弄明白。设置好之后就可以正常安装了。该死的,老眼睛和胖手指……谢谢你的关注。 :)

    一个

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-02
      相关资源
      最近更新 更多