Permalink
Switch branches/tags
Nothing to show
Find file Copy path
539d02f Jul 10, 2012
0 contributors

Users who have contributed to this file

15 lines (10 sloc) 344 Bytes
require 'ruby-wmi'
provides 'installed_software'
installed_software Mash.new
apps = WMI::Win32_Product.find(:all)
apps.each do |app|
installed_software[app.packagename] = Mash.new
%w(name version vendor packagenameckagename installdate).each do |attrib|
installed_software[app.packagenameename][attrib] = app.send(attrib)
end
end