Forum Discussion

KevinS12345's avatar
KevinS12345
Copper Contributor
Dec 02, 2021
Solved

Exe registered with sparse MSIX doesn't launch with identity from Explorer

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 https://msixhero.net/ (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? 

  • Solved! I was able to get the sample project at https://github.com/microsoft/AppModelSamples/tree/master/Samples/SparsePackages working and that helped narrow it down. Turns out the Assets folder and files must exist relative to the external location. In my test I did not have these setup originally.

1 Reply

  • KevinS12345's avatar
    KevinS12345
    Copper Contributor
    Solved! I was able to get the sample project at https://github.com/microsoft/AppModelSamples/tree/master/Samples/SparsePackages working and that helped narrow it down. Turns out the Assets folder and files must exist relative to the external location. In my test I did not have these setup originally.

Resources