Code Quality: Improve startup error message when Windows App Runtime …#18208
Open
workbysaran wants to merge 1 commit intofiles-community:mainfrom
Open
Code Quality: Improve startup error message when Windows App Runtime …#18208workbysaran wants to merge 1 commit intofiles-community:mainfrom
workbysaran wants to merge 1 commit intofiles-community:mainfrom
Conversation
yair100
reviewed
Feb 26, 2026
| { | ||
| // These strings are intentionally hardcoded and cannot be moved to resource files. | ||
| // The Windows App Runtime (which powers the resource loading system) may itself be unavailable at this point | ||
| private const string MissingRuntimeMessage = "Files failed to start. A required Windows component could not be loaded. Try reinstalling Files from the Microsoft Store."; |
Member
There was a problem hiding this comment.
Files can also be installed from outside the Store, is it possible to add a link to the download page? https://files.community/download
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.
Resolved / Related Issues
Improved the startup experience when the Windows App Runtime is missing or corrupted. Previously the app would silently terminate showing only a brief loading cursor with no feedback. The improvement catches the COM registration failure ('REGDB_E_CLASSNOTREG') on the first Windows App Runtime call, shows a user-facing error dialog and rethrows a descriptive exception so the failure is recorded in Windows Event Viewer.
Related #17763
Steps used to test these changes