2022-05-13 23:07:10 +02:00
|
|
|
;Include Modern UI
|
|
|
|
!include "MUI2.nsh"
|
2022-05-14 00:52:52 +02:00
|
|
|
!include x64.nsh
|
2022-05-13 23:07:10 +02:00
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Styling
|
|
|
|
!define MUI_ICON "brand.ico"
|
|
|
|
Icon "brand.ico"
|
|
|
|
BrandingText "Etherpad Foundation"
|
|
|
|
Name "Etherpad Server"
|
2022-05-13 23:26:58 +02:00
|
|
|
OutFile "..\..\..\etherpad-win.exe"
|
2022-05-13 23:07:10 +02:00
|
|
|
|
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
|
|
|
|
|
|
Page directory
|
|
|
|
Page instfiles
|
|
|
|
|
|
|
|
; The default installation directory
|
2022-05-14 00:52:52 +02:00
|
|
|
InstallDir "$PROGRAMFILES64\Etherpad Foundation\Etherpad Server"
|
2022-05-13 23:07:10 +02:00
|
|
|
|
|
|
|
Section
|
|
|
|
SectionIn RO
|
|
|
|
|
2022-05-14 00:52:52 +02:00
|
|
|
${If} ${RunningX64}
|
|
|
|
DetailPrint "Installer running on x64 host"
|
|
|
|
${Else}
|
|
|
|
Abort "Unsupported CPU architecture (only x64 is supported)"
|
|
|
|
${Endif}
|
|
|
|
|
2022-05-13 23:07:10 +02:00
|
|
|
; Set output path to the installation directory.
|
|
|
|
SetOutPath $INSTDIR
|
|
|
|
|
|
|
|
; Put files there
|
2022-05-13 23:49:53 +02:00
|
|
|
File /r "..\..\..\..\etherpad-zip\*"
|
2022-05-13 23:07:10 +02:00
|
|
|
|
|
|
|
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
|