mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
49 lines
1.3 KiB
Text
49 lines
1.3 KiB
Text
|
;Include Modern UI
|
||
|
!include "MUI2.nsh"
|
||
|
|
||
|
;--------------------------------
|
||
|
;Styling
|
||
|
!define MUI_ICON "brand.ico"
|
||
|
Icon "brand.ico"
|
||
|
BrandingText "Etherpad Foundation"
|
||
|
Name "Etherpad Server"
|
||
|
OutFile "..\..\..\etherpad-server-windows.exe"
|
||
|
|
||
|
!insertmacro MUI_LANGUAGE "English"
|
||
|
|
||
|
Page directory
|
||
|
Page instfiles
|
||
|
|
||
|
; The default installation directory
|
||
|
InstallDir "$LocalAppData\Programs\Etherpad Foundation\Etherpad Server"
|
||
|
|
||
|
Section
|
||
|
SectionIn RO
|
||
|
|
||
|
; Set output path to the installation directory.
|
||
|
SetOutPath $INSTDIR
|
||
|
|
||
|
; Put files there
|
||
|
File /r "..\..\..\etherpad-lite-new\*"
|
||
|
|
||
|
SectionEnd
|
||
|
|
||
|
Section
|
||
|
CreateDirectory "$SMPROGRAMS\Etherpad Foundation"
|
||
|
CreateShortCut "$SMPROGRAMS\Etherpad Foundation\Etherpad Server.lnk" "$INSTDIR\start.bat" "brand.ico" "Etherpad Server"
|
||
|
CreateShortCut "$SMPROGRAMS\Etherpad Foundation\Etherpad.lnk" "http://127.0.0.1:9001" "brand.ico" "Etherpad"
|
||
|
CreateShortCut "$SMPROGRAMS\Etherpad Foundation\Etherpad Admin.lnk" "http://127.0.0.1:9001/admin" "brand.ico" "Etherpad Admin"
|
||
|
CreateShortCut "$SMPROGRAMS\Etherpad Foundation\Uninstall Etherpad Server.lnk" "$INSTDIR\uninstall.exe"
|
||
|
WriteUninstaller "$INSTDIR\uninstall.exe"
|
||
|
Exec '$INSTDIR\start.bat'
|
||
|
SectionEnd
|
||
|
|
||
|
UninstPage instfiles
|
||
|
|
||
|
Section Uninstall
|
||
|
Delete "$INSTDIR\*"
|
||
|
Delete "$INSTDIR\uninstall.exe"
|
||
|
RMDir "$INSTDIR"
|
||
|
SetAutoClose false
|
||
|
SectionEnd
|