WindowsInstaller 0.1.15 → 0.1.16
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 +2 -2
- 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: be207c2db3085807a04d774733ce76ebf39dc9a2
|
4
|
+
data.tar.gz: 2a403b3a3e2a08c9ea31a5939fcba9dfbd641549
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69974e884782a9b58d04d212f90a74c6d551e5df162e2e98377aed0cdfecd78c1aceea0434049b5157a28460af9556e5781ed88a7918eae41f2424afda4e55d4
|
7
|
+
data.tar.gz: 99eb5b7227b951bea6abe9ff5ace2cd088bf93c1b45fc65d6035047a719f5fa425dd1ec433d34e411aae7453861ab2ce15bb76b22055c74cd12540659f48d5cb
|
data/lib/WindowsInstaller.rb
CHANGED
@@ -120,7 +120,7 @@ class WindowsInstaller < Hash
|
|
120
120
|
return properties
|
121
121
|
end
|
122
122
|
|
123
|
-
def
|
123
|
+
def product_codes(upgrade_code)
|
124
124
|
upgrade_codes = get_upgrade_codes
|
125
125
|
return (upgrade_codes.key?(upgrade_code)) ? upgrade_codes[upgrade_code] : nil
|
126
126
|
end
|
@@ -179,7 +179,7 @@ class WindowsInstaller < Hash
|
|
179
179
|
return nil if(!product_code_installed?(product_code))
|
180
180
|
upgrade_codes = get_upgrade_codes
|
181
181
|
upgrade_codes.each do |upgrade_code, product_codes|
|
182
|
-
product_codes.each { |pc| return upgrade_code if(pc ==
|
182
|
+
product_codes.each { |pc| return upgrade_code if(pc == product_code) }
|
183
183
|
end
|
184
184
|
return nil
|
185
185
|
end
|