mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
fixed appProcessIsRunning() for win11
This commit is contained in:
@@ -76,7 +76,7 @@ function raiseInstallerWindow()
|
|||||||
function appProcessIsRunning()
|
function appProcessIsRunning()
|
||||||
{
|
{
|
||||||
if (runningOnWindows()) {
|
if (runningOnWindows()) {
|
||||||
var cmdArgs = ["/FI", "WINDOWTITLE eq " + appName()];
|
var cmdArgs = ["| findstr " + appExecutableFileName()];
|
||||||
var result = installer.execute("tasklist", cmdArgs);
|
var result = installer.execute("tasklist", cmdArgs);
|
||||||
|
|
||||||
if ( Number(result[1]) === 0 ) {
|
if ( Number(result[1]) === 0 ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user