summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-07-10 18:46:10 +0000
committerMoonchild <moonchild@palemoon.org>2020-07-10 18:46:10 +0000
commitf1b51be787c11090c8d9b2ec73255df7a67c7eb7 (patch)
tree9c6d35ce6f19e0fef3c47c7e2c152394854cf217 /toolkit/mozapps
parent2deaddfca28508ac1a634eb6088a1da8e571ec6e (diff)
parent82faff19e1761797b7a75f9221f0709c5a38bfe6 (diff)
downloadUXP-f1b51be787c11090c8d9b2ec73255df7a67c7eb7.tar
UXP-f1b51be787c11090c8d9b2ec73255df7a67c7eb7.tar.gz
UXP-f1b51be787c11090c8d9b2ec73255df7a67c7eb7.tar.lz
UXP-f1b51be787c11090c8d9b2ec73255df7a67c7eb7.tar.xz
UXP-f1b51be787c11090c8d9b2ec73255df7a67c7eb7.zip
Merge branch 'redwood' into releaseRELBASE_20200711
Diffstat (limited to 'toolkit/mozapps')
-rwxr-xr-xtoolkit/mozapps/installer/windows/nsis/common.nsh35
1 files changed, 7 insertions, 28 deletions
diff --git a/toolkit/mozapps/installer/windows/nsis/common.nsh b/toolkit/mozapps/installer/windows/nsis/common.nsh
index 57a25df9d..ed15a09f5 100755
--- a/toolkit/mozapps/installer/windows/nsis/common.nsh
+++ b/toolkit/mozapps/installer/windows/nsis/common.nsh
@@ -5120,6 +5120,9 @@
${GetParameters} $R8
+ ; Require elevation if the user can elevate
+ ${ElevateUAC}
+
${If} $R8 != ""
; Default install type
StrCpy $InstallType ${INSTALLTYPE_BASIC}
@@ -5172,28 +5175,14 @@
FileClose $R5
Delete $R6
${If} ${Errors}
- ; Attempt to elevate and then try again.
- ${ElevateUAC}
- GetTempFileName $R6 "$INSTDIR"
- FileOpen $R5 "$R6" w
- FileWrite $R5 "Write Access Test"
- FileClose $R5
- Delete $R6
- ${If} ${Errors}
- ; Nothing initialized so no need to call OnEndCommon
- Quit
- ${EndIf}
+ ; Nothing initialized so no need to call OnEndCommon
+ Quit
${EndIf}
${Else}
CreateDirectory "$INSTDIR"
${If} ${Errors}
- ; Attempt to elevate and then try again.
- ${ElevateUAC}
- CreateDirectory "$INSTDIR"
- ${If} ${Errors}
- ; Nothing initialized so no need to call OnEndCommon
- Quit
- ${EndIf}
+ ; Nothing initialized so no need to call OnEndCommon
+ Quit
${EndIf}
${EndIf}
@@ -5225,20 +5214,10 @@
${EndIf}
!endif
${EndIf}
- ${Else}
- ; If this isn't an INI install, we need to try to elevate now.
- ; We'll check the user's permission level later on to determine the
- ; default install path (which will be the real install path for /S).
- ; If an INI file is used, we try to elevate down that path when needed.
- ${ElevateUAC}
${EndUnless}
${EndIf}
ClearErrors
- ${IfNot} ${Silent}
- ${ElevateUAC}
- ${EndIf}
-
Pop $R5
Pop $R6
Pop $R7