Forum Discussion

CrisHK's avatar
CrisHK
Copper Contributor
Jul 22, 2023
Solved

MSIX Application Launch Failure: Exception Code 0xc0000005.

Hi everyone, I'm facing an issue with an MSIX package where the application fails to launch, but the same application runs correctly when installed through its setup. I've thoroughly checked the ins...
  • TIMOTHY_MANGAN's avatar
    TIMOTHY_MANGAN
    Jul 24, 2023

    CrisHK 

    The MfrFixup exists only in my fork of the PSF github/com/TimothyMangan (a long story not work rehashing here). But assuming that you are a developer and not including any files in your package under the VFS folder, then InstalledLocationVirtualization is the easiest way for you to solve the file write problem (if that is what your problem is -- you might still need to run ProcessMonitor).

    InstalledLocationVirtualization (ILV for short) is a separate approach added by Microsoft to allow automatic redirection of attempts to overwrite files in the package. It doesn't always work by itself, but since it is just a few extra lines to add to the AppXManifest (shown below) it is easy to try.

     

    In addition to the package-level extension (not application-level!) you'll need to ensure that the namespace for uap10 is included as a Package attribute at the top of the file (as in xmlns:uap10="..." and in the ignorable namespaces too).

     

    <Package ....>
       ...
       <Applications>
           ...
       </Applications>
       <Extensions>
           <uap10:Extension Category="windows.installedLocationVirtualization">
               <uap10:InstalledLocationVirtualization>
                  <uap10:UpdateActions ModifiedItems="keep" AddedItems="keep" DeletedItems="keep" /?
               </uap10:InstalledLocationVirtualization>
           </uap10:Extension>
       </Extensions>
    </Package>

     

    A reference for detail about ILV is in this white-paper MSIX InstalledLocationVirtualization (tmurgent.com) if you wanted to learn more about the ILV.

Resources