wixgem 0.84.0 → 0.85.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f903e98ba851435dde4f9a8d002455b1f85341d
4
- data.tar.gz: 0579fd5fb3f257d9bf7d172cebd9f2463dc55f99
3
+ metadata.gz: 1e9fba9df10db66dcd5cc373c926a1a5f8276a84
4
+ data.tar.gz: 9e8f3ff5377249c08b63ee3c7682b591b4cdeb76
5
5
  SHA512:
6
- metadata.gz: 84d696956ef7cb66ee5e711f7ab24b45aa212ccbbdab504a7ef196bc7714b4c4981844b6c350fb7b18e43af74ff38af5c9f30bfaa4f6106839e6059fe417cfde
7
- data.tar.gz: 313a096755a6b651314c8e91fbef7dcec01ec7ca616decd5184b5c7bb432733cb4292cb670c60abc1f496a9fcf487c088b49b69804f1502b50ac77f046bc011a
6
+ metadata.gz: f50950b69eaed75f1f183123ad5cd208b01f7b22e3a90d8fa09ecabd19392e2fbc31e390c93c5d46b60d149572e801ae3b884bb4c7cb4b8ea6303ca6a456ee0d
7
+ data.tar.gz: 41bfa1938cde20507f44220e1cf76745bcfbb626863a3e6ca0b7f1d859fc13dd1801ac7b333224cf9ce0cf5cf968600b12c4191b5cc59ada375a9f5d07883b4d
data/example/example.msi CHANGED
Binary file
data/example/example.msm CHANGED
Binary file
data/lib/custom_action.rb CHANGED
@@ -9,8 +9,8 @@ class CustomAction
9
9
  @input = input
10
10
  end
11
11
  def add(custom_action)
12
- unless(custom_action.key?(:file) || custom_action.key?(:binary_key))
13
- raise 'Currently, only supported custom actions work with installed executable or binary key'
12
+ unless(custom_action.key?(:file) || custom_action.key?(:binary_key) || custom_action.key?(:property))
13
+ raise 'Currently, only supported custom actions work with installed executable, binary key, or property'
14
14
  end
15
15
 
16
16
  file_key=nil
@@ -44,13 +44,25 @@ class CustomAction
44
44
  wix_element = REXML::XPath.match(@xml_doc, "/Wix")[0]
45
45
  fragment = wix_element.add_element 'Fragment'
46
46
 
47
- action = fragment.add_element 'CustomAction', { 'Id' => id, 'ExeCommand' => cmd_line, 'Impersonate' => impersonate, 'Return' => ret, 'HideTarget' => 'no', 'Execute' => execute }
47
+ action = fragment.add_element 'CustomAction', { 'Id' => id, 'Impersonate' => impersonate, 'Return' => ret, 'HideTarget' => 'no', 'Execute' => execute }
48
48
  if(custom_action.key?(:binary_key))
49
49
  action.attributes['BinaryKey'] = custom_action[:binary_key]
50
50
  else
51
51
  action.attributes['FileKey'] = file_key
52
52
  end
53
+
54
+ action.attributes['ExeCommand'] = cmd_line if(custom_action.key?(:exe_command))
55
+
56
+ action.attributes['DllEntry'] = custom_action[:dll_entry] if(custom_action.key?(:dll_entry))
53
57
 
58
+ if(custom_action.key?(:property))
59
+ raise "Custom action property '#{custom_action[:property]} must have a value!" unless(custom_action.key?(:value))
60
+ action.attributes.delete('ExeCommand')
61
+ action.attributes.delete('Return')
62
+ action.attributes['Property'] = custom_action[:property]
63
+ action.attributes['Value'] = custom_action[:value]
64
+ end
65
+
54
66
  install_execute_sequence = fragment.add_element 'InstallExecuteSequence'
55
67
 
56
68
  custom_action[:before] = 'InstallFinalize' if(!custom_action.key?(:after) && !custom_action.key?(:before))
data/lib/wixgem.rb CHANGED
@@ -339,7 +339,7 @@ class Wix
339
339
  end
340
340
 
341
341
  def self.execute_heat(input, cmd_line_options)
342
- heat_cmd = CMD.new("\"#{install_path}/bin/heat.exe\" #{modify_heat_commandline(input, cmd_line_options)}", { quiet: true })
342
+ heat_cmd = CMD.new("\"#{install_path.gsub(/\\/,'/')}/bin/heat.exe\" #{modify_heat_commandline(input, cmd_line_options)}", { quiet: true })
343
343
  heat_cmd.execute
344
344
  log_wix_output(heat_cmd)
345
345
  end
@@ -500,13 +500,13 @@ class Wix
500
500
  def self.create_output(wxs_file, input, output)
501
501
  wixobj_file = "#{File.basename(wxs_file,'.wxs')}.wixobj"
502
502
 
503
- candle_cmd = CMD.new("\"#{install_path}/bin/candle.exe\" -out \"#{wixobj_file}\" \"#{wxs_file}\"", { quiet: true })
503
+ candle_cmd = CMD.new("\"#{install_path.gsub(/\\/,'/')}/bin/candle.exe\" -out \"#{wixobj_file}\" \"#{wxs_file}\"", { quiet: true })
504
504
  candle_cmd.execute
505
505
  log_wix_output(candle_cmd)
506
506
 
507
507
  cmd_args = "-nologo -out \"#{output}\" \"#{wixobj_file}\""
508
- cmd_args = "-ext WixUIExtension -cultures:en-us #{cmd_args}" if(input.key?(:ui))
509
- light_cmd = CMD.new("\"#{install_path}/bin/light.exe\" #{cmd_args}", { quiet: true })
508
+ cmd_args = "-ext WixUIExtension -ext WixUtilExtension -cultures:en-us #{cmd_args}"
509
+ light_cmd = CMD.new("\"#{install_path.gsub(/\\/,'/')}/bin/light.exe\" #{cmd_args}", { quiet: true })
510
510
  light_cmd.execute
511
511
  log_wix_output(light_cmd)
512
512
  end
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.84.0
4
+ version: 0.85.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: 2015-12-31 00:00:00.000000000 Z
11
+ date: 2016-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler