wixgem 0.112.0 → 0.113.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/registry_key.rb +8 -7
- data/lib/wixgem.rb +1 -1
- metadata +3 -5
- data/example/example.msi +0 -0
- data/example/example.msm +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 61691800908ea58cafe48e3d64dd94792c57313ece6b300aec171a9a3e99e2bc
|
|
4
|
+
data.tar.gz: 17927fee159af1eac9a74c0cde74251e671c99ddde31239e773393f3e9899826
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84b6754b8743ed00ff0fed0c25e2675d9c35b48746deb1b851732234646baa7961accce9a362610849fe89c6815079654be12c1cf673477c53616156d6efc023
|
|
7
|
+
data.tar.gz: 0eddcdf7dabaf88114d0ea472c96364dc56500e84827becccbef9e7ce87d3eb528660b39c14e65ed977aff531991ab8351221d62f100dff88b835125fefe4973
|
data/lib/registry_key.rb
CHANGED
|
@@ -19,8 +19,8 @@ class RegistryKey
|
|
|
19
19
|
raise 'Registry value must have name, value, and type elements'
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
registry_keys_component = REXML::XPath.match(@xml_doc, "//Component[@Id='RegistryKeys']")
|
|
23
|
-
if(registry_keys_component.size == 0)
|
|
22
|
+
#registry_keys_component = REXML::XPath.match(@xml_doc, "//Component[@Id='RegistryKeys']")
|
|
23
|
+
#if(registry_keys_component.size == 0)
|
|
24
24
|
wix_element = REXML::XPath.match(@xml_doc, "/Wix")[0]
|
|
25
25
|
fragment = wix_element.add_element 'Fragment'
|
|
26
26
|
component_group = fragment.add_element 'ComponentGroup'
|
|
@@ -30,12 +30,13 @@ class RegistryKey
|
|
|
30
30
|
component_ref = default_feature[0].add_element 'ComponentGroupRef', 'Id' => component_group.attributes['Id']
|
|
31
31
|
|
|
32
32
|
component = component_group.add_element 'Component'
|
|
33
|
-
component.attributes['Id'] = '
|
|
33
|
+
component.attributes['Id'] = "RegistryKey_#{SecureRandom.uuid.gsub(/-/,'')}"
|
|
34
34
|
component.attributes['Directory'] = 'INSTALLDIR'
|
|
35
|
-
else
|
|
36
|
-
puts "component: #{registry_keys_component.to_s}"
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
#else
|
|
36
|
+
#puts "component: #{registry_keys_component.to_s}"
|
|
37
|
+
# component = registry_keys_component[0]
|
|
38
|
+
#end
|
|
39
|
+
|
|
39
40
|
registry_key_element = component.add_element 'RegistryKey', { 'Root' => registry_key[:root], 'Key' => registry_key[:key] }
|
|
40
41
|
value_element = registry_key_element.add_element 'RegistryValue', { 'Action' => 'write', 'Name' => key_value[:name], 'Value' => key_value[:value], 'Type' => key_value[:type] }
|
|
41
42
|
end
|
data/lib/wixgem.rb
CHANGED
|
@@ -616,7 +616,7 @@ class Wix
|
|
|
616
616
|
ensure
|
|
617
617
|
puts "debug path: #{output_absolute_path}" if(@debug)
|
|
618
618
|
FileUtils.cp("#{dir}/#{wxs_file}", "#{output_absolute_path}.wxs") if(File.exist?("#{dir}/#{wxs_file}") && @debug)
|
|
619
|
-
File.open("#{output_absolute_path}.log", 'w') { |f| f.puts(@logger) } if(@debug
|
|
619
|
+
File.open("#{output_absolute_path}.log", 'w') { |f| f.puts(@logger) } if(@debug & !@logger.nil?)
|
|
620
620
|
end
|
|
621
621
|
end
|
|
622
622
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wixgem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.113.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin Marshall
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-01-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: execute
|
|
@@ -131,8 +131,6 @@ extra_rdoc_files: []
|
|
|
131
131
|
files:
|
|
132
132
|
- LICENSE
|
|
133
133
|
- README.md
|
|
134
|
-
- example/example.msi
|
|
135
|
-
- example/example.msm
|
|
136
134
|
- example/install_files/directory/file2.txt
|
|
137
135
|
- example/install_files/file1.txt
|
|
138
136
|
- example/rakefile.rb
|
|
@@ -164,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
164
162
|
- !ruby/object:Gem::Version
|
|
165
163
|
version: '0'
|
|
166
164
|
requirements: []
|
|
167
|
-
rubygems_version: 3.
|
|
165
|
+
rubygems_version: 3.4.15
|
|
168
166
|
signing_key:
|
|
169
167
|
specification_version: 4
|
|
170
168
|
summary: Simple Ruby interface to facilitate working with Wix Toolset
|
data/example/example.msi
DELETED
|
Binary file
|
data/example/example.msm
DELETED
|
Binary file
|