fix path detection when NSIS overrides Windows Environment Variables
This commit is contained in:
@ -1,13 +1,15 @@
|
|||||||
|
|
||||||
SET MYPATH=%~dp0
|
SET MYPATH=%~dp0
|
||||||
|
|
||||||
|
set ProgramFiles64="%ProgramFiles: (x86)=%"
|
||||||
|
|
||||||
set "I2PPath=%ProgramFiles%\I2P\"
|
set "I2PPath=%ProgramFiles%\I2P\"
|
||||||
if exist "%LocalAppData%\I2P\I2P.exe" (
|
if exist "%LocalAppData%\I2P\I2P.exe" (
|
||||||
set "I2PPath=%LocalAppData%\I2P\"
|
set "I2PPath=%LocalAppData%\I2P\"
|
||||||
)
|
)
|
||||||
|
|
||||||
if exist "%ProgramFiles%\I2P\" (
|
if exist "%ProgramFiles64%\I2P\" (
|
||||||
set "I2PPath=%ProgramFiles%\I2P\"
|
set "I2PPath=%ProgramFiles64%\I2P\"
|
||||||
)
|
)
|
||||||
|
|
||||||
if exist "%ProgramFiles(x86)%\I2P" (
|
if exist "%ProgramFiles(x86)%\I2P" (
|
||||||
|
Reference in New Issue
Block a user