зеркало из https://github.com/mozilla/pjs.git
Bug 388932 - Additional cleanup for talkback removal. r=bsmedberg
This commit is contained in:
Родитель
68e240d420
Коммит
e09ed603af
|
@ -820,19 +820,10 @@ Function preComponents
|
|||
FunctionEnd
|
||||
|
||||
Function leaveComponents
|
||||
; If DOMi exists then it will be Field 2.
|
||||
StrCpy $R1 2
|
||||
${If} ${FileExists} "$EXEDIR\optional\extensions\inspector@mozilla.org"
|
||||
${MUI_INSTALLOPTIONS_READ} $R0 "components.ini" "Field $R1" "State"
|
||||
; State will be 1 for checked and 0 for unchecked so we can use that to set
|
||||
; the section flags for installation.
|
||||
SectionSetFlags 1 $R0
|
||||
IntOp $R1 $R1 + 1
|
||||
${Else}
|
||||
SectionSetFlags 1 0 ; Disable install for DOMi
|
||||
${EndIf}
|
||||
|
||||
SectionSetFlags 2 0 ; Disable install of TalkBack
|
||||
${MUI_INSTALLOPTIONS_READ} $R0 "components.ini" "Field 2" "State"
|
||||
; State will be 1 for checked and 0 for unchecked so we can use that to set
|
||||
; the section flags for installation.
|
||||
SectionSetFlags 1 $R0
|
||||
FunctionEnd
|
||||
|
||||
Function preDirectory
|
||||
|
@ -1071,7 +1062,4 @@ Function .onInit
|
|||
; Hide DOMi in the components page if it isn't available.
|
||||
SectionSetText 1 ""
|
||||
${EndIf}
|
||||
|
||||
; Hide Talkback in the components page
|
||||
SectionSetText 2 ""
|
||||
FunctionEnd
|
||||
|
|
|
@ -58,6 +58,11 @@
|
|||
; Remove files that may be left behind by the application in the
|
||||
; VirtualStore directory.
|
||||
${CleanVirtualStore}
|
||||
|
||||
; Remove talkback if it is present (remove after bug 386760 is fixed)
|
||||
${If} ${FileExists} "$INSTDIR\extensions\talkback@mozilla.org\"
|
||||
RmDir /r "$INSTDIR\extensions\talkback@mozilla.org\"
|
||||
${EndIf}
|
||||
!macroend
|
||||
!define PostUpdate "!insertmacro PostUpdate"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче