From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YszgF-0003ds-Ix for qemu-devel@nongnu.org; Thu, 14 May 2015 16:24:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YszgA-0004Ui-Ke for qemu-devel@nongnu.org; Thu, 14 May 2015 16:24:31 -0400 Received: from qemu.weilnetz.de ([37.221.198.45]:34918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YszgA-0004Su-El for qemu-devel@nongnu.org; Thu, 14 May 2015 16:24:26 -0400 From: Stefan Weil Date: Thu, 14 May 2015 22:24:22 +0200 Message-Id: <1431635062-31032-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] nsis: Add QEMU version information to Windows registry List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developer Cc: Stefan Weil 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 --- Makefile | 1 + qemu.nsi | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Makefile b/Makefile index f032158..367be32 100644 --- a/Makefile +++ b/Makefile @@ -574,6 +574,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