Remove fallback for $INSTDIR.

This commit is contained in:
Fedor 2019-12-25 15:43:22 +03:00
parent 6c25311e33
commit 69f4608677
1 changed files with 0 additions and 15 deletions

View File

@ -5581,21 +5581,6 @@
StrCpy $INSTDIR "$R9"
!endif
; If the user doesn't have write access to the installation directory set
; the installation directory to a subdirectory of the All Users application
; directory and if the user can't write to that location set the installation
; directory to a subdirectory of the users local application directory
; (e.g. non-roaming).
${CanWriteToInstallDir} $R9
StrCmp "$R9" "false" +1 finish_check_install_dir
SetShellVarContext all ; Set SHCTX to All Users
StrCpy $INSTDIR "$APPDATA\${BrandFullName}\"
${CanWriteToInstallDir} $R9
StrCmp "$R9" "false" +2 +1
StrCpy $INSTDIR "$LOCALAPPDATA\${BrandFullName}\"
finish_check_install_dir:
IfFileExists "$INSTDIR" +3 +1
Pop $R9
Return