mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
nsis: Add QEMU version information to Windows registry
The uninstall keys include an option key "DisplayVersion" which we set now. By default the version value is read from file VERSION, but it is also possible to pass VERSION=#.#.# to make. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
9438fe9e56
commit
805d8a6764
1
Makefile
1
Makefile
@ -623,6 +623,7 @@ endif # SIGNCODE
|
|||||||
$(if $(DLL_PATH),-DDLLDIR="$(DLL_PATH)") \
|
$(if $(DLL_PATH),-DDLLDIR="$(DLL_PATH)") \
|
||||||
-DSRCDIR="$(SRC_PATH)" \
|
-DSRCDIR="$(SRC_PATH)" \
|
||||||
-DOUTFILE="$(INSTALLER)" \
|
-DOUTFILE="$(INSTALLER)" \
|
||||||
|
-DDISPLAYVERSION="$(VERSION)" \
|
||||||
$(SRC_PATH)/qemu.nsi
|
$(SRC_PATH)/qemu.nsi
|
||||||
rm -r ${INSTDIR}
|
rm -r ${INSTDIR}
|
||||||
ifdef SIGNCODE
|
ifdef SIGNCODE
|
||||||
|
3
qemu.nsi
3
qemu.nsi
@ -139,6 +139,9 @@ Section "${PRODUCT} (required)"
|
|||||||
|
|
||||||
; Write the uninstall keys for Windows
|
; Write the uninstall keys for Windows
|
||||||
WriteRegStr HKLM "${UNINST_KEY}" "DisplayName" "QEMU"
|
WriteRegStr HKLM "${UNINST_KEY}" "DisplayName" "QEMU"
|
||||||
|
!ifdef DISPLAYVERSION
|
||||||
|
WriteRegStr HKLM "${UNINST_KEY}" "DisplayVersion" "${DISPLAYVERSION}"
|
||||||
|
!endif
|
||||||
WriteRegStr HKLM "${UNINST_KEY}" "UninstallString" '"${UNINST_EXE}"'
|
WriteRegStr HKLM "${UNINST_KEY}" "UninstallString" '"${UNINST_EXE}"'
|
||||||
WriteRegDWORD HKLM "${UNINST_KEY}" "NoModify" 1
|
WriteRegDWORD HKLM "${UNINST_KEY}" "NoModify" 1
|
||||||
WriteRegDWORD HKLM "${UNINST_KEY}" "NoRepair" 1
|
WriteRegDWORD HKLM "${UNINST_KEY}" "NoRepair" 1
|
||||||
|
Loading…
Reference in New Issue
Block a user