Hi Adam,

On Fri, Aug 17, 2012 at 11:27 AM, ad <adam.denn...@gmail.com> wrote:
>> Hey Josh,
>>
>> On Friday, August 17, 2012 11:38:08 AM UTC-5, Josh Cooper wrote:
>>
>> >> I have a standardlib type module with generic functions for things like
>> >> download, md5, etc. that are used in other custom types. Lacking a
>> >> robust
>> >> shell, tools, and package management on Windows, I find this approach
>> >> cleaner than trying to ship binaries and use cmd.exe.
>>
>> > It would be great to get this on the forge, would you be willing to
>> > publish it?
>>
>> It needs some refactoring to get company specific stuff out right now, but
>> sure I'll try to make time to do that.

Awesome, thanks!

>> >> Also, check out Ruby's win32 stuff, or even just wmic. You may find
>> >> working
>> >> with MSI's easier this way than using the 2.7x type in Puppet.
>>
>> > Be careful with wmic and msi's. Simply enumerating the list of
>> > installed products will cause wmi to perform a consistency check
>> > across all installed products[1]. Probably not what you wanted!
>>
>> Yeah I know, it's crazy! This is why I get product versions from
>> HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall instead.

This is the same approach I'm using in 3.x, including handling
registry redirection for 32 vs 64 bit apps:

https://github.com/puppetlabs/puppet/blob/3.x/lib/puppet/provider/package/windows/package.rb#L32

Josh

-- 
Josh Cooper
Developer, Puppet Labs

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to