Bug 1318133 - Replace calls to AddDDEHandlerValues with AddDisabledDDEHandlerValues. r=IanN a=IanN

This commit is contained in:
Robert Strong 2016-12-06 18:58:52 +01:00
Родитель 7eee43e542
Коммит 167468c52d
3 изменённых файлов: 16 добавлений и 19 удалений

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

@ -69,7 +69,7 @@ VIAddVersionKey "OriginalFilename" "setup.exe"
; Most commonly used macros for managing shortcuts ; Most commonly used macros for managing shortcuts
!insertmacro _LoggingShortcutsCommon !insertmacro _LoggingShortcutsCommon
!insertmacro AddDDEHandlerValues !insertmacro AddDisabledDDEHandlerValues
!insertmacro AddHandlerValues !insertmacro AddHandlerValues
!insertmacro ChangeMUIHeaderImage !insertmacro ChangeMUIHeaderImage
!insertmacro CheckForFilesInUse !insertmacro CheckForFilesInUse
@ -389,8 +389,8 @@ Section "-Application" APP_IDX
${AddHandlerValues} "SOFTWARE\Classes\SeaMonkeyHTML" "$3" \ ${AddHandlerValues} "SOFTWARE\Classes\SeaMonkeyHTML" "$3" \
"$INSTDIR\chrome\icons\default\html-file.ico,0" \ "$INSTDIR\chrome\icons\default\html-file.ico,0" \
"${AppRegName} Document" "" "" "${AppRegName} Document" "" ""
${AddDDEHandlerValues} "SeaMonkeyURL" "$1" "$8,0" "${AppRegName} URL" "" \ ${AddDisabledDDEHandlerValues} "SeaMonkeyURL" "$1" "$8,0" \
"${DDEApplication}" "$2" "WWW_OpenURL" "${AppRegName} URL" ""
${FixShellIconHandler} ${FixShellIconHandler}

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

@ -305,15 +305,15 @@
${AddHandlerValues} "$0\SeaMonkeyHTML" "$2" \ ${AddHandlerValues} "$0\SeaMonkeyHTML" "$2" \
"$INSTDIR\chrome\icons\default\html-file.ico,0" \ "$INSTDIR\chrome\icons\default\html-file.ico,0" \
"${AppRegName} Document" "" "" "${AppRegName} Document" "" ""
${AddDDEHandlerValues} "SeaMonkeyURL" "$1" "$8,0" "${AppRegName} URL" "delete" \ ${AddDisabledDDEHandlerValues} "SeaMonkeyURL" "$1" "$8,0" \
"${DDEApplication}" "$3" "WWW_OpenURL" "${AppRegName} URL" "delete"
; An empty string is used for the 4th & 5th params because the following ; An empty string is used for the 4th & 5th params because the following
; protocol handlers already have a display name and additional keys required ; protocol handlers already have a display name and the additional keys
; for a protocol handler. ; required for a protocol handler.
${AddDDEHandlerValues} "ftp" "$1" "$8,0" "" "" "${DDEApplication}" "$3" "WWW_OpenURL" ${AddDisabledDDEHandlerValues} "ftp" "$1" "$8,0" "" ""
${AddDDEHandlerValues} "http" "$1" "$8,0" "" "" "${DDEApplication}" "$3" "WWW_OpenURL" ${AddDisabledDDEHandlerValues} "http" "$1" "$8,0" "" ""
${AddDDEHandlerValues} "https" "$1" "$8,0" "" "" "${DDEApplication}" "$3" "WWW_OpenURL" ${AddDisabledDDEHandlerValues} "https" "$1" "$8,0" "" ""
ReadRegStr $6 HKCR ".htm" "" ReadRegStr $6 HKCR ".htm" ""
${If} "$6" != "SeaMonkeyHTML" ${If} "$6" != "SeaMonkeyHTML"
@ -701,26 +701,23 @@
${IsHandlerForInstallDir} "SeaMonkeyURL" $R9 ${IsHandlerForInstallDir} "SeaMonkeyURL" $R9
${If} "$R9" == "true" ${If} "$R9" == "true"
${AddDDEHandlerValues} "SeaMonkeyURL" "$3" "$8,0" "${AppRegName} URL" \ ${AddDisabledDDEHandlerValues} "SeaMonkeyURL" "$3" "$8,0" \
"delete" "${DDEApplication}" "$4" "WWW_OpenURL" "${AppRegName} URL" "delete"
${EndIf} ${EndIf}
${IsHandlerForInstallDir} "ftp" $R9 ${IsHandlerForInstallDir} "ftp" $R9
${If} "$R9" == "true" ${If} "$R9" == "true"
${AddDDEHandlerValues} "ftp" "$3" "$8,0" "" "" "${DDEApplication}" \ ${AddDisabledDDEHandlerValues} "ftp" "$3" "$8,0" "" ""
"$4" "WWW_OpenURL"
${EndIf} ${EndIf}
${IsHandlerForInstallDir} "http" $R9 ${IsHandlerForInstallDir} "http" $R9
${If} "$R9" == "true" ${If} "$R9" == "true"
${AddDDEHandlerValues} "http" "$3" "$8,0" "" "" "${DDEApplication}" \ ${AddDisabledDDEHandlerValues} "http" "$3" "$8,0" "" ""
"$4" "WWW_OpenURL"
${EndIf} ${EndIf}
${IsHandlerForInstallDir} "https" $R9 ${IsHandlerForInstallDir} "https" $R9
${If} "$R9" == "true" ${If} "$R9" == "true"
${AddDDEHandlerValues} "https" "$3" "$8,0" "" "" "${DDEApplication}" \ ${AddDisabledDDEHandlerValues} "https" "$3" "$8,0" "" ""
"$4" "WWW_OpenURL"
${EndIf} ${EndIf}
${IsHandlerForInstallDir} "SeaMonkeyEML" $R9 ${IsHandlerForInstallDir} "SeaMonkeyEML" $R9

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

@ -67,7 +67,7 @@ VIAddVersionKey "OriginalFilename" "helper.exe"
; Most commonly used macros for managing shortcuts ; Most commonly used macros for managing shortcuts
!insertmacro _LoggingShortcutsCommon !insertmacro _LoggingShortcutsCommon
!insertmacro AddDDEHandlerValues !insertmacro AddDisabledDDEHandlerValues
!insertmacro AddHandlerValues !insertmacro AddHandlerValues
!insertmacro CheckIfRegistryKeyExists !insertmacro CheckIfRegistryKeyExists
!insertmacro CleanUpdateDirectories !insertmacro CleanUpdateDirectories