On Mon, Apr 7, 2014 at 2:34 PM, Adam Stacey <[email protected]> wrote:
> 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',
>>
>
The source parameter needs to have backslashes, otherwise msiexec.exe
thinks it is a command line argument. See
https://tickets.puppetlabs.com/browse/PUP-398
Our documentation
http://docs.puppetlabs.com/windows/writing.html#packagepackageunfortunately
is incorrect, so we also have
https://tickets.puppetlabs.com/browse/DOCUMENT-50.
Since it is a single quoted string, you don't need to escape the backslash,
e.g. 'C:\ProgramData\puppetfiles\...'. But if you needed to do variable
interpolation, then it would need to be "C:\\$mydir\\..."
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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/a038e0b1-9570-4f32-a1d0-174db102764f%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/a038e0b1-9570-4f32-a1d0-174db102764f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
Josh Cooper
Developer, Puppet Labs
*Join us at PuppetConf 2014, September 23-24 in San Francisco* -
*http://puppetconf.com
<http://puppetconf.com/>*
Register now and save $350!
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CA%2Bu97uki12c_MogQ%2B12a5u0Bu0Osvf6KP189Ke5rrK6EV1rGug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.