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 ?
- Can you be more specific about the location of those files that you are concerned about? If you have an idea on how the app put them there, it might help also.
- DhanarajGCopper Contributor
Thanks for your response.
Yes, the folder creating under C:\ProgramData folder and its creating by C++ applications.
- 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.