From 805d8a67647768173c27761cd86e6f99a9d3b7cd Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 3 May 2015 19:57:09 +0200 Subject: 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 --- qemu.nsi | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qemu.nsi') diff --git a/qemu.nsi b/qemu.nsi index cc5fafd579..a20f6ef35b 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 -- cgit v1.2.1