Optional Telemetry Event for Microsoft Store Catalog Installs (msstore Source)#6352
Merged
Merged
Conversation
florelis
reviewed
Jul 15, 2026
florelis
reviewed
Jul 15, 2026
| TraceLoggingWrite(g_hWindowsStoreProvider, | ||
| "StoreExperienceTelemetry-WinGetInstall", | ||
| TelemetryPrivacyDataTag(PDT_ProductAndServicePerformance), | ||
| TraceLoggingKeyword(MICROSOFT_KEYWORD_CRITICAL_DATA), |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an optional ETW telemetry event to enable Microsoft Store analytics to attribute successful WinGet installs originating from the msstore source by emitting StoreExperienceTelemetry-WinGetInstall on the Microsoft-Windows-Store provider, and wires up the necessary provider enablement plumbing. It also updates the vcpkg triplet common settings.
Changes:
- Register a new TraceLogging provider (
Microsoft-Windows-Store) with its own enablement callback/flag. - Add
TelemetryTraceLogger::LogStoreInstall()and invoke it on successfulmsstoreinstalls that flow throughReportInstallerResult. - Set
VCPKG_PLATFORM_TOOLSETtov143in the shared vcpkg triplet configuration.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/VcpkgCustomTriplets/common.cmake | Forces the vcpkg toolset to v143 for triplets. |
| src/AppInstallerCommonCore/Telemetry/TraceLogging.h | Declares the new Windows Store TraceLogging provider + enabled flag. |
| src/AppInstallerCommonCore/Telemetry/TraceLogging.cpp | Defines/registers/unregisters the Windows Store provider and enablement callback. |
| src/AppInstallerCommonCore/Public/AppInstallerTelemetry.h | Exposes LogStoreInstall() on the telemetry logger. |
| src/AppInstallerCommonCore/AppInstallerTelemetry.cpp | Implements LogStoreInstall() and writes the Store attribution event. |
| src/AppInstallerCLICore/Workflows/InstallFlow.cpp | Calls LogStoreInstall() on the successful installer-result path for msstore package versions. |
ReportInstallerResult's success branch fetched Execution::Data::PackageVersion unconditionally to decide whether to emit the msstore install telemetry event. Get<> throws E_NOT_SET when the key is absent, and the --manifest install path (GetManifestFromArg) never adds PackageVersion, so a successful local-manifest install threw at the reporting stage and was reported as an error. Guard the access with Contains(Execution::Data::PackageVersion) before Get, and only fetch the Manifest when actually emitting. Store installs (which always have a PackageVersion) are unaffected; --manifest installs now skip the block instead of throwing. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- LogStoreInstall: stop editing the telemetry SummaryV2 fields. The summary is the single end-of-run event and is populated elsewhere, so the Store-install path should not overwrite SourceIdentifier/PackageIdentifier (per review). - LogStoreInstall: drop the redundant AICLI_LOG; the install is already logged upstream. - common.cmake: remove the VCPKG_PLATFORM_TOOLSET v143 pin. Hard-coding the toolset breaks other supported VS versions; the cpprestsdk build fix belongs in the port overlay (2.10.19), not a forced toolset. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
shmuelie
force-pushed
the
user/senglard/Feature6317
branch
from
July 16, 2026 00:52
10cbff4 to
282167a
Compare
florelis
approved these changes
Jul 16, 2026
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📖 Description
Adds an optional telemetry event that lets Microsoft Store analytics attribute Store‑catalog
app installs that happen through WinGet.
When WinGet successfully installs an app whose source is the Microsoft Store (
msstore), it nowemits a
StoreExperienceTelemetry-WinGetInstallevent on theMicrosoft-Windows-StoreETWprovider (
{9C2A37F3-E5FD-5CAE-BCD1-43DAFEEE1FF0}). The event carries only the minimum needed forattribution:
pidmsstorepackage identifier)srccn"msstore"Key points:
msstore. The call site is the success path ofReportInstallerResult, gated onPackageVersion->GetSource().IsWellKnownSource(WellKnownSource::MicrosoftStore). Local‑manifestinstalls (which have no
PackageVersion) are guarded withContains(...)so they are unaffected.msstoreitems resolve to a real installertype (
exe/msi) and flow throughReportInstallerResult, so they emit the event.Microsoft-Windows-Storeis registered alongside the existing WinGetprovider, with its own enablement callback (
g_IsStoreTelemetryProviderEnabled) so the Storeevent can be captured independently of the WinGet telemetry provider.
(
m_isSettingEnabled), the runtime toggle (m_isRuntimeEnabled), and initialization state, andis tagged
PDT_ProductAndServicePerformance/MICROSOFT_KEYWORD_CRITICAL_DATA. It records noexecutable paths, usernames, or command‑line arguments.
Files changed
src/AppInstallerCommonCore/Telemetry/TraceLogging.{h,cpp}Microsoft-Windows-Storeprovider + register its enablement callbacksrc/AppInstallerCommonCore/Public/AppInstallerTelemetry.hLogStoreInstallsrc/AppInstallerCommonCore/AppInstallerTelemetry.cppLogStoreInstall(writes the event; updates the telemetry summary when the WinGet provider is enabled)src/AppInstallerCLICore/Workflows/InstallFlow.cppLogStoreInstallon successfulmsstoreinstalls, guarded byContains(PackageVersion)🔗 References
Resolves #6317
🔍 Validation
winget install XPFFH613W8V6LV --accept-package-agreements(OBS Studio — an unpackagedexeStore app). An ETW capture of theMicrosoft-Windows-Storeprovider showedStoreExperienceTelemetry-WinGetInstallwithpid=the Store product ID and
cn=msstore.msstoresources, and none for a failed install (the eventis only reached on the success path).
toggle.
✅ Checklist
📋 Issue Type
Microsoft Reviewers: Open in CodeFlow