Skip to content

Commit 5c4a18d

Browse files
committed
Bug 1665381 - Added distribution information to stub installer install telemetry ping r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D198610 UltraBlame original commit: ba063f90fe0a292546e9b2be0917fda79e9624ef
1 parent 4b54071 commit 5c4a18d

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

browser/installer/windows/nsis/stub.nsi

+17-3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ Var EndPreInstallPhaseTickCount
6565
Var EndInstallPhaseTickCount
6666
Var EndFinishPhaseTickCount
6767

68+
Var DistributionID
69+
Var DistributionVersion
70+
6871
Var InitialInstallRequirementsCode
6972
Var ExistingProfile
7073
Var ExistingVersion
@@ -88,7 +91,7 @@ Var ArchToInstall
8891
; the stub installer
8992
;!define STUB_DEBUG
9093

91-
!define StubURLVersion "v8"
94+
!define StubURLVersion "v9"
9295

9396
; Successful install exit code
9497
!define ERR_SUCCESS 0
@@ -1042,6 +1045,15 @@ Function SendPing
10421045
StrCpy $R6 "0"
10431046
${EndIf}
10441047

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+
10451057
; Whether installed into the default installation directory
10461058
${GetLongPath} "$INSTDIR" $R7
10471059
${GetLongPath} "$InitialInstallDir" $R8
@@ -1150,14 +1162,16 @@ Function SendPing
11501162
$\nDownload Server IP = $DownloadServerIP \
11511163
$\nPost-Signing Data = $PostSigningData \
11521164
$\nProfile cleanup prompt shown = $ProfileCleanupPromptType \
1153-
$\nDid profile cleanup = $CheckboxCleanupProfile"
1165+
$\nDid profile cleanup = $CheckboxCleanupProfile \
1166+
$\nDistribution ID = $DistributionID \
1167+
$\nDistribution Version = $DistributionVersion"
11541168
; The following will exit the installer
11551169
SetAutoClose true
11561170
StrCpy $R9 "2"
11571171
Call RelativeGotoPage
11581172
!else
11591173
${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" \
11611175
"$PLUGINSDIR\_temp" /END
11621176
!endif
11631177
${Else}

0 commit comments

Comments
 (0)