2008-04-15 14:19:03 +00:00
|
|
|
; NSIS description file for ioquake3 installer
|
|
|
|
;
|
|
|
|
; EDIT WITH CARE!
|
|
|
|
;
|
|
|
|
; This file is used to automatically build the installers in the
|
|
|
|
; openSUSE build service, don't break this!
|
|
|
|
;
|
2008-04-22 08:52:17 +00:00
|
|
|
; you have to copy SDL.dll and libcurl-4.dll here manually
|
2008-04-15 14:19:03 +00:00
|
|
|
|
2008-06-05 08:42:37 +00:00
|
|
|
!include "MUI2.nsh"
|
|
|
|
|
2008-04-15 14:19:03 +00:00
|
|
|
; The name of the installer
|
|
|
|
Name "ioquake3"
|
|
|
|
|
|
|
|
; The file to write
|
|
|
|
OutFile "ioquake3-XXXVERSIONXXX-XXXRELEASEXXX.x86.exe"
|
|
|
|
|
|
|
|
; The default installation directory
|
|
|
|
InstallDir $PROGRAMFILES\ioquake3
|
|
|
|
|
2008-06-25 07:59:57 +00:00
|
|
|
; Registry key to check for directory (so if you install again, it will
|
2008-04-15 14:19:03 +00:00
|
|
|
; overwrite the old one automatically)
|
|
|
|
InstallDirRegKey HKLM "Software\ioquake3" "Install_Dir"
|
|
|
|
|
|
|
|
;--------------------------------
|
2008-06-05 08:42:37 +00:00
|
|
|
;Interface Settings
|
|
|
|
|
|
|
|
!define MUI_ABORTWARNING
|
2008-04-15 14:19:03 +00:00
|
|
|
|
2008-06-05 08:42:37 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Pages
|
2008-04-15 14:19:03 +00:00
|
|
|
|
2008-06-05 08:42:37 +00:00
|
|
|
#!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt"
|
|
|
|
!insertmacro MUI_PAGE_COMPONENTS
|
|
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
|
|
!insertmacro MUI_PAGE_INSTFILES
|
2008-04-15 14:19:03 +00:00
|
|
|
|
2008-06-05 08:42:37 +00:00
|
|
|
!insertmacro MUI_UNPAGE_CONFIRM
|
|
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
2008-06-25 07:59:57 +00:00
|
|
|
|
2008-06-05 08:42:37 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Languages
|
2008-06-25 07:59:57 +00:00
|
|
|
|
2008-06-05 08:42:37 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
2008-04-15 14:19:03 +00:00
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
|
|
|
|
; The stuff to install
|
|
|
|
Section "ioquake3 (required)"
|
|
|
|
|
|
|
|
SectionIn RO
|
2008-06-25 07:59:57 +00:00
|
|
|
|
2008-04-15 14:19:03 +00:00
|
|
|
; Set output path to the installation directory.
|
|
|
|
SetOutPath $INSTDIR
|
2008-06-25 07:59:57 +00:00
|
|
|
|
2008-04-15 14:19:03 +00:00
|
|
|
; Put file there
|
|
|
|
File "../../build/release-mingw32-x86/ioq3ded.x86.exe"
|
|
|
|
File "../../build/release-mingw32-x86/ioquake3.x86.exe"
|
|
|
|
File "../../COPYING.txt"
|
|
|
|
File "../../README.txt"
|
|
|
|
File "../../id-readme.txt"
|
2008-06-25 07:59:50 +00:00
|
|
|
File "../../voip-readme.txt"
|
2008-04-15 14:19:03 +00:00
|
|
|
|
|
|
|
SetOutPath "$INSTDIR\baseq3"
|
|
|
|
File "../../build/release-mingw32-x86/baseq3/cgamex86.dll"
|
|
|
|
File "../../build/release-mingw32-x86/baseq3/qagamex86.dll"
|
|
|
|
File "../../build/release-mingw32-x86/baseq3/uix86.dll"
|
|
|
|
SetOutPath "$INSTDIR\missionpack"
|
|
|
|
File "../../build/release-mingw32-x86/missionpack/cgamex86.dll"
|
|
|
|
File "../../build/release-mingw32-x86/missionpack/qagamex86.dll"
|
|
|
|
File "../../build/release-mingw32-x86/missionpack/uix86.dll"
|
2008-06-25 07:59:57 +00:00
|
|
|
|
2008-04-15 14:19:03 +00:00
|
|
|
; Write the installation path into the registry
|
|
|
|
WriteRegStr HKLM SOFTWARE\ioquake3 "Install_Dir" "$INSTDIR"
|
2008-06-25 07:59:57 +00:00
|
|
|
|
2008-04-15 14:19:03 +00:00
|
|
|
; Write the uninstall keys for Windows
|
|
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "DisplayName" "ioquake3"
|
|
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
|
|
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "NoModify" 1
|
|
|
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "NoRepair" 1
|
|
|
|
WriteUninstaller "uninstall.exe"
|
2008-06-25 07:59:57 +00:00
|
|
|
|
2008-04-15 14:19:03 +00:00
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
; Optional section (can be disabled by the user)
|
|
|
|
Section "Start Menu Shortcuts"
|
|
|
|
|
|
|
|
CreateDirectory "$SMPROGRAMS\ioquake3"
|
|
|
|
CreateShortCut "$SMPROGRAMS\ioquake3\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
|
|
|
|
CreateShortCut "$SMPROGRAMS\ioquake3\ioquake3.lnk" "$INSTDIR\ioquake3.x86.exe" "" "$INSTDIR\ioquake3.x86.exe" 0
|
2008-06-25 07:59:57 +00:00
|
|
|
|
2008-04-15 14:19:03 +00:00
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
Section "SDL.dll"
|
|
|
|
|
|
|
|
SetOutPath $INSTDIR
|
2008-06-25 07:59:57 +00:00
|
|
|
|
2008-04-15 14:19:03 +00:00
|
|
|
File "SDL.dll"
|
|
|
|
|
|
|
|
SectionEnd
|
|
|
|
|
2008-04-22 08:52:17 +00:00
|
|
|
Section "libcurl"
|
|
|
|
|
|
|
|
SetOutPath $INSTDIR
|
2008-06-25 07:59:57 +00:00
|
|
|
|
2008-04-22 08:52:17 +00:00
|
|
|
File "libcurl-4.dll"
|
|
|
|
|
|
|
|
SectionEnd
|
2008-04-15 14:19:03 +00:00
|
|
|
|
2008-06-25 07:59:53 +00:00
|
|
|
Section "OpenAL-Soft library"
|
|
|
|
|
|
|
|
SetOutPath $INSTDIR
|
2008-06-25 07:59:57 +00:00
|
|
|
|
2008-06-25 07:59:53 +00:00
|
|
|
File "openal32.dll"
|
|
|
|
|
|
|
|
SectionEnd
|
|
|
|
|
2008-04-15 14:19:03 +00:00
|
|
|
;--------------------------------
|
|
|
|
|
|
|
|
; Uninstaller
|
|
|
|
|
|
|
|
Section "Uninstall"
|
2008-06-25 07:59:57 +00:00
|
|
|
|
2008-04-15 14:19:03 +00:00
|
|
|
; Remove registry keys
|
|
|
|
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3"
|
|
|
|
DeleteRegKey HKLM SOFTWARE\ioquake3
|
|
|
|
|
|
|
|
; Remove files and uninstaller
|
|
|
|
Delete $INSTDIR\baseq3\cgamex86.dll
|
|
|
|
Delete $INSTDIR\baseq3\qagamex86.dll
|
|
|
|
Delete $INSTDIR\baseq3\uix86.dll
|
|
|
|
Delete $INSTDIR\missionpack\cgamex86.dll
|
|
|
|
Delete $INSTDIR\missionpack\qagamex86.dll
|
|
|
|
Delete $INSTDIR\missionpack\uix86.dll
|
|
|
|
Delete $INSTDIR\ioquake3.x86.exe
|
|
|
|
Delete $INSTDIR\ioq3ded.x86.exe
|
|
|
|
|
|
|
|
Delete $INSTDIR\COPYING.txt
|
|
|
|
Delete $INSTDIR\README.txt
|
|
|
|
Delete $INSTDIR\id-readme.txt
|
2008-06-25 07:59:50 +00:00
|
|
|
Delete $INSTDIR\voip-readme.txt
|
2008-04-15 14:19:03 +00:00
|
|
|
|
|
|
|
Delete $INSTDIR\SDL.dll
|
|
|
|
|
2008-04-22 08:52:17 +00:00
|
|
|
Delete $INSTDIR\libcurl-4.dll
|
|
|
|
|
2008-04-15 14:19:03 +00:00
|
|
|
Delete $INSTDIR\uninstall.exe
|
|
|
|
|
|
|
|
; Remove shortcuts, if any
|
2008-06-25 07:59:50 +00:00
|
|
|
Delete "$SMPROGRAMS\ioquake3\Uninstall.lnk"
|
|
|
|
Delete "$SMPROGRAMS\ioquake3\ioquake3.lnk"
|
2008-04-15 14:19:03 +00:00
|
|
|
|
|
|
|
; Remove directories used
|
|
|
|
RMDir "$SMPROGRAMS\ioquake3"
|
|
|
|
RMDir "$INSTDIR\baseq3"
|
|
|
|
RMDir "$INSTDIR\missionpack"
|
|
|
|
RMDir "$INSTDIR"
|
|
|
|
|
|
|
|
SectionEnd
|