Forum Discussion

Nabil1865's avatar
Nabil1865
Copper Contributor
Jan 31, 2024

Preventing MSIX from Overwriting Files during Updates

I am seeking a solution to prevent MSIX package updates from overwriting files in a specific subfolder within my application. This subfolder contains user-generated data, and it's crucial that it remains intact during updates from the Microsoft App Store. Kindly advise on the appropriate methods to achieve this preservation of user data. 

  • Psycorp's avatar
    Psycorp
    Brass Contributor
    As MSIX packages are installed in to a location on disk that is read only and not writable at all, I'm confused by the "This subfolder contains user-generated data" comment.

    Simply write your files out to AppData and they will persist after an upgrade.

Resources