Bug 1343938 - Fix new installs erroneously not prompting to change the default browser setting. r=agashlin

MozReview-Commit-ID: EYPeEOE8Ldr

--HG--
extra : rebase_source : 4d8ab430700b20ad5b4934ec03c617143cf3f6e1
This commit is contained in:
Matt Howell 2017-03-02 10:55:24 -08:00
Родитель 6a1853b03f
Коммит 0fcdf6f8cb
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -556,6 +556,7 @@ Section "-InstallEndCleanup"
SetDetailsPrint none
${Unless} ${Silent}
ClearErrors
${MUI_INSTALLOPTIONS_READ} $0 "summary.ini" "Field 4" "State"
${If} "$0" == "1"
; NB: this code is duplicated in stub.nsi. Please keep in sync.
@ -592,7 +593,7 @@ Section "-InstallEndCleanup"
GetFunctionAddress $0 SetAsDefaultAppUserHKCU
UAC::ExecCodeSegment $0
${EndIf}
${Else}
${ElseIfNot} ${Errors}
${LogHeader} "Writing default-browser opt-out"
ClearErrors
WriteRegStr HKCU "Software\Mozilla\Firefox" "DefaultBrowserOptOut" "True"