Replies: 2 comments
-
Is MSIX Hero launching the app by CreateProcess (or ShellExecute) with the exe filename (like Explorer)? Or by calling Khttps://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-iapplicationactivationmanager-activateapplication (like when you click on a tile in StartMenu)? The former just runs an exe creating process; you won't get package identity. The latter launcches an app thus creating a process with package identity etc. Unless... If you add See https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/grant-identity-to-nonpackaged-apps and https://blogs.windows.com/windowsdeveloper/2019/10/29/identity-registration-and-activation-of-non-packaged-win32-apps/ for more information. Alternatively, you can declare an AppExecutionAlias in your |
Beta Was this translation helpful? Give feedback.
-
MSIX Hero runs packages using a specially crafted entry point and shell execute flag set to true. This way, the process receives correct identity. The key part is a special prefix The relevant code for this is here: See also https://ss64.com/nt/shell.html |
Beta Was this translation helpful? Give feedback.
-
I'm putting together a sparse MSIX package and MSIX Hero has been great for basic troubleshooting and quick uninstalling. Thanks for the utility!
I thought I'd post here to see if anyone can help troubleshoot an issue I'm seeing with general MSIX development.
When the exe launches through Explorer, it doesn't report a package identity (via GetCurrentPackageFullName) which is required for WinRT APIs. Yet, when I use MSIX Hero to start it, it does report identity. I've been looking through everything related to app manifests (which I believe is already correct as it launches correctly through MSIX Hero) and other things, and can't find much on this. Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions