WindowsInstaller 0.1.23 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/WindowsInstaller.rb +13 -12
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b75ec73d88a47ef17e5364a2b2a14f209cd7afe03839bb5dc464ee855306f952
|
4
|
+
data.tar.gz: a07a592adf3fc8a3f5052a05d0086cc5d6002828613dfa9cac96f45ee9db24f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3569779759af035f7061425db8fc0912a67dc348fb9579a90fa05dfc8f71496a39b4a015386d23f4afffa1b8fd5e231902526c779c5b9afdd824c2c0943d5385
|
7
|
+
data.tar.gz: f26d8ad8870aeedec0e727e17bb035d8cdc8250a194af2edfc20facd1416992b43824470a92a1e9ab9e4216d5437a477c7189473048be88f69b7848e902d6d03
|
data/lib/WindowsInstaller.rb
CHANGED
@@ -154,28 +154,29 @@ class WindowsInstaller < Hash
|
|
154
154
|
|
155
155
|
def get_upgrade_codes
|
156
156
|
upgrade_codes = {}
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
rescue
|
161
|
-
next
|
162
|
-
end
|
157
|
+
property_value = @installer.ProductsEx('','',7).each do |prod|
|
158
|
+
begin
|
159
|
+
local_pkg = prod.InstallProperty('LocalPackage')
|
163
160
|
|
164
|
-
|
161
|
+
db = @installer.OpenDataBase(local_pkg, 0)
|
165
162
|
query = 'SELECT `Value` FROM `Property` WHERE `Property` = \'UpgradeCode\''
|
166
163
|
view = db.OpenView(query)
|
167
164
|
view.Execute
|
168
165
|
|
169
|
-
|
166
|
+
record = view.Fetch
|
170
167
|
unless(record.nil?)
|
171
168
|
upgrade_code = record.StringData(1)
|
172
169
|
|
173
|
-
|
174
|
-
|
175
|
-
|
170
|
+
upgrade_codes[upgrade_code] ||= []
|
171
|
+
upgrade_codes[upgrade_code] << prod.ProductCode
|
172
|
+
end
|
173
|
+
|
174
|
+
rescue
|
175
|
+
next
|
176
176
|
end
|
177
|
+
end
|
177
178
|
|
178
|
-
|
179
|
+
return upgrade_codes
|
179
180
|
end
|
180
181
|
|
181
182
|
def get_upgrade_code(product_code)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: WindowsInstaller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Marshall
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: execute
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.
|
19
|
+
version: 0.1.78
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.1.
|
26
|
+
version: 0.1.78
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
description: Class wrapper for Microsoft Windows WindowsInstaller object
|
84
|
-
email:
|
84
|
+
email:
|
85
85
|
executables: []
|
86
86
|
extensions: []
|
87
87
|
extra_rdoc_files: []
|
@@ -92,7 +92,7 @@ homepage: http://rubygems.org/gems/WindowsExecute
|
|
92
92
|
licenses:
|
93
93
|
- Apache 2.0
|
94
94
|
metadata: {}
|
95
|
-
post_install_message:
|
95
|
+
post_install_message:
|
96
96
|
rdoc_options: []
|
97
97
|
require_paths:
|
98
98
|
- lib
|
@@ -100,16 +100,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 3.0.0
|
104
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
106
|
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '0'
|
109
109
|
requirements: []
|
110
|
-
|
111
|
-
|
112
|
-
signing_key:
|
110
|
+
rubygems_version: 3.2.15
|
111
|
+
signing_key:
|
113
112
|
specification_version: 4
|
114
113
|
summary: Class wrapper for Microsoft Windows WindowsInstaller object
|
115
114
|
test_files: []
|