mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Added question for overwriting config, theme + demo files
SVN revision: 469
This commit is contained in:
parent
ce062dbfca
commit
6f5007e254
37
elog.nsi
37
elog.nsi
@ -35,7 +35,6 @@ Section "ELOG system (required)"
|
|||||||
File nt\release\elogd.exe
|
File nt\release\elogd.exe
|
||||||
File nt\release\elog.exe
|
File nt\release\elog.exe
|
||||||
File nt\release\elconv.exe
|
File nt\release\elconv.exe
|
||||||
File elogd.cfg
|
|
||||||
File eloghelp_en.html
|
File eloghelp_en.html
|
||||||
|
|
||||||
; doc directory
|
; doc directory
|
||||||
@ -45,16 +44,34 @@ Section "ELOG system (required)"
|
|||||||
; src directory
|
; src directory
|
||||||
SetOutPath $INSTDIR\src
|
SetOutPath $INSTDIR\src
|
||||||
File src\*.c
|
File src\*.c
|
||||||
|
|
||||||
; themes and demo logbook
|
|
||||||
SetOutPath $INSTDIR\themes\default
|
|
||||||
File themes\default\*.css
|
|
||||||
File themes\default\*.gif
|
|
||||||
SetOutPath $INSTDIR\themes\default\icons
|
|
||||||
File themes\default\icons\*.*
|
|
||||||
|
|
||||||
SetOutPath $INSTDIR\logbooks\demo
|
; config file
|
||||||
File logbooks\demo\*
|
SetOutPath $INSTDIR
|
||||||
|
IfFileExists $INSTDIR\elogd.cfg 0 cfgNotExist
|
||||||
|
MessageBox MB_YESNO|MB_ICONQUESTION "Would you like to overwrite your existing elogd.cfg?" IDNO cfgNotOverwrite
|
||||||
|
cfgNotExist:
|
||||||
|
File elogd.cfg ; overwrite file
|
||||||
|
cfgNotOverwrite:
|
||||||
|
|
||||||
|
; themes
|
||||||
|
SetOutPath $INSTDIR\themes\default
|
||||||
|
|
||||||
|
IfFileExists $INSTDIR\themes\default\default.css 0 themesNotExist
|
||||||
|
MessageBox MB_YESNO|MB_ICONQUESTION "Would you like to overwrite your existing theme files?" IDNO themesNotOverwrite
|
||||||
|
themesNotExist:
|
||||||
|
File themes\default\*.css
|
||||||
|
File themes\default\*.gif
|
||||||
|
SetOutPath $INSTDIR\themes\default\icons
|
||||||
|
File themes\default\icons\*.*
|
||||||
|
themesNotOverwrite:
|
||||||
|
|
||||||
|
; demo logbook
|
||||||
|
IfFileExists $INSTDIR\logbooks\demo\011108a.log 0 logbNotExist
|
||||||
|
MessageBox MB_YESNO|MB_ICONQUESTION "Would you like to overwrite your existing demo logbook?" IDNO logbNotOverwrite
|
||||||
|
logbNotExist:
|
||||||
|
SetOutPath $INSTDIR\logbooks\demo
|
||||||
|
File logbooks\demo\*
|
||||||
|
logbNotOverwrite:
|
||||||
|
|
||||||
SetOutPath $INSTDIR
|
SetOutPath $INSTDIR
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user