* [Qemu-devel] [PATCH] nsis: Improved support for parallel installation of 32 and 64 bit code
@ 2013-09-28 8:34 Stefan Weil
0 siblings, 0 replies; only message in thread
From: Stefan Weil @ 2013-09-28 8:34 UTC (permalink / raw)
To: qemu-devel; +Cc: Stefan Weil
32 and 64 bit variants of QEMU already had different default installation
directories, but used a common registry key for saving the choosen
directory. This is confusing for users who want to install both variants,
so fix it by using different registry keys.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
qemu.nsi | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/qemu.nsi b/qemu.nsi
index 1d57455..1418baf 100644
--- a/qemu.nsi
+++ b/qemu.nsi
@@ -60,7 +60,11 @@ InstallDir $PROGRAMFILES\qemu
; Registry key to check for directory (so if you install again, it will
; overwrite the old one automatically)
-InstallDirRegKey HKLM "Software\qemu" "Install_Dir"
+!ifdef W64
+InstallDirRegKey HKLM "Software\qemu64" "Install_Dir"
+!else
+InstallDirRegKey HKLM "Software\qemu32" "Install_Dir"
+!endif
; Request administrator privileges for Windows Vista.
RequestExecutionLevel admin
--
1.7.10.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-09-28 8:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-28 8:34 [Qemu-devel] [PATCH] nsis: Improved support for parallel installation of 32 and 64 bit code Stefan Weil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).