wixgem 0.112.0 → 0.113.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4723f8b26548ee609b1bfaee5351907307088a980711b19f303de6d022e2492
4
- data.tar.gz: 71863140ca3dccf4e34edc6c19ce262cd2c3d20f1ed5076f9c3fc07c9f5281d2
3
+ metadata.gz: 61691800908ea58cafe48e3d64dd94792c57313ece6b300aec171a9a3e99e2bc
4
+ data.tar.gz: 17927fee159af1eac9a74c0cde74251e671c99ddde31239e773393f3e9899826
5
5
  SHA512:
6
- metadata.gz: f6b4f238ed0b62c2548f4bf8b8e91510aa5dd940c15555f516026a5b0f48fdf9da89ae67a3749cca041b922f872fdcb9295454ef3a65dd69c1cafde1c2d44f9a
7
- data.tar.gz: 6799fa78437b6ff969bef1685045984884ba1564ca5f056c798cd92eee595e75c31cec3674dd96571611ca4e1f7316e18d5a8e4706cfe8ce4ac88dcefeda7138
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'] = 'RegistryKeys'
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
- end
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 &!@logger.nil?)
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.112.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: 2023-07-07 00:00:00.000000000 Z
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.2.15
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