On Monday, 7 April 2014 18:39:54 UTC+1, jmp242 wrote: > > So I'm trying to do this: > file {'logmein.msi': > path => 'C:/ProgramData/puppetfiles/logmein.msi', > source => "puppet:///modules/logmein/LogMeIn.msi", > owner => 'SYSTEM', > group => 'Administrators', > mode => 0770, > provider => windows, > ensure => present, > } > > package { 'LogMeIn': > ensure => '4.1.4132', > source => 'C:/ProgramData/puppetfiles/logmein.msi', > install_options => ['/quiet'], > } > > } > File['logmein.msi'] -> Package['LogMeIn'] > > But I get this error: > Could not update: 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. > > change from absent to 4.1.4132 failed: Could not update: 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. > > I'm not sure what the problem would be, I can run the msi from the command > like locally on my test computer from the file resource (which works) with > the same install flag and that works OK... >
Hi I would try 1) Putting your path in the name field instead of using the path attribute (though your forward-slashes should be fine) 2) Consider using the source_permissions flag in the file copy to rule out any permissions issues. 3) Making sure the name attribute of the package matches whatever will appear in Add/Remove Programs This page was invaluable to me when starting out writing Windows manifests: http://docs.puppetlabs.com/windows/writing.html#packagepackage H2H -- This message may contain confidential material. If you are not the intended recipient, please notify the sender and destroy all copies. We may monitor communications to and from our network. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a038e0b1-9570-4f32-a1d0-174db102764f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.