Issue #19867 has been reported by Josh Cooper.

----------------------------------------
Bug #19867: Document Windows PackageCode behavior
https://projects.puppetlabs.com/issues/19867

* Author: Josh Cooper
* Status: Accepted
* Priority: Normal
* Assignee: Michael Hall
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: windows
* Branch: 
----------------------------------------
Puppet's windows package provider requires the name of the resource to match 
the value in DisplayName. There are times when the name is not unique across 
versions, e.g. VMware Tools, or there are 32 and 64-bit packages with the same 
name. As a result, we provide the ability to specify the PackageCode as the 
name of the package. This is a GUID that is unique across all MSI builds. 

For example, you can do:

<pre>
package { '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}':
  ensure => installed,
  source => 'the.msi',
  provider => windows
}
</pre>

To find the PackageCode from the MSI, you can use Orca, or you can get to it 
programmatically in ruby:

<pre>
require 'win32ole'
installer = WIN32OLE.new('WindowsInstaller.Installer')
db = installer.OpenDatabase(path, 0)
puts db.SummaryInformation.Property(9)
</pre>

where path is the path to the MSI.

See also <http://projects.puppetlabs.com/issues/11868#note-11>



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to