WindowsInstaller 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/WindowsInstaller.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 683c60b69d5f020cfd1cf953e6077f19571af140
|
4
|
+
data.tar.gz: b954c250465a26ba7651d451299e45b80b6eefe8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6ab754ea7b3e7d2f3d9d1ab58c0c8ee1c4ccdf3e4929e45561d6826e814947794ac5e9894fcae432b1f44fb4cd520f1a672924ac2e04d4edac6237792421bfe
|
7
|
+
data.tar.gz: db0088c0aec7651c74015877a981b224b2bec0a706eafc5305137d4777f0edd671c5d3fd2e6469306e3c847dc92656d90701a27dbedd4c397f9ef295da24f36c
|
data/lib/WindowsInstaller.rb
CHANGED
@@ -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
|
|