wixgem 0.43.0 → 0.44.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -3
  3. data/lib/wixgem.rb +5 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53d5561b7f79f736e50eecf763a51183da7c0997
4
- data.tar.gz: 8d79cd0de6f4a946b455e655f23ba5e7a7026e71
3
+ metadata.gz: 0633834fc2779a21770a317a81add6df7811980a
4
+ data.tar.gz: f407a17265028f320827c8c367a6377c83ea763c
5
5
  SHA512:
6
- metadata.gz: a1db621649fc003d17e08cdc79d981019cc91a3b6821abc51a0f88acd939fed00edb7f8dc5f316a6dca21a42f92c93c2e71c21e311ffa013e75f9e3db57e5802
7
- data.tar.gz: 0cc002163c565419c6c0f5b28b87e2809b29848bcace63ffb84ba77d9e637f230ec03505ee4de6576273677a4122102410a9cf21136ff95d2c764a4b553f4fd3
6
+ metadata.gz: 32c53f543779af8410ec19caccc0ddfeca897f8713172376113093afce533afdcbf280109d1b8a011d127dd6446e7107152ef90a795c27d53df2064a019d69db
7
+ data.tar.gz: eac0fb6f972138328d7dd3d32475a93f8a26c03bea7758063aa4d4c177a6528355db89ecda93f13eb6a87c0a9ff7124dee8378856960ec331e2a14f6e314103e
data/README.md CHANGED
@@ -56,11 +56,14 @@ small set of optional arguments allowing the developer to customize the generate
56
56
  * **remove_existing_products**: A boolean value. If the value is true the installation will remove all existing
57
57
  installations of the product before installing the product.
58
58
  * **all_users**: String value perUser or perMachine. The default is perUser.
59
- * **debug**: Boolean value. If debug is true the Product's wxs file and a log file are copied
60
- to the same directory as the output msi file. This can help trouble shoot the
61
- installation.
62
59
  * **suppress_registry_harvesting** Suppress registry harvesting. Can fix the Runtime Error E6034.
63
60
  * **suppress_COM_elements** Suppress COM elements.
61
+ * **installer_version** Represents the minimum version of the Windows installer required to install
62
+ this package. The default version is 4.0. Other valid versions are 2.0,
63
+ 3.0, 3.5, 4.0, 4.5.
64
+ * **debug**: Boolean value. If debug is true the Product's wxs file and a log file are copied
65
+ to the same directory as the output msi file. If you are familiar with WiX this can helpful
66
+ if there is a problem.
64
67
 
65
68
  ## License
66
69
  Copyright 2013-2014 Kevin Marshall
data/lib/wixgem.rb CHANGED
@@ -218,7 +218,11 @@ class Wix
218
218
 
219
219
  xml_doc = REXML::Document.new(wxs_text)
220
220
  packages = REXML::XPath.match(xml_doc, '//Wix/Product/Package')
221
- packages.each { |package| package.add_attribute('InstallScope', 'perMachine') } if(input.has_key?(:all_users))
221
+ packages.each do |package|
222
+ package.add_attribute('InstallScope', 'perMachine') if(input.has_key?(:all_users))
223
+ package.attributes['InstallerVersion'] = 450
224
+ package.attributes['InstallerVersion'] = (input[:installer_version]*100).to_i if(input.has_key?(:installer_version))
225
+ end
222
226
 
223
227
  xml_doc = manage_custom_actions(xml_doc, input)
224
228
  xml_doc = manage_upgrade(xml_doc,input)
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.43.0
4
+ version: 0.44.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-01-22 00:00:00.000000000 Z
11
+ date: 2015-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler