Skip to content

Commit 18732f2

Browse files
committed
fix 56ba1d7
1 parent 564a622 commit 18732f2

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

ms-windows/QGIS-Installer.nsi

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ OutFile "${INSTALLER_NAME}"
6161
;Define installation folder
6262
InstallDir "$PROGRAMFILES\${QGIS_BASE}"
6363

64-
${If} ${RunningX64}
65-
DetailPrint "Installer running on 64-bit host"
66-
; disable registry redirection (enable access to 64-bit portion of registry)
67-
SetRegView 64
68-
; change install dir
69-
StrCpy $INSTDIR "$PROGRAMFILES64\${QGIS_BASE}"
70-
${EndIf}
71-
7264
;Tell the installer to show Install and Uninstall details as default
7365
ShowInstDetails show
7466
ShowUnInstDetails show
@@ -98,6 +90,13 @@ ShowUnInstDetails show
9890
; if the uninstall procedure succeeded, call the current installer asking for the install PATH
9991

10092
Function .onInit
93+
${If} ${RunningX64}
94+
DetailPrint "Installer running on 64-bit host"
95+
; disable registry redirection (enable access to 64-bit portion of registry)
96+
SetRegView 64
97+
; change install dir
98+
StrCpy $INSTDIR "$PROGRAMFILES64\${QGIS_BASE}"
99+
${EndIf}
101100

102101
Var /GLOBAL ASK_FOR_PATH
103102
StrCpy $ASK_FOR_PATH "YES"

0 commit comments

Comments
 (0)