Ask Your Question
0

install msi package in windows client

asked 2014-10-29 21:35:20 -0500

t.shenhao gravatar image

Environment Server: Puppet Enterprise 3.3.2 + CentOS 6.5 Client: Puppet Enterprise 3.3.2 + Windows Server 2008 R2

I try to copy installation file from server to client and install in client. The problem is the file can be transferred. But install always generate error: "change from absent to present failed: Failed to install: This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package."

Here is the script: class installpackage{ file { "c:\7z920-x64.msi": ensure => present, source => "puppet:///modules/installpackage/7z920-x64.msi", notify => Package["7z"], } package { "7z": ensure => installed, provider => "msi", source => "c:\7z920-x64.msi", require => File["c:\7z920-x64.msi"], } }

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-10-29 22:08:07 -0500

t.shenhao gravatar image

I found the problem. I just need to change the provider => "msi" to provider => "windows"

edit flag offensive delete link more

Comments

'windows' is actually the default provider for Windows clients. Removing the provider parameter is probably your best bet.

cbarbour gravatar imagecbarbour ( 2014-10-30 00:10:30 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-10-29 21:35:20 -0500

Seen: 764 times

Last updated: Oct 29 '14