Skip to content

Commit

Permalink
feat(nsis): Specify install dir based on architecture (#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
aulvi authored and develar committed Nov 8, 2016
1 parent 4cbdc31 commit 895411f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion templates/nsis/multiUser.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ Var installMode

StrCpy $INSTDIR "$PROGRAMFILES\${PRODUCT_FILENAME}\${VERSION}"

!ifdef APP_64
${if} ${RunningX64}
StrCpy $INSTDIR "$PROGRAMFILES64\${PRODUCT_FILENAME}\${VERSION}"
${endif}
!endif

# сhecks registry for previous installation path — for uninstall only, currently, installation path is not customizable
ReadRegStr $perMachineInstallationFolder HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation
!ifdef BUILD_UNINSTALLER
Expand All @@ -59,4 +65,4 @@ Var installMode
${endif}
!endif
!macroend
!endif
!endif

0 comments on commit 895411f

Please sign in to comment.