Skip to content

Commit

Permalink
nsis: Improved support for parallel installation of 32 and 64 bit code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stweil committed Nov 7, 2013
1 parent 964668b commit 40b9cc5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qemu.nsi
Expand Up @@ -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
Expand Down

0 comments on commit 40b9cc5

Please sign in to comment.