From a53e904f7b22c28914cafa3f1d20ead88c94c71b Mon Sep 17 00:00:00 2001 From: "vladimir.kuznetsov" Date: Mon, 27 Nov 2023 13:56:52 +0700 Subject: [PATCH 1/2] fixed appProcessIsRunning() for win11 --- deploy/installer/config/controlscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/installer/config/controlscript.js b/deploy/installer/config/controlscript.js index 39404530b..63831e01b 100644 --- a/deploy/installer/config/controlscript.js +++ b/deploy/installer/config/controlscript.js @@ -76,7 +76,7 @@ function raiseInstallerWindow() function appProcessIsRunning() { if (runningOnWindows()) { - var cmdArgs = ["/FI", "WINDOWTITLE eq " + appName()]; + var cmdArgs = ["| findstr " + appExecutableFileName()]; var result = installer.execute("tasklist", cmdArgs); if ( Number(result[1]) === 0 ) { From a672434909773f94efab736f92f182546f20beb1 Mon Sep 17 00:00:00 2001 From: "vladimir.kuznetsov" Date: Thu, 30 Nov 2023 07:13:43 +0300 Subject: [PATCH 2/2] =?UTF-8?q?changed=20tasklist=20|=20findstr=20=D0=BD?= =?UTF-8?q?=D0=B0=20tasklist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/installer/config/controlscript.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deploy/installer/config/controlscript.js b/deploy/installer/config/controlscript.js index 63831e01b..d0c826361 100644 --- a/deploy/installer/config/controlscript.js +++ b/deploy/installer/config/controlscript.js @@ -76,9 +76,7 @@ function raiseInstallerWindow() function appProcessIsRunning() { if (runningOnWindows()) { - var cmdArgs = ["| findstr " + appExecutableFileName()]; - var result = installer.execute("tasklist", cmdArgs); - + var result = installer.execute("tasklist"); if ( Number(result[1]) === 0 ) { if (result[0].indexOf(appExecutableFileName()) !== -1) { return true;