diff --git a/src/win/common.bat b/src/win/common.bat index c01cb37..2378c91 100644 --- a/src/win/common.bat +++ b/src/win/common.bat @@ -2,7 +2,7 @@ SET MYPATH=%~dp0 -set ProgramFiles64="%ProgramFiles: (x86)=%" +set ProgramFiles64=%ProgramFiles: (x86)=% set I2PData="%LocalAppData%\I2P\" set I2PPath="%ProgramFiles%\I2P\" diff --git a/src/win/copy-config-profile.bat b/src/win/copy-config-profile.bat index d021928..8ece4fc 100644 --- a/src/win/copy-config-profile.bat +++ b/src/win/copy-config-profile.bat @@ -2,7 +2,7 @@ SET MYPATH=%~dp0 call "%MYPATH%common.bat" -if (exist "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.config.i2p\") ( +if exist "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.config.i2p\" ( echo "profile is configured" & xcopy /s /i /y "%I2PData%\I2PBrowser-Launcher\firefox.profile.config.i2p\extensions" "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.config.i2p\extensions" ) else ( echo "configuring profile" & xcopy /s /i /y "%I2PData%\I2PBrowser-Launcher\firefox.profile.config.i2p" "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.config.i2p" diff --git a/src/win/copy-profile.bat b/src/win/copy-profile.bat index d124e41..3b4e824 100644 --- a/src/win/copy-profile.bat +++ b/src/win/copy-profile.bat @@ -2,7 +2,7 @@ SET MYPATH=%~dp0 call "%MYPATH%common.bat" -if (exist "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p\") ( +if exist "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p\" ( echo "profile is configured, updating extensions" & xcopy /s /i /y "%I2PData%\I2PBrowser-Launcher\firefox.profile.i2p\extensions" "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p\extensions" ) else ( echo "configuring profile" & xcopy /s /i /y "%I2PData%\I2PBrowser-Launcher\firefox.profile.i2p" "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p" diff --git a/src/win/launchi2p.bat b/src/win/launchi2p.bat index 9893bae..480e994 100644 --- a/src/win/launchi2p.bat +++ b/src/win/launchi2p.bat @@ -7,7 +7,7 @@ call "%MYPATH%common.bat" netstat /o /a | find /i "listening" | find ":4444" >nul 2>nul && ( echo "I2P is already running, not launching" ) || ( - if (exist "%I2PPath%\jpackaged") ( + if exist "%I2PPath%jpackaged" ( cd "%LOCALAPPDATA%\I2P" & start "i2p" /D "%LOCALAPPDATA%\I2P" "%I2PPath%\i2p.exe" ) else ( start "i2p" "%I2PPath%\i2p.exe"