Skip to content

Commit

Permalink
nsi: InstallDir $PROGRAMFILES for 32bit, 64bit installer for 64bit
Browse files Browse the repository at this point in the history
  • Loading branch information
FuPeiJiang committed Apr 22, 2024
1 parent b8a22a8 commit 7e87f15
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion distribute/win/autotrace.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ OutFile "autotrace-${VERSION}-${FLAVOUR}-setup.exe"
; The default installation directory
;InstallDir $EXEDIR
; Do not use PROGRAMFILES, that is for 32bit code only!
InstallDir $PROGRAMFILES64\AutoTrace
!If ${FLAVOUR} == "win64"
Target amd64-unicode
InstallDir $PROGRAMFILES64\AutoTrace
!endif
!If ${FLAVOUR} == "win32"
Target x86-unicode
InstallDir $PROGRAMFILES\AutoTrace
!endif

; Request application privileges for Windows Vista
; RequestExecutionLevel user
Expand Down

0 comments on commit 7e87f15

Please sign in to comment.