The article below shows different ways to delete unused Microsoft Installer/Patch files from the Installer folder. It is a very good and descriptive article.
3 Ways to Safely Delete Unused MSI and MSP Files from Windows Installer Folder
En résumé, these are the 3 ways:
-
Use MsiZap (by Microsoft)
This is an old Microsoft utility. Unfortunately not supported any more but still used by people. Because it is not supported any more you use this tool at your own risk. It can be found here.
-
Use a tool called WICleanup (by KZTechs)
This is the option J'ai utilisé and it cleared 15Gb of data for me and J'ain't had any problems since.
There are a few notes I would add to the article on its use;
First, I had trouble with the download link, so J'ai trouvé the utility downloadable here.
Then, when deleting files using the UI vous devez confirm each delete followed by a confirmation prompt. I.e. "Are you sure you want to delete? Yes/No?" followed by "The file has been deleted. OK". I had hundreds of files and this was not something I wanted to do for each.
The zip download has a UI executable and also a ligne de commande executable. To use the ligne de commande version, assurez-vous you open a invite de commandes en tant qu'administrateur. Then naviguez vers where the exe is located and execute la commande suivante wicleanupc -s The "s" makes the deletion of the files silent and no need to confirm.
- Manual deletion (not recommended)
The last option is largely manual but not recommended. To figure out if a file can be deleted, it should NOT exist in le registre. There may be some useful scripts available to guide you to files that can or cannot be deleted, but the actual deletion is manual and therefore prone to error or deletions by mistake.