branding.nsi (3765B)
1 # This Source Code Form is subject to the terms of the Mozilla Public 2 # License, v. 2.0. If a copy of the MPL was not distributed with this 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 4 5 # NSIS branding defines for official release builds. 6 # The nightly build branding.nsi is located in browser/installer/windows/nsis/ 7 # The unofficial build branding.nsi is located in browser/branding/unofficial/ 8 9 # BrandFullNameInternal is used for some registry and file system values 10 # instead of BrandFullName and typically should not be modified. 11 !define BrandFullNameInternal "Mozilla Firefox" 12 !define BrandFullName "Mozilla Firefox" 13 !define CompanyName "Mozilla Corporation" 14 !define URLInfoAbout "https://www.mozilla.org" 15 !define URLUpdateInfo "https://www.mozilla.org/firefox/${AppVersion}/releasenotes" 16 !define HelpLink "https://support.mozilla.org" 17 18 ; The OFFICIAL define is a workaround to support different urls for Release and 19 ; Beta since they share the same branding when building with other branches that 20 ; set the update channel to beta. 21 !define OFFICIAL 22 !define URLStubDownloadX86 "https://download.mozilla.org/?os=win&lang=${AB_CD}&product=firefox-latest" 23 !define URLStubDownloadAMD64 "https://download.mozilla.org/?os=win64&lang=${AB_CD}&product=firefox-latest" 24 !define URLStubDownloadAArch64 "https://download.mozilla.org/?os=win64-aarch64&lang=${AB_CD}&product=firefox-latest" 25 !define URLManualDownload "https://www.mozilla.org/${AB_CD}/firefox/installer-help/?channel=release&installer_lang=${AB_CD}" 26 !define URLSystemRequirements "https://www.mozilla.org/firefox/system-requirements/" 27 !define Channel "release" 28 29 # The installer's certificate name and issuer expected by the stub installer 30 !define CertNameDownload "Mozilla Corporation" 31 !define CertIssuerDownload "DigiCert Trusted G4 Code Signing RSA4096 SHA384 2021 CA1" 32 33 # Dialog units are used so the UI displays correctly with the system's DPI 34 # settings. These are tweaked to look good with the en-US strings; ideally 35 # we would customize them for each locale but we don't really have a way to 36 # implement that and it would be a ton of work for the localizers. 37 !define PROFILE_CLEANUP_LABEL_TOP "50u" 38 !define PROFILE_CLEANUP_LABEL_LEFT "22u" 39 !define PROFILE_CLEANUP_LABEL_WIDTH "175u" 40 !define PROFILE_CLEANUP_LABEL_HEIGHT "100u" 41 !define PROFILE_CLEANUP_LABEL_ALIGN "left" 42 !define PROFILE_CLEANUP_CHECKBOX_LEFT "22u" 43 !define PROFILE_CLEANUP_CHECKBOX_WIDTH "175u" 44 !define PROFILE_CLEANUP_BUTTON_LEFT "22u" 45 !define INSTALL_HEADER_TOP "70u" 46 !define INSTALL_HEADER_LEFT "22u" 47 !define INSTALL_HEADER_WIDTH "180u" 48 !define INSTALL_HEADER_HEIGHT "100u" 49 !define INSTALL_BODY_LEFT "22u" 50 !define INSTALL_BODY_WIDTH "180u" 51 !define INSTALL_INSTALLING_TOP "115u" 52 !define INSTALL_INSTALLING_LEFT "270u" 53 !define INSTALL_INSTALLING_WIDTH "150u" 54 !define INSTALL_PROGRESS_BAR_TOP "100u" 55 !define INSTALL_PROGRESS_BAR_LEFT "270u" 56 !define INSTALL_PROGRESS_BAR_WIDTH "150u" 57 !define INSTALL_PROGRESS_BAR_HEIGHT "12u" 58 59 !define PROFILE_CLEANUP_CHECKBOX_TOP_MARGIN "12u" 60 !define PROFILE_CLEANUP_BUTTON_TOP_MARGIN "12u" 61 !define PROFILE_CLEANUP_BUTTON_X_PADDING "80u" 62 !define PROFILE_CLEANUP_BUTTON_Y_PADDING "8u" 63 !define INSTALL_BODY_TOP_MARGIN "20u" 64 65 # Font settings that can be customized for each channel 66 !define INSTALL_HEADER_FONT_SIZE 20 67 !define INSTALL_HEADER_FONT_WEIGHT 600 68 !define INSTALL_INSTALLING_FONT_SIZE 15 69 !define INSTALL_INSTALLING_FONT_WEIGHT 600 70 71 # UI Colors that can be customized for each channel 72 !define COMMON_TEXT_COLOR 0x000000 73 !define COMMON_BACKGROUND_COLOR 0xFFFFFF 74 !define INSTALL_INSTALLING_TEXT_COLOR 0xFFFFFF 75 # This color is written as 0x00BBGGRR because it's actually a COLORREF value. 76 !define PROGRESS_BAR_BACKGROUND_COLOR 0xFFAA00