I know its quite late to respond on this (I have issued similar issue in 
another group and got a good answer pointing among other links to this 
thread)
having said that, are you sure there isn't a MS API for 'registered' MSI 
installations? 
I used this script from MS online documentation: 
http://msdn.microsoft.com/en-us/library/aa369767%28v=vs.85%29.aspx
it sort of claim they have a simple API to exract info on all registered 
MSIs with windows installer.
I used the script and indeed it has shown All installed MSIs, without 
'discriminating' our 'hidden' MSIs :)
that's how I realized there must be some dependency of Puppet windows 
package provider on the add/remove programs...

So, have I missed something? is the claim that MS API doesn't exist still 
in tact? (and I'm btw a *nix person, who unfortunately has to deal 
sometimes with MS stuff...)

I would love to have "ensure => ${version}" working for our hundreds of MSI 
components. Currently doesn't (puppet 3.6)

Thanks

On Monday, June 24, 2013 7:47:30 PM UTC+3, Josh Cooper wrote:
>
>
>
>
> On Mon, Jun 17, 2013 at 11:53 AM, Adnan Chowdhury 
> <[email protected]<javascript:>
> > wrote:
>
>> I don't foresee any bad side-effects.
>>
>>
>> On Sat, Jun 15, 2013 at 1:48 AM, Josh Cooper 
>> <[email protected]<javascript:>
>> > wrote:
>>
>>>
>>>
>>> On Thursday, June 13, 2013, Reginald Choudari wrote:
>>>
>>>>
>>>>
>>>> On Wednesday, June 12, 2013 5:23:50 PM UTC-4, Josh Cooper wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Jun 12, 2013 at 12:51 PM, Reginald Choudari <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Tried renaming the title of the resource to what the name attribute 
>>>>>> was set to; no go.
>>>>>>
>>>>>> After doing a 'puppet resource package' on the agent, I see a list of 
>>>>>> packages but the package listed here is not shown ... I confirmed that 
>>>>>> it 
>>>>>> is still showing 'ensure: created' in the event logs every puppet run.
>>>>>>
>>>>>> Thanks
>>>>>
>>>>>
>>>>> Can you export the Uninstall registry key for that package? I want to 
>>>>> see what the SystemComponent, etc values are.
>>>>>
>>>>>
>>>>>> On Friday, June 7, 2013 10:54:36 AM UTC-4, Reginald Choudari wrote:
>>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> I've got Package resource on my Windows machine that keeps creating 
>>>>>>> itself even though the package has been properly installed.
>>>>>>>
>>>>>>> I've got the name attribute set to the DisplayName found in the 
>>>>>>> Registry for the package.
>>>>>>>
>>>>>>> Every time the agent polls, I see in the Event Logs:
>>>>>>>
>>>>>>> /Stage[main]/Mssql_rtwo_sptwo/Package[mssql2008r2sp2_exec]/ensure: 
>>>>>>> created
>>>>>>>
>>>>>>> This is what's in my manifest:
>>>>>>>
>>>>>>> package { 'mssql2008r2sp2_exec':
>>>>>>>     ensure          => installed,
>>>>>>>     name            => 'SQL Server 2008 R2 SP2 Common Files',
>>>>>>>     provider        => windows,
>>>>>>>     source          => "C:\\puppet_temp\\${mssql_filename}",
>>>>>>>     install_options => ['/quiet', '/IAcceptSQLServerLicenseTerms', 
>>>>>>> '/allinstances'],
>>>>>>>     require         => Exec['run_mssql2008r2sp2_artif
>>>>>>> act_extract_ps1'],
>>>>>>>   }
>>>>>>>
>>>>>>> I'm thinking there has got to be some weird bug/error with this ... 
>>>>>>> Can anyone help?
>>>>>>>
>>>>>>> Thanks in advance
>>>>>>>
>>>>>>  -- 
>>>>>> 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 post to this group, send email to [email protected].
>>>>>> Visit this group at http://groups.google.com/group/puppet-users?hl=en
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>  
>>>>>>  
>>>>>>
>>>>>
>>>>> Josh
>>>>>
>>>>> -- 
>>>>> Josh Cooper
>>>>> Developer, Puppet Labs
>>>>>
>>>>> *Join us at PuppetConf 2013, August 22-23 in San Francisco - *
>>>>> http://bit.ly/pupconf13
>>>>> *Register now and take advantage of the Early Bird discount - save 
>>>>> 25%!*
>>>>>  
>>>>  -- 
>>>> 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 post to this group, send email to [email protected].
>>>> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>  
>>>>  
>>>>
>>>
>>> Unfortunately, Windows does not have an API for retrieving installed 
>>> packages. So we scan the registry and apply heuristics to determine which 
>>> packages to report on.
>>>
>>>  The overall goal has been for Puppet to report on the same set of 
>>> packages that you see in Add/Remove Programs. Packages whose registry 
>>> value SystemComponent=1 are hidden from ARP, so Puppet does the same, see 
>>> https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/windows/exe_package.rb#L34
>>>
>>> Since Puppet never reports on SystemComponents, it will always think 
>>> they are absent, and need to be installed each time it runs.
>>>
>>> I'm thinking Puppet should not exclude SystemComponents? Are there any 
>>> bad side effects if we included them?
>>>  
>>> Josh
>>>
>>>
>>> -- 
>>> Josh Cooper
>>> Developer, Puppet Labs
>>>
>>> *Join us at PuppetConf 2013, August 22-23 in San Francisco - *
>>> http://bit.ly/pupconf13
>>> *Register now and take advantage of the Early Bird discount - save 25%!*
>>>
>>>  -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "Puppet Users" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/puppet-users/ftvvO51bX1U/unsubscribe.
>>>
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected] <javascript:>.
>>>
>>> To post to this group, send email to [email protected]<javascript:>
>>> .
>>> Visit this group at http://groups.google.com/group/puppet-users.
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>>>
>>
>>  -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/puppet-users.
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
> Filed as https://projects.puppetlabs.com/issues/21415
>
> -- 
> Josh Cooper
> Developer, Puppet Labs
>
> *Join us at PuppetConf 2013, August 22-23 in San Francisco - *
> http://bit.ly/pupconf13
> *Register now and take advantage of the Early Bird discount - save 25%!*
>  

-- 
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/47ef8577-234f-414a-a7e1-0acc6f4df89a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to