locked
[UWP][[Desktop Bridge]]Project Centennial & AppConverter : Convert admin apps RRS feed

  • Question

  • Hi, I read about Project Centennial where you can convert existing Win32 Native Apps to UWP applications. We have an application that performs administrative tasks, like installing/updating/uninstalling other native applications. From the Project Centennial demo, the converted native app runs in a Sandbox and the registry entries, app data is captured and managed in a sandboxed environment.

    1. So is it possible to perform the administrative tasks even after conversion of the native app to UWP?

    2. The installed native apps need to access the data of the parent admin (which has been converted to UWP) app like Registry, files. Is it possible?


    • Edited by nvineeth Saturday, September 3, 2016 7:18 AM update with additional details.
    • Edited by Jayden Gu Monday, September 5, 2016 6:39 AM add tag
    Saturday, September 3, 2016 7:14 AM

Answers

  • Hi nvineeth,

    >>1. So is it possible to perform the administrative tasks even after conversion of the native app to UWP?

    No, it is no possible. 

    Your app always runs with elevated security privileges. Your app needs to work while running as the interactive user. Users who install your app from the Windows Store may not be system administrators, so requiring your app to run elevated means that it won't run correctly for standard users.

    >>2. The installed native apps need to access the data of the parent admin (which has been converted to UWP) app like Registry, files. Is it possible?

    No, it is no possible.

    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 info, see Prepare your desktop app for conversion to UWP.

    Best Regards,

    Jayden Gu


    • Edited by Jayden Gu Monday, September 5, 2016 10:09 AM
    • Proposed as answer by Jayden Gu Tuesday, September 13, 2016 11:19 AM
    • Marked as answer by Barry Wang Friday, September 16, 2016 2:56 AM
    Monday, September 5, 2016 9:59 AM