WindowsInstaller 0.1.28 → 0.1.29
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 +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9921e2472c23fd4886a164740d681855777d6591367de36f696bf56b5248a22
|
4
|
+
data.tar.gz: 7115cffd2462c008c2902a1681aacbe53c643d9fe2b40083d6e54a55bbb42739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8f5d9a9c419520e07aeda3badff66b776618511ade0441cf8438ee1347dea8d5dc2e8cf707f6713f81fc4a79a9785c372e07db0646586ba4f91ec826bfb9004
|
7
|
+
data.tar.gz: 90f89fe1b66ab41cbcb541cfa5f5206122b7da9d51073e3e9540cf563e69b48c9c8803c65e8b1475a2419cd73d2c82b23e1a8a14dcd67fe231a78e908a5678c1
|
data/lib/WindowsInstaller.rb
CHANGED
@@ -34,7 +34,7 @@ class WindowsInstaller < Hash
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def install_msi(msi_file)
|
37
|
-
raise "#{msi_file} does not exist!" unless(File.
|
37
|
+
raise "#{msi_file} does not exist!" unless(File.exist?(msi_file))
|
38
38
|
|
39
39
|
msi_file = File.absolute_path(msi_file).gsub(/\//, '\\')
|
40
40
|
|
@@ -47,7 +47,7 @@ class WindowsInstaller < Hash
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def uninstall_msi(msi_file)
|
50
|
-
raise "#{msi_file} does not exist!" unless(File.
|
50
|
+
raise "#{msi_file} does not exist!" unless(File.exist?(msi_file))
|
51
51
|
info = msi_properties(msi_file)
|
52
52
|
uninstall_product_code(info['ProductCode'])
|
53
53
|
end
|
@@ -72,7 +72,7 @@ class WindowsInstaller < Hash
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def msi_properties(msi_file)
|
75
|
-
raise "#{msi_file} does not exist!" unless(File.
|
75
|
+
raise "#{msi_file} does not exist!" unless(File.exist?(msi_file))
|
76
76
|
|
77
77
|
properties = {}
|
78
78
|
|