WindowsInstaller 0.1.4 → 0.1.5
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 +5 -1
- 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: 50dba03c44f8ca0267d9449d4b6217f6c1b73d66
|
4
|
+
data.tar.gz: c3e139b2ad6f544a1e417d0e0ef0674ac13eaf0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e8ffdd8cda89b6fddd91957cbc32c9d2a38668168bac68402dc246b6b67dc23ed5fd11baa80e32a42f2acd17c8a28869e7c6d1109128c4eba2c1c609d836c28
|
7
|
+
data.tar.gz: 0a9822138fb173a7b3de945d9450e2f450dab8e2c001a94293ffefbdb451eb8506de33f724dcda3899c6d5599525335ba5ded5d74dd1fc3067055d2c65473325
|
data/lib/WindowsInstaller.rb
CHANGED
@@ -121,10 +121,14 @@ class WindowsInstaller < Hash
|
|
121
121
|
command = CMD.new(cmd, options)
|
122
122
|
command.execute
|
123
123
|
|
124
|
+
exe = cmd.match(/\\(?<path>.+\.exe)/i).named_captures['path']
|
125
|
+
exe = File.basename(exe)
|
126
|
+
#puts "Exe: #{exe}"
|
127
|
+
|
124
128
|
msiexe_pid = 0
|
125
129
|
post_execute = Sys::ProcTable.ps
|
126
130
|
post_execute.each do |ps|
|
127
|
-
msiexe_pid = ps.pid if((ps.name.downcase ==
|
131
|
+
msiexe_pid = ps.pid if((ps.name.downcase == exe.downcase) && pre_pids.index(ps.pid).nil?)
|
128
132
|
end
|
129
133
|
|
130
134
|
if(msiexe_pid != 0)
|