A RoolWikiBÓL
setCompressor /SOLID lzma
!define dbVersion "v1002"
!define setup "roolnetStart_pg8.3+db_${dbVersion}.exe"
; change this to wherever the files to be packaged reside
!define srcdir "."
!define company "ROOL"
!define prodname "PostgreSQL 8.3 + roolnet Start adatbázis ${dbVersion}"
# license text file
!define licensefile roolnetStart_db_licensz_hu.txt
;--------------------------------
XPStyle on
ShowInstDetails hide
ShowUninstDetails hide
; The name of the installer
Name "${prodname}"
Caption "${prodname}"
; The file to write by compiler
OutFile "${setup}"
SetDateSave on
SetDatablockOptimize on
CRCCheck on
SilentInstall normal
; The default installation directory
InstallDir "$TEMP\${company}\${prodname}"
; Request application privileges for Windows Vista
RequestExecutionLevel admin
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Hungarian.nlf"
!ifdef licensefile
LicenseData "${srcdir}\${licensefile}"
!endif
!ifdef licensefile
Page license
!endif
;Page components
Page directory
Page instfiles
AutoCloseWindow false
ShowInstDetails show
; The stuff to install
Section "" ;No components page, name is not important
; Set output path to the installation directory.
SetOutPath $INSTDIR
; postgresql telepítés
File postgresql-8.3-int.msi
File adatbazis_telepito.cmd
ExecWait 'adatbazis_telepito.cmd'
; adatbázisok létrehozása (updatekor majd nem kell)
File roolnet_globals.dump
File roolnet_app.dump
File roolnet_rool.dump
File adatbazis_betoltes.cmd
File roolnet_post.sql
# ne kérjen jelszót a dumpok betöltésekor
CreateDirectory $APPDATA\postgresql
File /oname=$APPDATA\postgresql\pgpass.conf pgpass.conf
; load databases
ExecWait 'adatbazis_betoltes.cmd'
RMDir /r /REBOOTOK "$TEMP\${company}"
SectionEnd ; end the section
Function .onInit
# Prevent Multiple Instances
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "roolnetMutex") i .r1 ?e'
Pop $R0
StrCmp $R0 0 +3
MessageBox MB_OK|MB_ICONEXCLAMATION "A telepítő már fut egy példányban."
Abort
# end of Prevent Multiple Instances
# kezdőkép megjelenítése
SetOutPath $TEMP
File /oname=spltmp.bmp roolnet_splash.bmp
; optional
; File /oname=spltmp.wav "my_splashshit.wav"
advsplash::show 1000 600 400 -1 $TEMP\spltmp
Pop $0 ; $0 has '1' if the user closed the splash screen early,
; '0' if everything closed normally, and '-1' if some error occurred.
Delete $TEMP\spltmp.bmp
; Delete $TEMP\spltmp.wav
# end of kezdőkép megjelenítése
FunctionEnd