forked from BrowserWorks/waterfox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatch.diff
More file actions
401 lines (371 loc) · 15.5 KB
/
Copy pathpatch.diff
File metadata and controls
401 lines (371 loc) · 15.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
diff --git a/browser/installer/windows/nsis/installer.nsi b/browser/installer/windows/nsis/installer.nsi
index a216a1b..59976ec 100755
--- a/browser/installer/windows/nsis/installer.nsi
+++ b/browser/installer/windows/nsis/installer.nsi
@@ -319,7 +319,7 @@ Section "-Application" APP_IDX
; Default for creating Quick Launch shortcut (1 = create, 0 = don't create)
${If} $AddQuickLaunchSC == ""
; Don't install the quick launch shortcut on Windows 7
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
StrCpy $AddQuickLaunchSC "0"
${Else}
StrCpy $AddQuickLaunchSC "1"
@@ -527,7 +527,7 @@ Section "-Application" APP_IDX
${If} ${FileExists} "$SMPROGRAMS\${BrandFullName}.lnk"
ShellLink::SetShortCutWorkingDirectory "$SMPROGRAMS\${BrandFullName}.lnk" \
"$INSTDIR"
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
${AndIf} "$AppUserModelID" != ""
ApplicationID::Set "$SMPROGRAMS\${BrandFullName}.lnk" "$AppUserModelID" "true"
${EndIf}
@@ -542,7 +542,7 @@ Section "-Application" APP_IDX
${If} ${FileExists} "$DESKTOP\${BrandFullName}.lnk"
ShellLink::SetShortCutWorkingDirectory "$DESKTOP\${BrandFullName}.lnk" \
"$INSTDIR"
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
${AndIf} "$AppUserModelID" != ""
ApplicationID::Set "$DESKTOP\${BrandFullName}.lnk" "$AppUserModelID" "true"
${EndIf}
@@ -555,7 +555,7 @@ Section "-Application" APP_IDX
; If elevated the Quick Launch shortcut must be added from the unelevated
; original process.
${If} $AddQuickLaunchSC == 1
- ${Unless} ${AtLeastWin7}
+ ${Unless} ${AtLeastWinXP}
ClearErrors
${GetParameters} $0
${GetOptions} "$0" "/UAC:" $0
@@ -901,7 +901,7 @@ Function leaveShortcuts
${MUI_INSTALLOPTIONS_READ} $AddStartMenuSC "shortcuts.ini" "Field 3" "State"
; Don't install the quick launch shortcut on Windows 7
- ${Unless} ${AtLeastWin7}
+ ${Unless} ${AtLeastWinXP}
${MUI_INSTALLOPTIONS_READ} $AddQuickLaunchSC "shortcuts.ini" "Field 4" "State"
${EndUnless}
@@ -1104,7 +1104,7 @@ Function .onInit
; The commands inside this ifndef are needed prior to NSIS 3.0a2 and can be
; removed after we require NSIS 3.0a2 or greater.
!ifndef NSIS_PACKEDVERSION
- ${If} ${AtLeastWinVista}
+ ${If} ${AtLeastWinXP}
System::Call 'user32::SetProcessDPIAware()'
${EndIf}
!endif
@@ -1156,7 +1156,7 @@ Function .onInit
; Setup the shortcuts.ini file for the Custom Shortcuts Page
; Don't offer to install the quick launch shortcut on Windows 7
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Settings" NumFields "3"
${Else}
WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Settings" NumFields "4"
@@ -1187,7 +1187,7 @@ Function .onInit
WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 3" State "1"
; Don't offer to install the quick launch shortcut on Windows 7
- ${Unless} ${AtLeastWin7}
+ ${Unless} ${AtLeastWinXP}
WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Type "checkbox"
WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Text "$(ICONS_QUICKLAUNCH)"
WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Left "0"
diff --git a/browser/installer/windows/nsis/maintenanceservice_installer.nsi b/browser/installer/windows/nsis/maintenanceservice_installer.nsi
index ef30c13..29f8ae9 100755
--- a/browser/installer/windows/nsis/maintenanceservice_installer.nsi
+++ b/browser/installer/windows/nsis/maintenanceservice_installer.nsi
@@ -136,7 +136,7 @@ Function un.onInit
; The commands inside this ifndef are needed prior to NSIS 3.0a2 and can be
; removed after we require NSIS 3.0a2 or greater.
!ifndef NSIS_PACKEDVERSION
- ${If} ${AtLeastWinVista}
+ ${If} ${AtLeastWinXP}
System::Call 'user32::SetProcessDPIAware()'
${EndIf}
!endif
diff --git a/browser/installer/windows/nsis/shared.nsh b/browser/installer/windows/nsis/shared.nsh
index 9b5341a..385d82e 100755
--- a/browser/installer/windows/nsis/shared.nsh
+++ b/browser/installer/windows/nsis/shared.nsh
@@ -286,7 +286,7 @@ ${EndIf}
CreateShortCut "$DESKTOP\${BrandFullName}.lnk" "$INSTDIR\${FileMainEXE}"
${If} ${FileExists} "$DESKTOP\${BrandFullName}.lnk"
ShellLink::SetShortCutWorkingDirectory "$DESKTOP\${BrandFullName}.lnk" "$INSTDIR"
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
${AndIf} "$AppUserModelID" != ""
ApplicationID::Set "$DESKTOP\${BrandFullName}.lnk" "$AppUserModelID" "true"
${EndIf}
@@ -297,7 +297,7 @@ ${EndIf}
${If} ${FileExists} "$DESKTOP\${BrandFullName}.lnk"
ShellLink::SetShortCutWorkingDirectory "$DESKTOP\${BrandFullName}.lnk" \
"$INSTDIR"
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
${AndIf} "$AppUserModelID" != ""
ApplicationID::Set "$DESKTOP\${BrandFullName}.lnk" "$AppUserModelID" "true"
${EndIf}
@@ -312,7 +312,7 @@ ${EndIf}
${If} ${FileExists} "$SMPROGRAMS\${BrandFullName}.lnk"
ShellLink::SetShortCutWorkingDirectory "$SMPROGRAMS\${BrandFullName}.lnk" \
"$INSTDIR"
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
${AndIf} "$AppUserModelID" != ""
ApplicationID::Set "$SMPROGRAMS\${BrandFullName}.lnk" "$AppUserModelID" "true"
${EndIf}
@@ -324,7 +324,7 @@ ${EndIf}
${If} ${FileExists} "$SMPROGRAMS\${BrandFullName}.lnk"
ShellLink::SetShortCutWorkingDirectory "$SMPROGRAMS\${BrandFullName}.lnk" \
"$INSTDIR"
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
${AndIf} "$AppUserModelID" != ""
ApplicationID::Set "$SMPROGRAMS\${BrandFullName}.lnk" "$AppUserModelID" "true"
${EndIf}
@@ -334,7 +334,7 @@ ${EndIf}
${EndUnless}
; Windows 7 doesn't use the QuickLaunch directory
- ${Unless} ${AtLeastWin7}
+ ${Unless} ${AtLeastWinXP}
${AndUnless} ${FileExists} "$QUICKLAUNCH\${BrandFullName}.lnk"
CreateShortCut "$QUICKLAUNCH\${BrandFullName}.lnk" \
"$INSTDIR\${FileMainEXE}"
@@ -1128,7 +1128,7 @@ ${EndIf}
${If} ${Errors}
ClearErrors
WriteIniStr "$0" "TASKBAR" "Migrated" "true"
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
; No need to check the default on Win8 and later
${If} ${AtMostWin2008R2}
; Check if the Firefox is the http handler for this user
@@ -1156,7 +1156,7 @@ ${EndIf}
; model ID removes a pinned pinned Start Menu shortcut this will also add a
; pinned Start Menu shortcut.
!macro PinToTaskBar
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
StrCpy $8 "false" ; Whether a shortcut had to be created
${IsPinnedToTaskBar} "$INSTDIR\${FileMainEXE}" $R9
${If} "$R9" == "false"
@@ -1258,7 +1258,7 @@ ${EndIf}
${If} ${FileExists} "$SMPROGRAMS\${BrandFullName}.lnk"
ShellLink::SetShortCutWorkingDirectory "$SMPROGRAMS\${BrandFullName}.lnk" \
"$INSTDIR"
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
${AndIf} "$AppUserModelID" != ""
ApplicationID::Set "$SMPROGRAMS\${BrandFullName}.lnk" \
"$AppUserModelID" "true"
@@ -1471,7 +1471,7 @@ Function SetAsDefaultAppUserHKCU
${SetHandlers}
- ${If} ${AtLeastWinVista}
+ ${If} ${AtLeastWinXP}
; Only register as the handler on Vista and above if the app registry name
; exists under the RegisteredApplications registry key. The protocol and
; file handlers set previously at the user level will associate this install
@@ -1490,7 +1490,7 @@ FunctionEnd
; Helper for updating the shortcut application model IDs.
Function FixShortcutAppModelIDs
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
${AndIf} "$AppUserModelID" != ""
${UpdateShortcutAppModelIDs} "$INSTDIR\${FileMainEXE}" "$AppUserModelID" $0
${EndIf}
diff --git a/browser/installer/windows/nsis/stub.nsi b/browser/installer/windows/nsis/stub.nsi
index 8c4b9f9..e3c9941 100755
--- a/browser/installer/windows/nsis/stub.nsi
+++ b/browser/installer/windows/nsis/stub.nsi
@@ -316,7 +316,7 @@ Function .onInit
!ifdef HAVE_64BIT_BUILD
; Restrict x64 builds from being installed on x86 and pre Win7
${Unless} ${RunningX64}
- ${OrUnless} ${AtLeastWin7}
+ ${OrUnless} ${AtLeastWinXP}
MessageBox MB_OK|MB_ICONSTOP "$(WARN_MIN_SUPPORTED_OS_MSG)"
Quit
${EndUnless}
@@ -360,7 +360,7 @@ Function .onInit
; The commands inside this ifndef are needed prior to NSIS 3.0a2 and can be
; removed after we require NSIS 3.0a2 or greater.
!ifndef NSIS_PACKEDVERSION
- ${If} ${AtLeastWinVista}
+ ${If} ${AtLeastWinXP}
System::Call 'user32::SetProcessDPIAware()'
${EndIf}
!endif
@@ -396,7 +396,7 @@ Function .onInit
${EndIf}
; The interval in MS used for the progress bars set as marquee.
- ${If} ${AtLeastWinVista}
+ ${If} ${AtLeastWinXP}
StrCpy $ProgressbarMarqueeIntervalMS "10"
${Else}
StrCpy $ProgressbarMarqueeIntervalMS "50"
@@ -641,7 +641,7 @@ Function SendPing
${EndIf}
${If} "$R2" == "0"
- ${AndIf} ${AtLeastWinVista}
+ ${AndIf} ${AtLeastWinXP}
; Check to see if this install location is currently set as the default
; browser by Default Programs which is only available on Vista and above.
ClearErrors
@@ -897,7 +897,7 @@ Function createOptions
SetCtlColors $0 ${COMMON_TEXT_COLOR_NORMAL} ${COMMON_BKGRD_COLOR}
SendMessage $0 ${WM_SETFONT} $FontNormal 0
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
StrCpy $0 "$(ADD_SC_TASKBAR)"
${Else}
StrCpy $0 "$(ADD_SC_QUICKLAUNCHBAR)"
diff --git a/browser/installer/windows/nsis/uninstaller.nsi b/browser/installer/windows/nsis/uninstaller.nsi
index 88938a4..62fdf75 100755
--- a/browser/installer/windows/nsis/uninstaller.nsi
+++ b/browser/installer/windows/nsis/uninstaller.nsi
@@ -252,7 +252,7 @@ Section "Uninstall"
${un.DeleteShortcuts}
; Unregister resources associated with Win7 taskbar jump lists.
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
${AndIf} "$AppUserModelID" != ""
ApplicationID::UninstallJumpLists "$AppUserModelID"
${EndIf}
@@ -610,7 +610,7 @@ Function un.onInit
; The commands inside this ifndef are needed prior to NSIS 3.0a2 and can be
; removed after we require NSIS 3.0a2 or greater.
!ifndef NSIS_PACKEDVERSION
- ${If} ${AtLeastWinVista}
+ ${If} ${AtLeastWinXP}
System::Call 'user32::SetProcessDPIAware()'
${EndIf}
!endif
diff --git a/configure.in b/configure.in
index 1454a13..9bfefc9 100755
--- a/configure.in
+++ b/configure.in
@@ -2204,7 +2204,7 @@ ia64*-hpux*)
if test "$CPU_ARCH" = "x86"; then
WIN32_SUBSYSTEM_VERSION=5.01
else
- WIN32_SUBSYSTEM_VERSION=6.01
+ WIN32_SUBSYSTEM_VERSION=5.02
fi
WIN32_CONSOLE_EXE_LDFLAGS=-SUBSYSTEM:CONSOLE,$WIN32_SUBSYSTEM_VERSION
WIN32_GUI_EXE_LDFLAGS=-SUBSYSTEM:WINDOWS,$WIN32_SUBSYSTEM_VERSION
diff --git a/toolkit/components/maintenanceservice/bootstrapinstaller/maintenanceservice_installer.nsi b/toolkit/components/maintenanceservice/bootstrapinstaller/maintenanceservice_installer.nsi
index 9e831dc..49ad028 100755
--- a/toolkit/components/maintenanceservice/bootstrapinstaller/maintenanceservice_installer.nsi
+++ b/toolkit/components/maintenanceservice/bootstrapinstaller/maintenanceservice_installer.nsi
@@ -133,7 +133,7 @@ Function un.onInit
; The commands inside this ifndef are needed prior to NSIS 3.0a2 and can be
; removed after we require NSIS 3.0a2 or greater.
!ifndef NSIS_PACKEDVERSION
- ${If} ${AtLeastWinVista}
+ ${If} ${AtLeastWinXP}
System::Call 'user32::SetProcessDPIAware()'
${EndIf}
!endif
diff --git a/toolkit/mozapps/installer/windows/nsis/common.nsh b/toolkit/mozapps/installer/windows/nsis/common.nsh
index efc2ae0..5878cc7 100755
--- a/toolkit/mozapps/installer/windows/nsis/common.nsh
+++ b/toolkit/mozapps/installer/windows/nsis/common.nsh
@@ -3694,7 +3694,7 @@
Push $R5
Push $R4
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
; Since shortcuts that are pinned can later be removed without removing
; the pinned shortcut unpin the pinned shortcuts for the application's
; main exe using the pinned shortcuts themselves.
@@ -5075,7 +5075,7 @@
!ifdef HAVE_64BIT_BUILD
${Unless} ${RunningX64}
- ${OrUnless} ${AtLeastWin7}
+ ${OrUnless} ${AtLeastWinXP}
MessageBox MB_OK|MB_ICONSTOP "$R9" IDOK
; Nothing initialized so no need to call OnEndCommon
Quit
@@ -5808,7 +5808,7 @@
Push $0
!ifndef NONADMIN_ELEVATE
- ${If} ${AtLeastWinVista}
+ ${If} ${AtLeastWinXP}
UAC::IsAdmin
; If the user is not an admin already
${If} "$0" != "1"
@@ -5839,7 +5839,7 @@
${EndIf}
${EndIf}
!else
- ${If} ${AtLeastWinVista}
+ ${If} ${AtLeastWinXP}
UAC::IsAdmin
; If the user is not an admin already
${If} "$0" != "1"
@@ -5952,7 +5952,7 @@
!define ${_MOZFUNC_UN}UnloadUAC "!insertmacro ${_MOZFUNC_UN}UnloadUACCall"
Function ${_MOZFUNC_UN}UnloadUAC
- ${Unless} ${AtLeastWinVista}
+ ${Unless} ${AtLeastWinXP}
Return
${EndUnless}
@@ -6605,7 +6605,7 @@
!define ${_MOZFUNC_UN}SetAppLSPCategories "!insertmacro ${_MOZFUNC_UN}SetAppLSPCategoriesCall"
Function ${_MOZFUNC_UN}SetAppLSPCategories
- ${Unless} ${AtLeastWinVista}
+ ${Unless} ${AtLeastWinXP}
Return
${EndUnless}
@@ -6718,7 +6718,7 @@
StrCpy $R5 "false"
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
${AndIf} ${FileExists} "$QUICKLAUNCH\User Pinned\TaskBar"
FindFirst $R8 $R7 "$QUICKLAUNCH\User Pinned\TaskBar\*.lnk"
${Do}
@@ -6798,7 +6798,7 @@
StrCpy $R5 "false"
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
${AndIf} ${FileExists} "$QUICKLAUNCH\User Pinned\StartMenu"
FindFirst $R8 $R7 "$QUICKLAUNCH\User Pinned\StartMenu\*.lnk"
${Do}
@@ -6870,7 +6870,7 @@
StrCpy $R9 0
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
${AndIf} ${FileExists} "$QUICKLAUNCH\User Pinned\TaskBar"
FindFirst $R8 $R7 "$QUICKLAUNCH\User Pinned\TaskBar\*.lnk"
${Do}
@@ -6931,7 +6931,7 @@
StrCpy $R9 0
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
${AndIf} ${FileExists} "$QUICKLAUNCH\User Pinned\StartMenu"
FindFirst $R8 $R7 "$QUICKLAUNCH\User Pinned\StartMenu\*.lnk"
${Do}
@@ -7012,7 +7012,7 @@
StrCpy $R3 "false"
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
; installed shortcuts
${${_MOZFUNC_UN}GetLongPath} "$INSTDIR\uninstall\${SHORTCUTS_LOG}" $R6
${If} ${FileExists} "$R6"
@@ -7243,7 +7243,7 @@
Exch $R8 ; stack: $R8, $R9 | $R8 = regpath
Push $R7
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
${${_MOZFUNC_UN}GetLongPath} "$R9" $R9
; Always create a new AppUserModelID and overwrite the existing one
; for the current installation path.
@@ -7346,7 +7346,7 @@
; Don't create when running silently.
${Unless} ${Silent}
; This is only supported on Win 7 and above.
- ${If} ${AtLeastWin7}
+ ${If} ${AtLeastWinXP}
System::Call "ole32::CoCreateInstance(g '${CLSID_ITaskbarList}', \
i 0, \
i ${CLSCTX_INPROC_SERVER}, \