Skip to content

Commit

Permalink
Wine: fix .msi and .bat installation (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
plata authored Sep 9, 2018
1 parent 6877663 commit 66e2323
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Engines/Wine/Engine/Implementation/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,13 @@ var engineImplementation = {
var extensionFile = executable.split(".").pop();

if (extensionFile == "msi") {
return this.run("msiexec", ["/i", executable].concat(args), captureOutput);
var msiArgs = org.apache.commons.lang.ArrayUtils.addAll(["/i", executable], args);
return this.run("msiexec", msiArgs, workingDir, captureOutput, wait, userData);
}

if (extensionFile == "bat") {
return this.run("start", ["/Unix", executable].concat(args), captureOutput);
var batArgs = org.apache.commons.lang.ArrayUtils.addAll(["/Unix", executable], args);
return this.run("start", batArgs, workingDir, captureOutput, wait, userData);
}

// do not run 64bit executable in 32bit prefix
Expand Down

0 comments on commit 66e2323

Please sign in to comment.