WindowsInstaller 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/WindowsInstaller.rb +7 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b2ad077d78a4f871bc7ff2d4bc2e3b0b5370955
|
4
|
+
data.tar.gz: 60a292840ae146ac97f0ac0521beb02bcfb41a8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7a88a6f5e66bca188a5b0b8e3c2dbe13749d1976369d42076b6efc31c835e7446c0bd5a5fd2ca078579e2a343158ec23afca2088a9a5d4aa4792736de37a31b
|
7
|
+
data.tar.gz: 979adda3f7d7e2c365f46e00658f95890ce4d6d8c70dae35f436a2c857479abebdbf6b8d20110ede4d9d8de2e09e1a1aca7061eaee63e4356c11cd0450ec4cac
|
data/lib/WindowsInstaller.rb
CHANGED
@@ -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] :
|
125
|
+
return (upgrade_codes.key?(upgrade_code)) ? upgrade_codes[upgrade_code] : []
|
126
126
|
end
|
127
127
|
|
128
128
|
private
|