windows - Puppet 每次运行都安装 Visual Studio

标签 windows puppet

我想使用 Puppet 安装 Visual Studio,但每次运行 Puppet 时,安装程​​序都会一遍又一遍地安装 VS。

package { 'Microsoft Visual Studio 2012':
       ensure => installed,
       source => '\\goliath\Users\DanishKhakwani\VisualStudio\Premium\vs_premium.exe',
       install_options => ['/SILENT', '/FULL'],
}

最佳答案

您需要确保 package name exactly matches the display name Visual Studio。

为了后代:

The title (or name) of the package must match the value of the package’s DisplayName property in the registry, which is also the value displayed in the “Add/Remove Programs” or “Programs and Features” control panel.

If the provided name and the installed name don’t match, Puppet will believe the package is not installed and try to install it again.

关于windows - Puppet 每次运行都安装 Visual Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31416154/

相关文章:

c++ - 为什么 GetProcAddress 不起作用?

ruby - Puppet 等待服务准备就绪

puppet - 在用户定义类型中禁用 'notify' 事件传播

asp.net - 如何让 Puppet 安装 .NET Framework 4.5?

c# - 计算 Windows 进程的 CPU 使用率?

windows - 创建批处理脚本以在没有其他压缩工具的情况下解压缩文件

c# - 将 winform 应用程序灰色化,打开的对话框除外

c++ - iostream 慢。有没有办法加快他们的速度?

ruby - 用 puppet 设置环境变量

centos - 带有 Jenkins CI 安装的 Puppet Learning VM