browser/installer/windows/nsis/defines.nsi.in

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 #filter substitution
michael@0 2 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 5
michael@0 6 # Defining FunnelcakeVersion will append the value of StubURLVersionAppend to
michael@0 7 # StubURLVersion, append the value of URLManualDownloadAppend to
michael@0 8 # URLManualDownload, and append the value of URLStubDownloadAppend to
michael@0 9 # URLStubDownload. The value of FunnelcakeVersion should not be defined when it
michael@0 10 # is not used and when it is defined its value should never be empty.
michael@0 11 # !define FunnelcakeVersion "999"
michael@0 12
michael@0 13 !ifdef FunnelcakeVersion
michael@0 14 !define URLManualDownloadAppend "&f=${FunnelcakeVersion}"
michael@0 15 !define URLStubDownloadAppend "-f${FunnelcakeVersion}"
michael@0 16 !define StubURLVersionAppend "-${FunnelcakeVersion}"
michael@0 17 !else
michael@0 18 !define URLManualDownloadAppend ""
michael@0 19 !define URLStubDownloadAppend ""
michael@0 20 !define StubURLVersionAppend ""
michael@0 21 !endif
michael@0 22
michael@0 23 # These defines should match application.ini settings
michael@0 24 !define AppName "Firefox"
michael@0 25 !define AppVersion "@APP_VERSION@"
michael@0 26 !define GREVersion @MOZILLA_VERSION@
michael@0 27 !define AB_CD "@AB_CD@"
michael@0 28
michael@0 29 !define FileMainEXE "@MOZ_APP_NAME@.exe"
michael@0 30 !define WindowClass "FirefoxMessageWindow"
michael@0 31 !define DDEApplication "Firefox"
michael@0 32 !define AppRegName "Firefox"
michael@0 33
michael@0 34 !define BrandShortName "@MOZ_APP_DISPLAYNAME@"
michael@0 35 !define BrandFullName "${BrandFullNameInternal}"
michael@0 36
michael@0 37 !define NO_UNINSTALL_SURVEY
michael@0 38
michael@0 39 !define CERTIFICATE_NAME "Mozilla Corporation"
michael@0 40 !define CERTIFICATE_ISSUER "DigiCert Assured ID Code Signing CA-1"
michael@0 41
michael@0 42 # LSP_CATEGORIES is the permitted LSP categories for the application. Each LSP
michael@0 43 # category value is ANDed together to set multiple permitted categories.
michael@0 44 # See http://msdn.microsoft.com/en-us/library/ms742253%28VS.85%29.aspx
michael@0 45 # The value below removes all LSP categories previously set.
michael@0 46 !define LSP_CATEGORIES "0x00000000"
michael@0 47
michael@0 48 !if "@MOZ_UPDATE_CHANNEL@" == ""
michael@0 49 !define UpdateChannel "Unknown"
michael@0 50 !else
michael@0 51 !define UpdateChannel "@MOZ_UPDATE_CHANNEL@"
michael@0 52 !endif
michael@0 53
michael@0 54 # Due to official and beta using the same branding this is needed to
michael@0 55 # differentiante between the url used by the stub for downloading.
michael@0 56 !if "@MOZ_UPDATE_CHANNEL@" == "beta"
michael@0 57 !define BETA_UPDATE_CHANNEL
michael@0 58 !endif
michael@0 59
michael@0 60 !define BaseURLStubPing "http://download-stats.mozilla.org/stub"
michael@0 61
michael@0 62 # ARCH is used when it is necessary to differentiate the x64 registry keys from
michael@0 63 # the x86 registry keys (e.g. the uninstall registry key).
michael@0 64 #ifdef HAVE_64BIT_OS
michael@0 65 !define HAVE_64BIT_OS
michael@0 66 !define ARCH "x64"
michael@0 67 !define MinSupportedVer "Microsoft Windows Vista x64"
michael@0 68 #else
michael@0 69 !define ARCH "x86"
michael@0 70 !define MinSupportedVer "Microsoft Windows XP SP2"
michael@0 71 #endif
michael@0 72
michael@0 73 #ifdef MOZ_MAINTENANCE_SERVICE
michael@0 74 !define MOZ_MAINTENANCE_SERVICE
michael@0 75 #endif
michael@0 76
michael@0 77 #ifdef MOZ_METRO
michael@0 78 !define MOZ_METRO
michael@0 79 #endif
michael@0 80
michael@0 81 #ifdef MOZ_CONTENT_SANDBOX
michael@0 82 !define MOZ_CONTENT_SANDBOX
michael@0 83 #endif
michael@0 84
michael@0 85 # File details shared by both the installer and uninstaller
michael@0 86 VIProductVersion "1.0.0.0"
michael@0 87 VIAddVersionKey "ProductName" "${BrandShortName}"
michael@0 88 VIAddVersionKey "CompanyName" "${CompanyName}"
michael@0 89 #ifdef MOZ_OFFICIAL_BRANDING
michael@0 90 VIAddVersionKey "LegalTrademarks" "${BrandShortName} is a Trademark of The Mozilla Foundation."
michael@0 91 #endif
michael@0 92 VIAddVersionKey "LegalCopyright" "${CompanyName}"
michael@0 93 VIAddVersionKey "FileVersion" "${AppVersion}"
michael@0 94 VIAddVersionKey "ProductVersion" "${AppVersion}"
michael@0 95 # Comments is not used but left below commented out for future reference
michael@0 96 # VIAddVersionKey "Comments" "Comments"
michael@0 97
michael@0 98 # It isn't possible to get the size of the installation prior to downloading
michael@0 99 # so the stub installer uses an estimate.
michael@0 100 !define APPROXIMATE_REQUIRED_SPACE_MB "42.2"
michael@0 101
michael@0 102 # Control positions in Dialog Units so they are placed correctly with
michael@0 103 # non-default DPI settings
michael@0 104 !define OPTIONS_ITEM_EDGE_DU 90u
michael@0 105 !define OPTIONS_ITEM_WIDTH_DU 356u
michael@0 106 !define OPTIONS_SUBITEM_EDGE_DU 119u
michael@0 107 !define OPTIONS_SUBITEM_WIDTH_DU 327u
michael@0 108 !define INSTALL_BLURB_TOP_DU 78u
michael@0 109 !define APPNAME_BMP_EDGE_DU 19u
michael@0 110 !define APPNAME_BMP_TOP_DU 12u

mercurial