Forum Discussion
DhanarajG
Mar 06, 2024Copper Contributor
How to remove the custom path while uninstalling MSIX package ?
After installed the msix package, the application creates some folder and files in different locations, how to remove those path while uninstallation ?
DhanarajG
Mar 07, 2024Copper Contributor
Thanks for your response.
Yes, the folder creating under C:\ProgramData folder and its creating by C++ applications.
Mar 08, 2024
MSIX does not have a method to remove files written to those locations. However, by adding the PSF (PsfLauncher.exe to front the application, plus PsfRuntime.dll and either FileRedirectionFixup or MfrFixup), you can cause those writes to be redirected to the user's local appdata\Packages redirection area for the package. The redirected location is removed by default when the package is uninstalled, which would be a solution.