WindowsInstaller 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/WindowsInstaller.rb +5 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 359306bd86ef11f6e8f78c2b2d6d2420a97e72d0
4
- data.tar.gz: bb63a1eafc15aafaa86b4352610d26a5dbdc65c2
3
+ metadata.gz: 50dba03c44f8ca0267d9449d4b6217f6c1b73d66
4
+ data.tar.gz: c3e139b2ad6f544a1e417d0e0ef0674ac13eaf0a
5
5
  SHA512:
6
- metadata.gz: e3d628800ef1b2d8359f2f768fa47aadaabe006958e9f369b7698b7cfab7c7700e531174b9f6beb27eb2c6303a28417f00e5a617fad9d1bb82ee7dfce302fce7
7
- data.tar.gz: 290b44b8290aa62f6911b1638de1494ab6f40d604951e58ee526f1178aa9fbd91810def216db3ce8c58e9db831600683127bd8e94dbe57ae5adf0d099ff24684
6
+ metadata.gz: 1e8ffdd8cda89b6fddd91957cbc32c9d2a38668168bac68402dc246b6b67dc23ed5fd11baa80e32a42f2acd17c8a28869e7c6d1109128c4eba2c1c609d836c28
7
+ data.tar.gz: 0a9822138fb173a7b3de945d9450e2f450dab8e2c001a94293ffefbdb451eb8506de33f724dcda3899c6d5599525335ba5ded5d74dd1fc3067055d2c65473325
@@ -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 == "msiexec.exe") && pre_pids.index(ps.pid).nil?)
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)
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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall