fix: resolve HVCI crash (STATUS_INVALID_IMAGE_HASH) — bump to v1.0.9 - #23
Merged
Merged
Conversation
PassKey v1.0.7 and v1.0.8 crashed silently on every HVCI-enabled system (most Windows 11 + TPM PCs) because WindowsAppSDKSelfContained=true bundled Microsoft.UI.Xaml.dll from NuGet. Windows Code Integrity rejects these copies (0xc000027b) since they are not in the Windows system catalog. Fix: - Remove WindowsAppSDKSelfContained from PassKey.Desktop.csproj; publish folder no longer contains Microsoft.UI.Xaml.dll - Add Bootstrap.Initialize(0x00010008) in Program.cs to activate the system- installed Windows App Runtime 1.8 (required for unpackaged apps with custom Main) - Bundle WindowsAppRuntimeInstall-x64.exe (v1.8.260101001) in Inno Setup; installed silently with --quiet + waituntilterminated before PassKey launches - Add Installer/Download-Runtime.ps1 to fetch the redistributable (excluded from git via .gitignore because it exceeds GitHub''s 100 MB file limit) Build: 0 errors, 0 warnings | Tests: 176/176 | Microsoft.UI.Xaml.dll: absent from publish Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
PassKey v1.0.7 and v1.0.8 crashed silently on every HVCI-enabled system (most Windows 11 + TPM PCs) because WindowsAppSDKSelfContained=true bundled Microsoft.UI.Xaml.dll from NuGet. Windows Code Integrity rejects these copies (0xc000027b) since they are not in the Windows system catalog.
Fix:
Build: 0 errors, 0 warnings | Tests: 176/176 | Microsoft.UI.Xaml.dll: absent from publish
Description
Brief description of the changes in this PR.
Type of change
Testing
Describe the tests you ran to verify your changes.
dotnet test)dotnet build PassKey.sln -p:Platform=x64)Checklist