Skip to content

Commit

Permalink
Add version info to WindowsAppRuntimeInstall.exe (#3884)
Browse files Browse the repository at this point in the history
WindowsAppRuntimeInstall.exe doesn't have a version resource. That means all crash telemetry comes in for version 0.0.0.0, which prevents seeing if fixes in the latest version have improved reliability.

This fix adds a version resource using the existing AssemblyInfo.ver. This won't provide enough information to see if/which servicing release the installer is from, but it at least will show which major.minor version it is from.
  • Loading branch information
codendone authored Oct 2, 2023
1 parent 6d44172 commit 195c006
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions installer/dev/WindowsAppRuntimeInstall.rc
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,8 @@ END
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

#include <WindowsAppSDK-VersionInfo.h>

#define VERSIONINFO_FILENAME "WindowsAppRuntimeInstall.exe"
#define VERSIONINFO_FILETYPE VFT_APP
#include "eng\common\VersionInfo\AssemblyInfo.ver"
1 change: 1 addition & 0 deletions installer/dev/WindowsAppRuntimeInstall.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
<ItemGroup>
<ResourceCompile Include="WindowsAppRuntimeInstall.rc">
<PreprocessorDefinitions Condition="Exists('windowsappruntime_definitions_override.h')">USE_DEFINITIONS_OVERRIDE_HEADER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(RepoRoot);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ResourceCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down
7 changes: 7 additions & 0 deletions installer/dev/WindowsAppSDK-VersionInfo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Copyright (c) Microsoft Corporation and Contributors.
// Licensed under the MIT License.
//
// This file is a PLACEHOLDER which will be replaced in the CreateInstaller
// build pipeline with a file which defines WINDOWSAPPSDK_RELEASE_MAJOR
// and WINDOWSAPPSDK_RELEASE_MINOR. For the dev inner loop, these will remain
// undefined and just version the installer as 0.0.

0 comments on commit 195c006

Please sign in to comment.