I have a win32 App on microsoft store which has been converted by desktop-bridge and works fine. I thought of adding a feature of being able to launch it by just the exe name.
Found the feature AppExecutionAlias in various articles and used it in my app manifest.
<uap3:AppExecutionAlias>
<desktop:ExecutionAlias Alias="mysampleapp.exe" />
</uap3:AppExecutionAlias>
The App runs but not perfectly. The problem is that it does not run under the Store Context so it can't find out whether it's licensed or not. This can also be made out from the fact that when run this way, the App writes to the non-virtualized registry that I can see being created if I run this way.
Perhaps, those threads that show the success test cases did not test this aspect of not running under the Store Context. How to properly set AppExecutionAlias so the program could be launched from command line?
I can't find any thread describing this problem or its solution. I hope someone from the Microsoft store-development team notices this question and solves my problem.
Update: Since posting this question, I found that to get the Store Context, the app needs to be started with AUMID. That works with the shell: command. But the question still remains, if APPX feature of ExecutionAlias was given, why doesn't it automatically use the AUMID? It looks like a buggy feature.