WindowsInstaller 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/WindowsInstaller.rb +7 -7
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be207c2db3085807a04d774733ce76ebf39dc9a2
4
- data.tar.gz: 2a403b3a3e2a08c9ea31a5939fcba9dfbd641549
3
+ metadata.gz: 6b2ad077d78a4f871bc7ff2d4bc2e3b0b5370955
4
+ data.tar.gz: 60a292840ae146ac97f0ac0521beb02bcfb41a8f
5
5
  SHA512:
6
- metadata.gz: 69974e884782a9b58d04d212f90a74c6d551e5df162e2e98377aed0cdfecd78c1aceea0434049b5157a28460af9556e5781ed88a7918eae41f2424afda4e55d4
7
- data.tar.gz: 99eb5b7227b951bea6abe9ff5ace2cd088bf93c1b45fc65d6035047a719f5fa425dd1ec433d34e411aae7453861ab2ce15bb76b22055c74cd12540659f48d5cb
6
+ metadata.gz: c7a88a6f5e66bca188a5b0b8e3c2dbe13749d1976369d42076b6efc31c835e7446c0bd5a5fd2ca078579e2a343158ec23afca2088a9a5d4aa4792736de37a31b
7
+ data.tar.gz: 979adda3f7d7e2c365f46e00658f95890ce4d6d8c70dae35f436a2c857479abebdbf6b8d20110ede4d9d8de2e09e1a1aca7061eaee63e4356c11cd0450ec4cac
@@ -33,12 +33,6 @@ class WindowsInstaller < Hash
33
33
  return false
34
34
  end
35
35
 
36
- def installed_products
37
- products = []
38
- @installer.Products.each { |installed_product_code| products << installed_product_code }
39
- return products
40
- end
41
-
42
36
  def install_msi(msi_file)
43
37
  raise "#{msi_file} does not exist!" unless(File.exists?(msi_file))
44
38
 
@@ -120,9 +114,15 @@ class WindowsInstaller < Hash
120
114
  return properties
121
115
  end
122
116
 
117
+ def installed_products
118
+ products = []
119
+ @installer.Products.each { |installed_product_code| products << installed_product_code }
120
+ return products
121
+ end
122
+
123
123
  def product_codes(upgrade_code)
124
124
  upgrade_codes = get_upgrade_codes
125
- return (upgrade_codes.key?(upgrade_code)) ? upgrade_codes[upgrade_code] : nil
125
+ return (upgrade_codes.key?(upgrade_code)) ? upgrade_codes[upgrade_code] : []
126
126
  end
127
127
 
128
128
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: WindowsInstaller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall