1
0
Fork 0
arangodb/Installation/Windows/client/Templates/arango-packer-template.nsi

60 lines
1.5 KiB
Plaintext

; arango-packer-template.nsi
;
; this script copies the installation program
; for arango and the corresponding window runtime
; libraries which the arango installation program needs
;
; The installation program and the runtimes are
; copied to the TEMP directory and then the arango
; installer is started
;--------------------------------
; !include "Library.nsh"
; The name of the installer
Name "@INSTALLERNAME@"
; The file to write
OutFile "@INSTALLERNAME@.exe"
; The default installation directory
!define APPNAME "Unpacker"
!define COMPANYNAME "ArangoDB"
InstallDir $TEMP\${COMPANYNAME}\${APPNAME}
; Request application privileges for Windows Vista
RequestExecutionLevel user
;--------------------------------
; Pages
Page instfiles
;--------------------------------
; The stuff to install
Section "" ;No components page, name is not important
; Set output path to the installation directory.
SetOutPath $INSTDIR
; examinates if installation program exists and it is running
IfFileExists "$INSTDIR\@INSTALLERNAME@-internal.exe" 0 install_files
Fileopen $0 "$INSTDIR\@INSTALLERNAME@-internal.exe" "w"
IfErrors 0 install_files
MessageBox MB_OK "@INSTALLERNAME@ is already runing"
Quit
; files are copied
install_files:
FileClose $0
; Put file there
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
Quit
SectionEnd ; end the section