MSIX package not copying data files

%3CLINGO-SUB%20id%3D%22lingo-sub-3073811%22%20slang%3D%22en-US%22%3EMSIX%20package%20not%20copying%20data%20files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3073811%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20We%20are%20using%20the%20MSIX%20Packaging%20tool%20to%20package%20our%20application(Zoom%20Player).%20Our%20application%20writes%20some%20files%20to%20the%20Program%20Data%20folder.%20In%20the%20package%20we%20compiled%2C%20these%20files%20are%20in%20the%20following%20folder%3A%3CBR%20%2F%3E%3CSTRONG%3E%5CVFS%5CProgramFilesX86%5CZoom%20Player%5CInstallData%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EPreviously%20when%20you%20install%20the%20package%2C%20the%20files%20in%20the%20above%20mentioned%20path%20are%20copied%20to%20the%20following%20folder%3A%3CBR%20%2F%3E%3CSTRONG%3EC%3A%5CUsers%5CXXX%5CAppData%5CLocal%5CPackages%5CInmatrix.ZoomPlayer14_851dp37ntrqft%5CLocalCache%5CLocal%5CZoom%20Player%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIt%20worked%20fine%20until%20now%2C%20for%20the%20latest%20version%20we%20complied%20when%20I%20try%20to%20install%20the%20package%20the%20data%20files%20are%20not%20copied.%20Because%20of%20this%20issue%20we%20are%20unable%20to%20release%20our%20application%20as%20it's%20not%20installing%2Fcopying%20the%20files%20needed%20in%20the%20data%20folder.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ECan%20someone%20please%20tell%20what%20could%20be%20the%20problem%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3104205%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20package%20not%20copying%20data%20files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3104205%22%20slang%3D%22en-US%22%3EHas%20anything%20changed%20inside%20your%20application%20related%20to%20how%20these%20files%20are%20handled%20the%20first%20time%20the%20application%20is%20launched%20by%20a%20new%20user%3F%3CBR%20%2F%3E%3CBR%20%2F%3EFrom%20what%20I%20know%2C%20the%20OS%20never%20copied%20files%20outside%20of%20the%20install%20location%20of%20an%20MSIX%20package.%20The%20recommended%20approach%20was%20for%20the%20application%20to%20copy%20these%20files%20and%20create%20them%20into%20a%20location%20where%20it%20has%20permissions%20to%20write%2C%20as%20the%20one%20you%20mentioned%20above.%3CBR%20%2F%3E%3CBR%20%2F%3EMaybe%20up%20until%20this%20version%20your%20application%20was%20correctly%20checking%20if%20the%20file%20are%20present%20and%20copying%20them%2C%20and%20something%20changed%20in%20between%3F%3CBR%20%2F%3E%3CBR%20%2F%3EFor%20apps%20that%20are%20no%20longer%20maintained%20(but%20from%20what%20you%20say%20this%20doesn't%20seem%20to%20be%20the%20case%20for%20you)%20the%20Package%20Support%20Framework%20can%20be%20used%20to%20handle%20this%20scenario.%20Here%20I%20have%20written%20more%20on%20this%20topic%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.advancedinstaller.com%2Fvfs-files-management.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.advancedinstaller.com%2Fvfs-files-management.html%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi, We are using the MSIX Packaging tool to package our application(Zoom Player). Our application writes some files to the Program Data folder. In the package we compiled, these files are in the following folder:
\VFS\ProgramFilesX86\Zoom Player\InstallData

Previously when you install the package, the files in the above mentioned path are copied to the following folder:
C:\Users\XXX\AppData\Local\Packages\Inmatrix.ZoomPlayer14_851dp37ntrqft\LocalCache\Local\Zoom Player

It worked fine until now, for the latest version we complied when I try to install the package the data files are not copied. Because of this issue we are unable to release our application as it's not installing/copying the files needed in the data folder.


Can someone please tell what could be the problem?

1 Reply
Has anything changed inside your application related to how these files are handled the first time the application is launched by a new user?

From what I know, the OS never copied files outside of the install location of an MSIX package. The recommended approach was for the application to copy these files and create them into a location where it has permissions to write, as the one you mentioned above.

Maybe up until this version your application was correctly checking if the file are present and copying them, and something changed in between?

For apps that are no longer maintained (but from what you say this doesn't seem to be the case for you) the Package Support Framework can be used to handle this scenario. Here I have written more on this topic:
https://www.advancedinstaller.com/vfs-files-management.html