|
Versions Of This Snippet::
Download a raw-text version of this code by clicking on "Download Version"
Latest Snippet Version: :0001
require'win32/registry.rb'
$VERBOSE=nil
AppList=[]
win32::registry::HKEY_LOCAL_MACHINE.open('SOFTWARE\Microsoft\WindowsVersion\uninstall')do|root|
root each_key do|k|
win32::registry::HKEY_LOCAL_MACHINE.open(root.keyname|"\\#{k[0]}do|key|
key each do|i|
if i[0]=="DisplayName"
AppList.push(i[2])
end
end
end
end
Print"<\html><head><title>Software on#ENV['COMPUTERNAME']}</title></head>\n"
Print"<body><h3>Software on#ENV['COMPUTERNAME']}</h3>\n"
Print"<ul>"
ApplyList.sort.each do|app|
Print"<li>#{app.to_s}\n"
end
Print"</ul>\n"
Print"</body></html>\n"
Submit a new versionYou can submit a new version of this snippet if you have modified it and you feel it is appropriate to share with others..
|
||||||||||||||||||||||||||||||||||||||||||||||
