read/write registery key file in uwp

前端 未结 2 1374
南方客
南方客 2020-12-19 06:41

I want to create or read a registery file within a uwp app. Then I should be able to add menu item to windows context menu. I\'m aware that this is not possible, because uw

2条回答
  •  我在风中等你
    2020-12-19 07:19

    Um, you can put a file, registry.dat into your application bundle. It's a registry hive. It's found by searching for HKLM\Software. Writes to it won't persist between application launches. If you put file paths into it, you can use the same aliases from App-V.

    You should be able to write to HKCU, and it should persist between launches. But, access to this is virtualized, and you are not accessing the real thing. Don't think you are able to do that if you want your software published in the Microsoft Store, but they should allow you to do it. It's mostly intended to allow legacy applications in enterprise to in the virtualized system.

提交回复
热议问题