Bug 1548612 Part 3 - Add support for BrandProductName to SetBrandNameVars. r=agashlin

BrandProductName is a recently-introduced branding string which is intended to
not change with the channel of the product; e.g., for a Nightly Firefox build,
BrandShortName is not "Firefox", it's "Nightly", but BrandProductName is still
"Firefox". Some of the new stub installer copy needs a name string like this.

Depends on D31140

Differential Revision: https://phabricator.services.mozilla.com/D31141

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Matt Howell 2019-05-21 16:12:44 +00:00
Родитель 7adf1fa4c3
Коммит aa4f33994d
1 изменённых файлов: 14 добавлений и 4 удалений

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

@ -4990,6 +4990,7 @@ end:
Var BrandFullName
Var BrandFullNameDA
Var BrandShortName
Var BrandProductName
!endif
!verbose push
@ -5001,28 +5002,37 @@ end:
Push $R8
Push $R7
Push $R6
Push $R5
StrCpy $R8 "${BrandFullName}"
StrCpy $R7 "${BrandShortName}"
StrCpy $R6 "${BrandProductName}"
IfFileExists "$R9" +1 finish
ClearErrors
ReadINIStr $R6 $R9 "Branding" "BrandFullName"
ReadINIStr $R5 $R9 "Branding" "BrandFullName"
IfErrors +2 +1
StrCpy $R8 "$R6"
StrCpy $R8 "$R5"
ClearErrors
ReadINIStr $R6 $R9 "Branding" "BrandShortName"
ReadINIStr $R5 $R9 "Branding" "BrandShortName"
IfErrors +2 +1
StrCpy $R7 "$R6"
StrCpy $R7 "$R5"
ClearErrors
ReadINIStr $R5 $R9 "Branding" "BrandProductName"
IfErrors +2 +1
StrCpy $R6 "$R5"
finish:
StrCpy $BrandFullName "$R8"
${${_MOZFUNC_UN}WordReplace} "$R8" "&" "&&" "+" $R8
StrCpy $BrandFullNameDA "$R8"
StrCpy $BrandShortName "$R7"
StrCpy $BrandProductName "$R6"
Pop $R5
Pop $R6
Pop $R7
Pop $R8