my puppet module is able to install the msi provided no problem on any windows machine. However the issue is, when I go to update the module and put in a newer version, it stays on the previous version instead of installing the newer version. Here's the block
package { 'AWS Command Line Interface':
ensure => "${awscli_version_for_install_windows}",
provider => 'windows',
source => "c:\windows\temp\AWSCLI_${awscli_version_for_install_windows}.msi",
install_options => ['/qn', '/norestart', '/l*v', 'c:\windows\temp\awscli.log'],
}
Hey guys so I actually found out the fix. In the install_options command you need to include “REINSTALLMODE=AMUS”
package { 'AWS Command Line Interface':
ensure => "${awscli_version_for_install_windows}",
provider => 'windows',
source => "c:\windows\temp\AWSCLI_${awscli_version_for_install_windows}.msi",
install_options => ['/qn', ‘REINSTALLMODE=AMUS’, '/norestart', '/l*v', 'c:\windows\temp\awscli.log'],
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.