Skip to content

Commit

Permalink
Merge pull request #438 from amnezia-vpn/bugfix/app-is-running-win11
Browse files Browse the repository at this point in the history
fixed appProcessIsRunning() for win11
  • Loading branch information
pokamest authored Dec 1, 2023
2 parents dd233f7 + a672434 commit 6fd1ea2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions deploy/installer/config/controlscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ function raiseInstallerWindow()
function appProcessIsRunning()
{
if (runningOnWindows()) {
var cmdArgs = ["/FI", "WINDOWTITLE eq " + appName()];
var result = installer.execute("tasklist", cmdArgs);

var result = installer.execute("tasklist");
if ( Number(result[1]) === 0 ) {
if (result[0].indexOf(appExecutableFileName()) !== -1) {
return true;
Expand Down

0 comments on commit 6fd1ea2

Please sign in to comment.