mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 00:27:29 +09:00
Issue #1594 - restore UAC elevation in the uninstaller.
Effectively backs out BZ 1333789 which was uplifted to Firefox before we forked for UXP. Resolves #1594
This commit is contained in:
parent
c0409464b6
commit
478eed8da0
1 changed files with 7 additions and 28 deletions
|
|
@ -5151,6 +5151,9 @@
|
||||||
|
|
||||||
${GetParameters} $R8
|
${GetParameters} $R8
|
||||||
|
|
||||||
|
; Require elevation if the user can elevate
|
||||||
|
${ElevateUAC}
|
||||||
|
|
||||||
${If} $R8 != ""
|
${If} $R8 != ""
|
||||||
; Default install type
|
; Default install type
|
||||||
StrCpy $InstallType ${INSTALLTYPE_BASIC}
|
StrCpy $InstallType ${INSTALLTYPE_BASIC}
|
||||||
|
|
@ -5203,28 +5206,14 @@
|
||||||
FileClose $R5
|
FileClose $R5
|
||||||
Delete $R6
|
Delete $R6
|
||||||
${If} ${Errors}
|
${If} ${Errors}
|
||||||
; Attempt to elevate and then try again.
|
; Nothing initialized so no need to call OnEndCommon
|
||||||
${ElevateUAC}
|
Quit
|
||||||
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}
|
|
||||||
${EndIf}
|
${EndIf}
|
||||||
${Else}
|
${Else}
|
||||||
CreateDirectory "$INSTDIR"
|
CreateDirectory "$INSTDIR"
|
||||||
${If} ${Errors}
|
${If} ${Errors}
|
||||||
; Attempt to elevate and then try again.
|
; Nothing initialized so no need to call OnEndCommon
|
||||||
${ElevateUAC}
|
Quit
|
||||||
CreateDirectory "$INSTDIR"
|
|
||||||
${If} ${Errors}
|
|
||||||
; Nothing initialized so no need to call OnEndCommon
|
|
||||||
Quit
|
|
||||||
${EndIf}
|
|
||||||
${EndIf}
|
${EndIf}
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
|
|
@ -5256,20 +5245,10 @@
|
||||||
${EndIf}
|
${EndIf}
|
||||||
!endif
|
!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}
|
${EndUnless}
|
||||||
${EndIf}
|
${EndIf}
|
||||||
ClearErrors
|
ClearErrors
|
||||||
|
|
||||||
${IfNot} ${Silent}
|
|
||||||
${ElevateUAC}
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
Pop $R5
|
Pop $R5
|
||||||
Pop $R6
|
Pop $R6
|
||||||
Pop $R7
|
Pop $R7
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue