mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 450164: remove leftovers from DOMi removal from installer.nsi. r=robert
This commit is contained in:
parent
a19d587018
commit
c8c20c93ef
@ -54,7 +54,6 @@ RequestExecutionLevel user
|
||||
|
||||
; empty files - except for the comment line - for generating custom pages.
|
||||
!system 'echo ; > options.ini'
|
||||
!system 'echo ; > components.ini'
|
||||
!system 'echo ; > shortcuts.ini'
|
||||
!system 'echo ; > summary.ini'
|
||||
|
||||
@ -139,7 +138,6 @@ InstallDir "$PROGRAMFILES\${BrandFullName}\"
|
||||
ShowInstDetails nevershow
|
||||
|
||||
ReserveFile options.ini
|
||||
ReserveFile components.ini
|
||||
ReserveFile shortcuts.ini
|
||||
ReserveFile summary.ini
|
||||
|
||||
@ -176,9 +174,6 @@ ReserveFile summary.ini
|
||||
; Custom Options Page
|
||||
Page custom preOptions leaveOptions
|
||||
|
||||
; Custom Components Page
|
||||
Page custom preComponents leaveComponents
|
||||
|
||||
; Select Install Directory Page
|
||||
!define MUI_PAGE_CUSTOMFUNCTION_PRE preDirectory
|
||||
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE leaveDirectory
|
||||
@ -238,17 +233,6 @@ Section "-InstallStartCleanup"
|
||||
ClearErrors
|
||||
${EndIf}
|
||||
|
||||
${If} $InstallType == ${INSTALLTYPE_CUSTOM}
|
||||
; Custom installs.
|
||||
; If DOMi is installed and this install includes DOMi remove it from
|
||||
; the installation directory. This will remove it if the user deselected
|
||||
; DOMi on the components page.
|
||||
${If} ${FileExists} "$INSTDIR\extensions\inspector@mozilla.org"
|
||||
${AndIf} ${FileExists} "$EXEDIR\optional\extensions\inspector@mozilla.org"
|
||||
RmDir /r "$INSTDIR\extensions\inspector@mozilla.org"
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
|
||||
; Remove the updates directory for Vista and above
|
||||
${CleanUpdatesDir} "Mozilla\Firefox"
|
||||
|
||||
@ -461,22 +445,6 @@ Section "-Application" APP_IDX
|
||||
!insertmacro MUI_STARTMENU_WRITE_END
|
||||
SectionEnd
|
||||
|
||||
Section /o "Developer Tools" DOMI_IDX
|
||||
${If} ${FileExists} "$EXEDIR\optional\extensions\inspector@mozilla.org"
|
||||
SetDetailsPrint both
|
||||
DetailPrint $(STATUS_INSTALL_OPTIONAL)
|
||||
SetDetailsPrint none
|
||||
|
||||
${RemoveDir} "$INSTDIR\extensions\inspector@mozilla.org"
|
||||
ClearErrors
|
||||
${LogHeader} "Installing Developer Tools"
|
||||
${CopyFilesFromDir} "$EXEDIR\optional\extensions\inspector@mozilla.org" \
|
||||
"$INSTDIR\extensions\inspector@mozilla.org" \
|
||||
"$(ERROR_CREATE_DIRECTORY_PREFIX)" \
|
||||
"$(ERROR_CREATE_DIRECTORY_SUFFIX)"
|
||||
${EndIf}
|
||||
SectionEnd
|
||||
|
||||
; Cleanup operations to perform at the end of the installation.
|
||||
Section "-InstallEndCleanup"
|
||||
SetDetailsPrint both
|
||||
@ -666,23 +634,6 @@ Function leaveOptions
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
|
||||
Function preComponents
|
||||
${CheckCustomCommon}
|
||||
; If DOMi isn't available skip the components page
|
||||
${Unless} ${FileExists} "$EXEDIR\optional\extensions\inspector@mozilla.org"
|
||||
Abort
|
||||
${EndUnless}
|
||||
!insertmacro MUI_HEADER_TEXT "$(OPTIONAL_COMPONENTS_TITLE)" "$(OPTIONAL_COMPONENTS_SUBTITLE)"
|
||||
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "components.ini"
|
||||
FunctionEnd
|
||||
|
||||
Function leaveComponents
|
||||
${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 ${DOMI_IDX} $R0
|
||||
FunctionEnd
|
||||
|
||||
Function preDirectory
|
||||
${PreDirectoryCommon}
|
||||
FunctionEnd
|
||||
@ -735,11 +686,6 @@ Function preSummary
|
||||
FunctionEnd
|
||||
|
||||
Function leaveSummary
|
||||
${If} $InstallType != ${INSTALLTYPE_CUSTOM}
|
||||
; Set DOMi to be installed
|
||||
SectionSetFlags ${DOMI_IDX} 1
|
||||
${EndIf}
|
||||
|
||||
; Try to delete the app executable and if we can't delete it try to find the
|
||||
; app's message window and prompt the user to close the app. This allows
|
||||
; running an instance that is located in another directory. If for whatever
|
||||
@ -769,11 +715,9 @@ Function .onInit
|
||||
${InstallOnInitCommon} "$(WARN_UNSUPPORTED_MSG)"
|
||||
|
||||
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "options.ini"
|
||||
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "components.ini"
|
||||
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "shortcuts.ini"
|
||||
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "summary.ini"
|
||||
!insertmacro createBasicCustomSetAsDefaultOptionsINI
|
||||
!insertmacro createComponentsINI
|
||||
!insertmacro createShortcutsINI
|
||||
|
||||
; There must always be nonlocalized and localized directories.
|
||||
@ -782,15 +726,6 @@ Function .onInit
|
||||
IntOp $R8 $R5 + $R6
|
||||
SectionSetSize ${APP_IDX} $R8
|
||||
|
||||
${If} ${FileExists} "$EXEDIR\optional\extensions\inspector@mozilla.org"
|
||||
; Set the section size for DOMi.
|
||||
${GetSize} "$EXEDIR\optional\extensions\inspector@mozilla.org" "/S=0K" $0 $8 $9
|
||||
SectionSetSize ${DOMI_IDX} $0
|
||||
${Else}
|
||||
; Hide DOMi in the components page if it isn't available.
|
||||
SectionSetText ${DOMI_IDX} ""
|
||||
${EndIf}
|
||||
|
||||
; Initialize $hHeaderBitmap to prevent redundant changing of the bitmap if
|
||||
; the user clicks the back button
|
||||
StrCpy $hHeaderBitmap ""
|
||||
|
@ -51,11 +51,6 @@
|
||||
# from en-US contains a \n.
|
||||
|
||||
REG_APP_DESC=$BrandShortName delivers safe, easy web browsing. A familiar user interface, enhanced security features including protection from online identity theft, and integrated search let you get the most out of the web.
|
||||
OPTIONAL_COMPONENTS_TITLE=Choose Optional Components
|
||||
OPTIONAL_COMPONENTS_SUBTITLE=Choose which features of $BrandShortName you want to install.
|
||||
OPTIONAL_COMPONENTS_LABEL=Optional Components:
|
||||
DOMI_TITLE=DOM Inspector
|
||||
DOMI_TEXT=Inspects the structure and properties of a window and its contents.
|
||||
CONTEXT_OPTIONS=$BrandShortName &Options
|
||||
CONTEXT_SAFE_MODE=$BrandShortName &Safe Mode
|
||||
SAFE_MODE=Safe Mode
|
||||
|
Loading…
Reference in New Issue
Block a user