I'm trying to migrate a plain Win32 program to use some WinRT APIs using a sparse MSIX package. I've got everything setup based on various documentation (also "sparse"!). GetCurrentPackageFullName() is used to verify whether it does have identity.
The problem is it doesn't work when I launch the exe in Explorer. However, if I use MSIX Hero (an open source MSIX management tool) to start the process, it does launch with identity.
I would assume if the identity in the manifest file didn't match the identity in the AppxManifest file, it wouldn't work at all. So I believe I have it setup correctly.
Is there something additional that is required to get an exe to launch with identity when opened like any other exe? And, why does it work with MSIX Hero?