]> git.proxmox.com Git - mirror_qemu.git/commitdiff
nsis: Improved support for parallel installation of 32 and 64 bit code
authorStefan Weil <sw@weilnetz.de>
Sat, 28 Sep 2013 08:34:30 +0000 (10:34 +0200)
committerStefan Weil <sw@weilnetz.de>
Thu, 7 Nov 2013 06:02:44 +0000 (07:02 +0100)
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

index 0dc1f52693549d3f2f1585473f004541ad12d0ed..cc5fafd579a7ac523311d2d4461e8f7d9ad08552 100644 (file)
--- 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