From 66e2323e17c40ef1b4aa7022559c743e75d83931 Mon Sep 17 00:00:00 2001 From: plata Date: Sun, 9 Sep 2018 11:57:41 +0200 Subject: [PATCH] Wine: fix .msi and .bat installation (#675) --- Engines/Wine/Engine/Implementation/script.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Engines/Wine/Engine/Implementation/script.js b/Engines/Wine/Engine/Implementation/script.js index c9e43ed0f5..0e6378e3b6 100644 --- a/Engines/Wine/Engine/Implementation/script.js +++ b/Engines/Wine/Engine/Implementation/script.js @@ -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