mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
Revert "Issue #1229 - Remove fallback for $INSTDIR"
This reverts commit c87432ab7e.
This commit is contained in:
parent
5a84cf5aab
commit
e80beccfe4
1 changed files with 15 additions and 0 deletions
|
|
@ -5587,6 +5587,21 @@
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue