Bug 388932 - Additional cleanup for talkback removal. r=bsmedberg

This commit is contained in:
rob_strong@exchangecode.com 2007-07-24 13:22:58 -07:00
Родитель 3e65919675
Коммит 33e484fdf1
2 изменённых файлов: 9 добавлений и 16 удалений

Просмотреть файл

@ -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"