Stop service before replacing elogd.exe

SVN revision: 1023
This commit is contained in:
Stefan Ritt 2004-08-04 13:46:22 +00:00
parent 3809425f16
commit 376ed138ab

View File

@ -64,8 +64,9 @@ Section "ELOG system (required)" SecSystem
File README File README
; stop service to replace elogd.exe ; stop service to replace elogd.exe
ExecWait 'net stop "elog server"' ExecWait 'net stop "ELOG server"'
Sleep 3000 ExecWait 'net stop elogd'
Sleep 2000
File nt\release\elogd.exe File nt\release\elogd.exe
File nt\release\elog.exe File nt\release\elog.exe
@ -145,7 +146,7 @@ SectionEnd
; optional section ; optional section
Section "Register ELOG Server Service" SecService Section "Register ELOG Server Service" SecService
ExecWait "$INSTDIR\elogd.exe -s -remove" ; WriteRegExpandStr HKLM SYSTEM\CurrentControlSet\Services\elogd ImagePath '"$INSTDIR\elogd.exe" -D -c "$INSTDIR\elogd.cfg"'
ExecWait "$INSTDIR\elogd.exe -install" ExecWait "$INSTDIR\elogd.exe -install"
SectionEnd SectionEnd