Skip to contentSkip to conversation

nsis: Improved support for parallel installation of 32 and 64 bit code

PATCH New Stefan Weil 1 participant 1 message Sep 28, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nsis: Improved support for parallel installation of 32 and 64 bit code

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.

---
 qemu.nsi |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
qemu.nsi +5 -1
index 1d57455..1418baf 100644
@@ -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
Signature · 1 line
1.7.10.4