version 1.5 | | version 1.6 |
---|
| | |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Crossfire Server" "DisplayName" "Crossfire Server (remove only)"
| | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Crossfire Server" "DisplayName" "Crossfire Server (remove only)"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Crossfire Server" "UninstallString" "$INSTDIR\Uninst.exe"
| | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Crossfire Server" "UninstallString" "$INSTDIR\Uninst.exe"
|
WriteUninstaller "Uninst.exe"
| | WriteUninstaller "Uninst.exe"
|
| | |
| | ;Ask about Windows service |
| | MessageBox MB_YESNO|MB_ICONQUESTION "Register Crossfire server as a Windows service?" /SD IDYES IDNO dont_install |
| | |
| | ;Install service |
| | DetailPrint "Registering service..." |
| | ExecWait '"$INSTDIR\Crossfire32.exe" -regsrv' |
| | |
| | dont_install: |
SectionEnd
| | SectionEnd
|
| |
|
Section "Python plugin" py
| | Section "Python plugin" py
|
| | |
| |
|
Section "un.Crossfire Server" un_cf
| | Section "un.Crossfire Server" un_cf
|
SectionIn RO
| | SectionIn RO
|
| | ;Unregister service if it was installed |
| | ExecWait '"$INSTDIR\Crossfire32.exe" -unregsrv' |
| | |
;Delete Files
| | ;Delete Files
|
Delete "$INSTDIR\crossfire32.exe"
| | Delete "$INSTDIR\crossfire32.exe"
|
Delete "$INSTDIR\python24.dll"
| | Delete "$INSTDIR\python24.dll"
|