[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 1/5] nsis: Add QEMU version information to Windows re
From: |
Stefan Weil |
Subject: |
[Qemu-devel] [PULL 1/5] nsis: Add QEMU version information to Windows registry |
Date: |
Thu, 24 Sep 2015 22:16:04 +0200 |
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 <address@hidden>
---
Makefile | 1 +
qemu.nsi | 3 +++
2 files changed, 4 insertions(+)
diff --git a/Makefile b/Makefile
index 9e75362..68e2e1b 100644
--- a/Makefile
+++ b/Makefile
@@ -623,6 +623,7 @@ endif # SIGNCODE
$(if $(DLL_PATH),-DDLLDIR="$(DLL_PATH)") \
-DSRCDIR="$(SRC_PATH)" \
-DOUTFILE="$(INSTALLER)" \
+ -DDISPLAYVERSION="$(VERSION)" \
$(SRC_PATH)/qemu.nsi
rm -r ${INSTDIR}
ifdef SIGNCODE
diff --git a/qemu.nsi b/qemu.nsi
index cc5fafd..a20f6ef 100644
--- a/qemu.nsi
+++ b/qemu.nsi
@@ -139,6 +139,9 @@ Section "${PRODUCT} (required)"
; Write the uninstall keys for Windows
WriteRegStr HKLM "${UNINST_KEY}" "DisplayName" "QEMU"
+!ifdef DISPLAYVERSION
+ WriteRegStr HKLM "${UNINST_KEY}" "DisplayVersion" "${DISPLAYVERSION}"
+!endif
WriteRegStr HKLM "${UNINST_KEY}" "UninstallString" '"${UNINST_EXE}"'
WriteRegDWORD HKLM "${UNINST_KEY}" "NoModify" 1
WriteRegDWORD HKLM "${UNINST_KEY}" "NoRepair" 1
--
2.1.4
- [Qemu-devel] [PULL 0/5] Patch queue for w32/w64, Stefan Weil, 2015/09/24
- [Qemu-devel] [PULL 1/5] nsis: Add QEMU version information to Windows registry,
Stefan Weil <=
- [Qemu-devel] [PULL 2/5] slirp: Fix non blocking connect for w32, Stefan Weil, 2015/09/24
- [Qemu-devel] [PULL 4/5] gtk: avoid redefining _WIN32_WINNT macro, Stefan Weil, 2015/09/24
- [Qemu-devel] [PULL 3/5] qemu-thread: add a fast path to the Win32 QemuEvent, Stefan Weil, 2015/09/24
- [Qemu-devel] [PULL 5/5] oslib-win32: only provide localtime_r/gmtime_r if missing, Stefan Weil, 2015/09/24
- Re: [Qemu-devel] [PULL 0/5] Patch queue for w32/w64, Peter Maydell, 2015/09/24