none
[UWP][Desktop Bridge]Font Registration During Installation RRS feed

  • Question

  • During installing process we have to register a font, as it includes writing registry in "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts", elevation is needed and thus the registration failed.

    Is there a way to register a font during installation?

    Thank you.

    Tuesday, December 20, 2016 3:28 AM

Answers

  • Hi Stak1945,

    According to this document: Prepare an app for conversion with the Desktop Bridge: Your app modifies the HKEY_LOCAL_MACHINE (HKLM) registry hive. Any attempt by your app to create an HKLM key, or to open one for modification, will result in an access-denied failure. Remember that your app has its own private virtualized view of the registry, so the notion of a user- and machine-wide registry hive (which is what HKLM is) does not apply. You will need to find another way of achieving what you were using HKLM for, like writing to HKEY_CURRENT_USER (HKCU) instead.
    For more details about Desktop Bridge, you can refer to: https://msdn.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-prepare?f=255&MSPPError=-2147217396

    Best regards,
    Breeze Liu

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Proposed as answer by Breeze Liu Thursday, December 22, 2016 9:26 AM
    • Marked as answer by Stak1945 Thursday, December 22, 2016 9:27 AM
    Wednesday, December 21, 2016 7:09 AM

All replies

  • Hi Stak1945,

    According to this document: Prepare an app for conversion with the Desktop Bridge: Your app modifies the HKEY_LOCAL_MACHINE (HKLM) registry hive. Any attempt by your app to create an HKLM key, or to open one for modification, will result in an access-denied failure. Remember that your app has its own private virtualized view of the registry, so the notion of a user- and machine-wide registry hive (which is what HKLM is) does not apply. You will need to find another way of achieving what you were using HKLM for, like writing to HKEY_CURRENT_USER (HKCU) instead.
    For more details about Desktop Bridge, you can refer to: https://msdn.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-prepare?f=255&MSPPError=-2147217396

    Best regards,
    Breeze Liu

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Proposed as answer by Breeze Liu Thursday, December 22, 2016 9:26 AM
    • Marked as answer by Stak1945 Thursday, December 22, 2016 9:27 AM
    Wednesday, December 21, 2016 7:09 AM
  • Hi Breeze,

    Isn't the registration of a Font has to be written in the HKLM registry hive?

    If it is not possible is there any other way that I can register a font?

    Thank you.

    Wednesday, December 21, 2016 7:19 AM
  • Hi Stak1945,

    Yes, We should do that. and I have not found another way to achieve it now.

    Best regards,
    Breeze Liu

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, December 22, 2016 9:10 AM
  • Hi Breeze,

    Sad story;(

    Thank you.

    Thursday, December 22, 2016 9:18 AM