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