Skip to content

I MUST write to a unvirtualized HKLM key in my packaged app #6410

@catmanjan

Description

@catmanjan

Describe the bug

My app needs to write to some HKLM keys for Office interop support, however I can't find a solution.

I've looked at the Registry.dat but changes made using it are not visible to Office, I've looked at Package Support Framework, but it doesn't support ARM64 (which is required for Copilot+ PCs)

Is there a solution for me, or do I need to abandon packaging?

Something I don't quite understand, is that my app is packaged and therefore shouldn't be able to write to HKLM, yet when I call StorageProviderSyncRootManager.Register() keys are written to HKLM which are later read by explorer.exe - so how is that occuring?

Steps to reproduce the bug

Try to write to HKLM

Expected behavior

No response

Screenshots

No response

NuGet package version

Latest

Packaging type

Packaged (MSIX)

Windows version

No response

IDE

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions