Issue #17951 has been updated by Josh Cooper.
Hi Andrew, you can get the PackageCode via Orca, or programmatically in ruby as
follows, where `path` is the path to the MSI.
<pre>
require 'win32ole'
installer = WIN32OLE.new('WindowsInstaller.Installer')
db = installer.OpenDatabase(path, 0)
puts db.SummaryInformation.Property(9)
</pre>
----------------------------------------
Bug #17951: Windows package provider does not re-run installation when
subscription updates
https://projects.puppetlabs.com/issues/17951#change-80917
Author: Andrew Dunkman
Status: Needs More Information
Priority: Normal
Assignee: Andrew Dunkman
Category: windows
Target version:
Affected Puppet version: 3.0.1
Keywords: windows msi
Branch:
I have a directory of MSIs that are copied to nodes and run to install
products; newer versions of MSIs install cleanly over older versions. What I
would like to do is install the product either
1. when the product is not yet installed or
2. when the source file changes.
The first point is easy with the windows package provider, the second point
seems impossible using the windows package provider. The provider seems to
ignore its subscriptions.
file { 'c:/packages/myinstaller.msi':
ensure => 'file',
mode => '1777',
owner => 'administrator',
group => 'Administrators',
source => 'puppet:///...',
notify => Package['My Product'],
}
package { 'My Product':
ensure => installed,
source => 'c:\\packages\\myinstaller.msi',
}
--
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.