From 0650941d98be0e33dc2c9728a151bd10fa307d09 Mon Sep 17 00:00:00 2001 From: idk Date: Mon, 11 Jul 2022 23:57:24 -0400 Subject: [PATCH] check for existence of actual I2P executable and not just the I2P install dir when deciding which I2P to launch --- src/win/common.bat | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/win/common.bat b/src/win/common.bat index fecc1ae..421ac67 100644 --- a/src/win/common.bat +++ b/src/win/common.bat @@ -5,15 +5,14 @@ SET "MYPATH=%~dp0" set ProgramFiles64=%ProgramFiles: (x86)=% set "I2PData=%LocalAppData%\I2P\" -set I2PPath="%ProgramFiles%\I2P\" if exist "%LocalAppData%\I2P\I2P.exe" ( set "I2PPath=%LocalAppData%\I2P\" ) -if exist "%ProgramFiles64%\I2P\" ( +if exist "%ProgramFiles64%\I2P\I2P.exe" ( set "I2PPath=%ProgramFiles64%\I2P\" ) -if exist "%ProgramFiles(x86)%\I2P" ( +if exist "%ProgramFiles(x86)%\I2P\I2P.exe" ( set "I2PPath=%ProgramFiles(x86)%\I2P\" )