mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
nsis: Display ioquake3 version
Display version in the installer and add/remove software.
This commit is contained in:
parent
9738176849
commit
5362af3858
1 changed files with 5 additions and 2 deletions
|
@ -7,6 +7,8 @@
|
||||||
;
|
;
|
||||||
; you have to copy OpenAL32.dll here manually
|
; you have to copy OpenAL32.dll here manually
|
||||||
|
|
||||||
|
!define VERSION "XXXVERSIONXXX"
|
||||||
|
|
||||||
!define MULTIUSER_MUI
|
!define MULTIUSER_MUI
|
||||||
!define MULTIUSER_EXECUTIONLEVEL Highest
|
!define MULTIUSER_EXECUTIONLEVEL Highest
|
||||||
!define MULTIUSER_INSTALLMODE_COMMANDLINE
|
!define MULTIUSER_INSTALLMODE_COMMANDLINE
|
||||||
|
@ -24,7 +26,7 @@
|
||||||
Name "ioquake3"
|
Name "ioquake3"
|
||||||
|
|
||||||
; The file to write
|
; The file to write
|
||||||
OutFile "ioquake3-XXXVERSIONXXX-XXXRELEASEXXX.x86.exe"
|
OutFile "ioquake3-${VERSION}-XXXRELEASEXXX.x86.exe"
|
||||||
|
|
||||||
; The default installation directory
|
; The default installation directory
|
||||||
; set by Multiuser.nsh
|
; set by Multiuser.nsh
|
||||||
|
@ -71,7 +73,7 @@ Function un.onInit
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
; The stuff to install
|
; The stuff to install
|
||||||
Section "ioquake3 (required)" ioquake3
|
Section "ioquake3 ${VERSION} (required)" ioquake3
|
||||||
|
|
||||||
SectionIn RO
|
SectionIn RO
|
||||||
|
|
||||||
|
@ -114,6 +116,7 @@ Section "ioquake3 (required)" ioquake3
|
||||||
|
|
||||||
; Write the uninstall keys for Windows
|
; Write the uninstall keys for Windows
|
||||||
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "DisplayName" "ioquake3"
|
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "DisplayName" "ioquake3"
|
||||||
|
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "DisplayVersion" "${VERSION}"
|
||||||
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
||||||
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "NoModify" 1
|
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "NoModify" 1
|
||||||
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "NoRepair" 1
|
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "NoRepair" 1
|
||||||
|
|
Loading…
Reference in a new issue