mirror of
https://github.com/wownero/i2p-zero.git
synced 2026-10-17 15:21:40 +02:00
Includable NSIS installer script and example
This commit is contained in:
+15
-4
@@ -1,6 +1,8 @@
|
||||
|
||||
!define ZERONAME "I2P-Zero"
|
||||
!define I2PINSTDIR "$PROGRAMFILES64\${APPNAME}\"
|
||||
!define I2P64INSTDIR "$PROGRAMFILES64\I2P\"
|
||||
!define I2P32INSTDIR "$PROGRAMFILES32\I2P\"
|
||||
!define ZEROINSTDIR "$PROGRAMFILES64\${APPNAME}\"
|
||||
|
||||
function buildZero
|
||||
!system "echo '#! /usr/bin/env sh' > build-docker.sh"
|
||||
@@ -21,10 +23,19 @@ function buildZero
|
||||
functionEnd
|
||||
|
||||
function installZero
|
||||
CreateShortcut "$SMPROGRAMS\Run I2P-Zero.lnk" "$I2PINSTDIR\router\i2p-zero.exe"
|
||||
${If} ${FileExists} `$I2P64INSTDIR\I2P.exe`
|
||||
|
||||
${If} ${FileExists} `$I2P32INSTDIR\I2P.exe`
|
||||
|
||||
${Else}
|
||||
SetOutPath $ZEROINSTDIR
|
||||
File /a /r "./I2P-Zero/"
|
||||
|
||||
CreateShortcut "$SMPROGRAMS\Run I2P-Zero.lnk" "$ZEROINSTDIR\router\i2p-zero.exe"
|
||||
${EndIf}
|
||||
|
||||
|
||||
|
||||
SetOutPath $I2PINSTDIR
|
||||
File /a /r "./I2P-Zero/"
|
||||
|
||||
functionEnd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user