version 1.6 | | version 1.7 |
---|
| | |
;Install service | | ;Install service |
DetailPrint "Registering service..." | | DetailPrint "Registering service..." |
ExecWait '"$INSTDIR\Crossfire32.exe" -regsrv' | | ExecWait '"$INSTDIR\Crossfire32.exe" -regsrv' |
| | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Crossfire Server" "ServiceInstalled" "1" |
| | |
dont_install: | | dont_install: |
SectionEnd | | SectionEnd |
| | |
Section "un.Crossfire Server" un_cf | | Section "un.Crossfire Server" un_cf |
SectionIn RO | | SectionIn RO |
;Unregister service if it was installed | | ;Unregister service if it was installed |
| | ReadRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Crossfire Server" "ServiceInstalled" |
| | StrCmp $0 "" 0 +2 |
ExecWait '"$INSTDIR\Crossfire32.exe" -unregsrv' | | ExecWait '"$INSTDIR\Crossfire32.exe" -unregsrv' |
| | |
;Delete Files | | ;Delete Files |