SOLVED

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

Copper Contributor

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? 

1 Reply
best response confirmed by KevinS12345 (Copper Contributor)
Solution
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 best response

Accepted Solutions
best response confirmed by KevinS12345 (Copper Contributor)
Solution
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.

View solution in original post