diff options
author | Stefan Weil <sw@weilnetz.de> | 2015-05-03 19:57:09 +0200 |
---|---|---|
committer | Stefan Weil <sw@weilnetz.de> | 2015-09-24 20:52:28 +0200 |
commit | 805d8a67647768173c27761cd86e6f99a9d3b7cd (patch) | |
tree | d597fab4f27d060927b3121ef1620a8cfe6197f0 | |
parent | 9438fe9e56760e5e5e11d6c7d12ed9c64a0c8446 (diff) | |
download | qemu-805d8a67647768173c27761cd86e6f99a9d3b7cd.zip qemu-805d8a67647768173c27761cd86e6f99a9d3b7cd.tar.gz qemu-805d8a67647768173c27761cd86e6f99a9d3b7cd.tar.bz2 |
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>
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | qemu.nsi | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -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 @@ -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 |