@@ -65,6 +65,9 @@ Var EndPreInstallPhaseTickCount
65
65
Var EndInstallPhaseTickCount
66
66
Var EndFinishPhaseTickCount
67
67
68
+ Var DistributionID
69
+ Var DistributionVersion
70
+
68
71
Var InitialInstallRequirementsCode
69
72
Var ExistingProfile
70
73
Var ExistingVersion
@@ -88,7 +91,7 @@ Var ArchToInstall
88
91
; the stub installer
89
92
; !define STUB_DEBUG
90
93
91
- !define StubURLVersion " v8 "
94
+ !define StubURLVersion " v9 "
92
95
93
96
; Successful install exit code
94
97
!define ERR_SUCCESS 0
@@ -1042,6 +1045,15 @@ Function SendPing
1042
1045
StrCpy $R6 " 0"
1043
1046
${EndIf}
1044
1047
1048
+ ; Capture the distribution ID and version if it exists.
1049
+ ${If} ${FileExists} " $INSTDIR\distribution\distribution.ini"
1050
+ ReadINIStr $DistributionID " $INSTDIR\distribution\distribution.ini" " Global" " id"
1051
+ ReadINIStr $DistributionVersion " $INSTDIR\distribution\distribution.ini" " Global" " version"
1052
+ ${Else}
1053
+ StrCpy $DistributionID " 0"
1054
+ StrCpy $DistributionVersion " 0"
1055
+ ${EndIf}
1056
+
1045
1057
; Whether installed into the default installation directory
1046
1058
${GetLongPath} " $INSTDIR" $R7
1047
1059
${GetLongPath} " $InitialInstallDir" $R8
@@ -1150,14 +1162,16 @@ Function SendPing
1150
1162
$\n Download Server IP = $DownloadServerIP \
1151
1163
$\n Post-Signing Data = $PostSigningData \
1152
1164
$\n Profile cleanup prompt shown = $ProfileCleanupPromptType \
1153
- $\n Did profile cleanup = $CheckboxCleanupProfile"
1165
+ $\n Did profile cleanup = $CheckboxCleanupProfile \
1166
+ $\n Distribution ID = $DistributionID \
1167
+ $\n Distribution Version = $DistributionVersion"
1154
1168
; The following will exit the installer
1155
1169
SetAutoClose true
1156
1170
StrCpy $R9 " 2"
1157
1171
Call RelativeGotoPage
1158
1172
!else
1159
1173
${StartTimer} ${DownloadIntervalMS} OnPing
1160
- InetBgDL::Get " ${BaseURLStubPing}/${StubURLVersion}${StubURLVersionAppend}/${Channel}/${UpdateChannel}/${AB_CD}/$R0/$R1/$5/$6/$7/$8/$9/$ExitCode/$FirefoxLaunchCode/$DownloadRetryCount/$DownloadedBytes/$DownloadSizeBytes/$IntroPhaseSeconds/$OptionsPhaseSeconds/$0/$1/$DownloadFirstTransferSeconds/$2/$3/$4/$InitialInstallRequirementsCode/$OpenedDownloadPage/$ExistingProfile/$ExistingVersion/$ExistingBuildID/$R5/$R6/$R7/$R8/$R2/$R3/$DownloadServerIP/$PostSigningData/$ProfileCleanupPromptType/$CheckboxCleanupProfile" \
1174
+ InetBgDL::Get " ${BaseURLStubPing}/${StubURLVersion}${StubURLVersionAppend}/${Channel}/${UpdateChannel}/${AB_CD}/$R0/$R1/$5/$6/$7/$8/$9/$ExitCode/$FirefoxLaunchCode/$DownloadRetryCount/$DownloadedBytes/$DownloadSizeBytes/$IntroPhaseSeconds/$OptionsPhaseSeconds/$0/$1/$DownloadFirstTransferSeconds/$2/$3/$4/$InitialInstallRequirementsCode/$OpenedDownloadPage/$ExistingProfile/$ExistingVersion/$ExistingBuildID/$R5/$R6/$R7/$R8/$R2/$R3/$DownloadServerIP/$PostSigningData/$ProfileCleanupPromptType/$CheckboxCleanupProfile/$DistributionID/$DistributionVersion " \
1161
1175
" $PLUGINSDIR\_temp" /END
1162
1176
!endif
1163
1177
${Else}
0 commit comments