WindowsInstaller 0.1.9 → 0.1.10

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/WindowsInstaller.rb +6 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b02f7b76db9098d099061851306f4e8b2281d72
4
- data.tar.gz: 95c25ad242617d7e9bc91dd07a45e924e0765dc7
3
+ metadata.gz: 683c60b69d5f020cfd1cf953e6077f19571af140
4
+ data.tar.gz: b954c250465a26ba7651d451299e45b80b6eefe8
5
5
  SHA512:
6
- metadata.gz: 8d49221e68bc561f5f56c0f79d61554ac88e105928b209b2c4e1892a386d3147099a78fb4952df958e3f57bb3822cfe1a16edcf31f1968e3f926ac663fc7c986
7
- data.tar.gz: 048f2955c009333b2e10a2b1fe2b18eea04ba467d673f820a3bb9950e5fedd7afee1fdbcd7303d62024f63f16032084be19c2d66e837931c28f93ae4a1600fb7
6
+ metadata.gz: f6ab754ea7b3e7d2f3d9d1ab58c0c8ee1c4ccdf3e4929e45561d6826e814947794ac5e9894fcae432b1f44fb4cd520f1a672924ac2e04d4edac6237792421bfe
7
+ data.tar.gz: db0088c0aec7651c74015877a981b224b2bec0a706eafc5305137d4777f0edd671c5d3fd2e6469306e3c847dc92656d90701a27dbedd4c397f9ef295da24f36c
@@ -52,6 +52,12 @@ class WindowsInstaller < Hash
52
52
  uninstall_product_code(info['ProductCode'])
53
53
  end
54
54
 
55
+ def uninstall_product(product_name)
56
+ raise Exception.new("Product '#{product_name}' is not installed") unless(product_installed?(product_installed))
57
+
58
+ product_code = installed_get_product_code(product_name)
59
+ uninstall_product_code(product_code)
60
+ end
55
61
  def uninstall_product_code(product_code)
56
62
  raise "#{product_code} is not installed" unless(product_code_installed?(product_code))
57
63
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: WindowsInstaller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall