[Question] PrepareDevirtualizedRegistry returning back 0x80070522 error during installation
Project MSIX SDK
Describe the bug This is more of a question.
During installation, in msix sdk we have PrepareDevirtualizedRegistry handler which will load the Registry.dat to the HKEY_USERS hive. I saw that the code is loading Registry.dat using the RegLoadKey which needs SE_RESTORE_NAME and SE_BACKUP_NAME privileges to successfully load it. However there will be machines that does not have these privileges (configured by their it admins), then we will receive this 0x80070522 error. (A required privilege is not held by the client.)
How do we handle with these? Will there be an update in the SDK to handle it differently?
https://github.com/microsoft/msix-packaging/blob/master/MsixCore/msixmgr/RegistryDevirtualizer.cpp#L465
To Reproduce Not sure as not all machines are having this problem
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Platform
Additional context Add any other context about the problem here.