From 659143da729939c5c8eb66657892d49bf76d5673 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 20 May 2019 14:34:37 +0200 Subject: installer: quote tmpfile 8.3 is optional. --- installer/customactions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'installer') diff --git a/installer/customactions.js b/installer/customactions.js index 1647c20e..8628de54 100644 --- a/installer/customactions.js +++ b/installer/customactions.js @@ -22,7 +22,7 @@ function runWithNoWindowFlash(command) { var tmpfile = fso.BuildPath(fso.GetSpecialFolder(2), fso.GetTempName()); try { //TODO: Obviously cmd and tmpfile are unescaped here... - var cmd = fso.BuildPath(fso.GetSpecialFolder(1), "cmd.exe") + " /c " + command + " > " + tmpfile; + var cmd = fso.BuildPath(fso.GetSpecialFolder(1), "cmd.exe") + " /c " + command + " > \"" + tmpfile + "\""; var ret = wsh.Run(cmd, 0, true); if (ret != 0) { logMessage("Command " + cmd + " exited with error " + ret.toString()); -- cgit v1.2.3-59-g8ed1b