Puppet Install Visual Studio every single run

I want to install Visual studio using puppets, but every time I start puppet, the installation installs VS over and over again.

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

      

+3


source to share


1 answer


You need to make sure the package name exactly matches the display name in Visual Studio.

For posterity:



The title (or name) of the package must match the value of the DisplayName property of the package in the registry, which is also the value displayed in Add or Remove Programs or Programs and Features.

If the specified name and the installed name do not match, Puppet assumes that the package is not installed and try installing it again.

+3


source







All Articles