{"id":8697,"date":"2019-04-17T06:52:04","date_gmt":"2019-04-17T01:22:04","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=8697"},"modified":"2026-03-30T20:07:08","modified_gmt":"2026-03-30T14:37:08","slug":"windows-installer-folder-safe-cleanup-free-disk-space","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/windows-installer-folder-safe-cleanup-free-disk-space\/","title":{"rendered":"How to Clean Up the Windows Installer Cache Folder"},"content":{"rendered":"<p>When you install a program in Windows, the program&#8217;s .msi or .msu setup package gets copied to the <strong>C:\\Windows\\Installer<\/strong> folder. The Installer folder is a protected folder with System &amp; Hidden attributes and is found under your Windows folder.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8701\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/windows-installer-folder.png\" alt=\"windows installer - delete unwanted files\" width=\"701\" height=\"347\" \/><\/p>\n<h2>What is the Windows Installer folder?<\/h2>\n<p>The Installer directory is intended to serve as a cache for installer data files for various applications installed on the computer.<!--more--><\/p>\n<p>Sometime later, you may decide you want to repair, uninstall, or reinstall the program via Apps &amp; Features or Programs &amp; Features in the Control Panel. At that time, the system needs the .msi package from the Installer folder to repair, reinstall, or cleanly uninstall the software.<\/p>\n<p>If the corresponding setup package (.msi or .msp) file isn&#8217;t found, Windows throws the error &#8220;<em>The installation source for this product is not available. Verify that the source exists and that you can access it<\/em>.&#8221; when trying to repair or uninstall the problem.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8707\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/uninstall-failed-1.png\" alt=\"uninstall program failed missing .msi installer\" width=\"700\" height=\"443\" \/><\/p>\n<div class=\"qt\">\n<h4>Windows Installer registry entries<\/h4>\n<p>When a setup program (i.e., Windows Installer package) is run, registry entries are created for that program under the following branches:<\/p>\n<pre>HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\r\nHKEY_CLASSES_ROOT\\Installer\\Products\r\nHKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Installer\\UserData\\{SID}\\Products<\/pre>\n<figure id=\"attachment_8706\" aria-describedby=\"caption-attachment-8706\" style=\"width: 789px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8706\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/installer-package-registry-entry.png\" alt=\"windows installer - products registry key\" width=\"799\" height=\"579\" srcset=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/installer-package-registry-entry.png 799w, https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/installer-package-registry-entry-768x557.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><figcaption id=\"caption-attachment-8706\" class=\"wp-caption-text\">Installer registry key showing the Product name, Package file name, Uninstall command, etc.<\/figcaption><\/figure>\n<p>The SID can be something like <strong>S-1-5-18<\/strong>. <strong>S-1-5-18<\/strong> is the Security Identifier for the &#8220;Local System&#8221; account. If the software you&#8217;ve installed used your account&#8217;s credentials or token, then it&#8217;s written under your {SID} key in the registry. See the Microsoft article <a href=\"https:\/\/support.microsoft.com\/en-in\/help\/243330\/well-known-security-identifiers-in-windows-operating-systems\" target=\"_blank\" rel=\"noopener noreferrer\">Well-known security identifiers in Windows operating systems<\/a>.<\/p>\n<p><strong>Note:<\/strong> For 32-bit programs installed on a 64-bit Windows computer, the entries get recorded under the equivalent <code>SOFTWARE\\WOW6432Node<\/code> registry node.<\/p>\n<\/div>\n<h2>How to Safely Clean Up the Windows Installer Folder<\/h2>\n<p>Over time, the Installer directory may grow and consume a massive amount of hard disk space. You may be wondering if you can delete files in the <code>Windows\\Installer<\/code> directory or not.<\/p>\n<p><strong><em>Can you arbitrarily delete the Windows\\Installer folder or some of its files?<\/em><\/strong><\/p>\n<p><strong>In short, NO!<\/strong> You should never randomly delete the contents of the <code>C:\\Windows\\Installer<\/code> folder manually. The system automatically manages it. See the <a href=\"#moreinfo\">More Information<\/a> section at the end of this article. Deleting the Installer folder will cause <strong>errors<\/strong> when installing programs. Please see <a href=\"https:\/\/www.winhelponline.com\/blog\/0x80070660-temp-folder-full-inaccessible\/\">Error 0x80070660: The Temp folder is full or inaccessible<\/a>.<\/p>\n<p>Sometimes, during the software uninstallation routine, Windows Installer patches may become orphaned. i.e., when a program is uninstalled, the corresponding .msi package is somehow left behind in the Windows Installer folder. <strong>Only the orphaned packages can be deleted.<\/strong><\/p>\n<p><strong><em>So, how do you find the orphaned .msi files in the Windows Installer folder?<\/em><\/strong><\/p>\n<p>There is a useful program called <strong>PatchCleaner<\/strong> that will identify orphaned files in the Installer folder. PatchCleaner then offers you the option to delete orphaned files or move them to a different location for testing.<\/p>\n<p>Download <a href=\"https:\/\/sourceforge.net\/projects\/patchcleaner\/\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">PatchCleaner<\/a> from HomeDev Software, and run it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8705\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/installer-folder-patch-cleaner-1.png\" alt=\"patchcleaner to clean up windows installer folder\" width=\"442\" height=\"149\" \/><\/p>\n<p>PatchCleaner enumerates the list of installers, component codes, and corresponding .msi file names programmatically using Windows Scripting.<\/p>\n<p>Then it compares the list of package files located in the Installer folder with the Products list found in the registry. The .msi or .msu files that have no reference in the registry are the orphan files.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8703\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/installer-folder-patch-cleaner-2.png\" alt=\"patchcleaner to clean up windows installer folder\" width=\"525\" height=\"190\" \/><\/p>\n<p>Here are the details of &#8220;in use&#8221; or valid program entries.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8704\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/installer-folder-patch-cleaner-3.png\" alt=\"patchcleaner to clean up windows installer folder\" width=\"640\" height=\"728\" \/><\/p>\n<p>And the detailed information of the orphaned entries is shown as well:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8702\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/installer-folder-patch-cleaner-4.png\" alt=\"patchcleaner to clean up windows installer folder\" width=\"680\" height=\"460\" \/><\/p>\n<p>You can either delete the orphaned setup package or move it to another folder and then safely delete it after a few days.<\/p>\n<p>Hope this article helped you recover valuable disk space by safely cleaning up the Windows <strong>Installer<\/strong> folder on your computer.<\/p>\n<hr \/>\n<h3><a id=\"moreinfo\"><\/a>More Information<\/h3>\n<p>Quoting <strong>Joseph Conway (MSFT)<\/strong><\/p>\n<div class=\"qt\">\n<h4>Can you safely delete files in the %windir%\\Installer directory?<\/h4>\n<p>So, the question usually asked is: Can I safely remove the files in this directory? The answer is flatly: No. So let&#8217;s talk about why this is a bad idea.<\/p>\n<p>First, it is not supported. If you remove files from this directory and have issues, you may need to reinstall the application to get back to a good state. Therefore, that would suck for both you and the engineer that needs to deliver that message.<\/p>\n<p>Second is the overall idea that you really should not remove items in the Windows directory. We build and test our software based on the existence of specific files and directories. When those files and directories dont exist, bad things can and will happen. However, that is a generalization that usually upsets many people so let&#8217;s be more specific. This particular directories job is to act as a cache location for Windows installer based applications. It holds stripped down versions of the Windows installer data files. During application install, update of the application or application removal, this directory is used by the application to confirm the existence of previously installed items to determine the next steps the installer needs to take. The files are different from machine to machine, so if you expect to delete the files in the directory and then copy them over from another machine, that would be incorrect. Removing items from here could cause you to have application crashes, or worse, require the reinstallation and patching of the application.<\/p>\n<p>The proper way to alleviate space pressure in this directory is to uninstall any unneeded applications.<\/p>\n<p>I hope that this makes sense and you can see why removing files from this directory can cause you unneeded pain.<\/p>\n<p><em>Source: <a href=\"https:\/\/web.archive.org\/web\/20141224070353\/http:\/\/blogs.technet.com\/b\/joscon\/archive\/2012\/01\/18\/can-you-safely-delete-files-in-the-windir-installer-directory.aspx\">Can you safely delete files in the %windir%\\Installer directory? &#8211; The Windows Servicing Guy &#8211; Site Home &#8211; TechNet Blogs<\/a>.<\/em><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>When you install a program in Windows, the program&#8217;s .msi or .msu setup package gets copied to the C:\\Windows\\Installer folder. The Installer folder is a protected folder with System &amp; Hidden attributes and is found under your Windows folder. What is the Windows Installer folder? The Installer directory is intended to serve as a cache &#8230; <a title=\"How to Clean Up the Windows Installer Cache Folder\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/windows-installer-folder-safe-cleanup-free-disk-space\/\" aria-label=\"Read more about How to Clean Up the Windows Installer Cache Folder\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[6,7],"tags":[987],"class_list":["post-8697","post","type-post","status-publish","format-standard","hentry","category-utilities","category-windows","tag-installer"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":74682,"url":"https:\/\/www.winhelponline.com\/blog\/0x80070660-temp-folder-full-inaccessible\/","url_meta":{"origin":8697,"position":0},"title":"Error 0x80070660: The Temp folder is full or inaccessible","author":"Ramesh","date":"April 5, 2024","format":false,"excerpt":"When you install software that uses the Microsoft Installer (.msi), the error code 0x80070660 may occur. The following is the entire error message: 0x80070660 - The Temp folder is on a drive that is full or is inaccessible. Free up space on the drive or verify that you have write\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"Error 0x80070660 - he Temp folder is on a drive that is full","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/04\/0x80070660-installer-error.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/04\/0x80070660-installer-error.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/04\/0x80070660-installer-error.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":74728,"url":"https:\/\/www.winhelponline.com\/blog\/vc-redist-minimum-runtime-error\/","url_meta":{"origin":8697,"position":1},"title":"[Fix] Visual C++ Redist &#8220;Minimum Runtime&#8221; Error","author":"Ramesh","date":"April 9, 2024","format":false,"excerpt":"When you try to install a Visual C++ Redistributable, the following error may appear: The feature you are trying to use is on a network resource that is unavailable. Click OK to try again, or enter an alternate path to a folder containing the installation package 'vc_runtimeMinimum_x64.msi\" in the box\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"microsoft program install uninstall troubleshooter","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/04\/ms-program-uninstall-troubleshooter-3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/04\/ms-program-uninstall-troubleshooter-3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/04\/ms-program-uninstall-troubleshooter-3.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":1041,"url":"https:\/\/www.winhelponline.com\/blog\/install-msi-packages-logging-right-click-menu\/","url_meta":{"origin":8697,"position":2},"title":"Install MSI Packages With Logging via the Right-Click Menu","author":"Ramesh","date":"May 3, 2010","format":false,"excerpt":"When a software installation that uses the Windows Installer Package fails, you enable Windows Installer logging and re-run the setup to capture the output to a log file for troubleshooting. Logging can be done using the Registry Editor, the Group Policy Editor, or the msiexec.exe command with the required parameters.\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":".msi with logging context menu - registry","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-registry-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-registry-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-registry-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-registry-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":51486,"url":"https:\/\/www.winhelponline.com\/blog\/installation-package-could-not-open-verify-valid\/","url_meta":{"origin":8697,"position":3},"title":"Installation package could not be opened; verify if this is a valid package","author":"Ramesh","date":"June 4, 2023","format":false,"excerpt":"When you try to install a program by running the .msi package, the following error may occur: This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"error windows installer package invalid - folder invalid character","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/msi-package-invalid-error-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/msi-package-invalid-error-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/msi-package-invalid-error-2.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/msi-package-invalid-error-2.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":4855,"url":"https:\/\/www.winhelponline.com\/blog\/restore-windows-store-windows-10-uninstall-with-powershell\/","url_meta":{"origin":8697,"position":4},"title":"Restore Microsoft Store in Windows 10\/11 after uninstalling it with PowerShell","author":"Ramesh","date":"December 21, 2016","format":false,"excerpt":"Windows 10 and 11 come with many built-in Store apps that may not be useful to you. As you may have known, PowerShell allows you to uninstall individual apps or all apps using a single command. If you had used the following command to uninstall all bundled apps in Windows\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"Microsoft Store app installer from AppStore.","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/store-installer-appstore.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/store-installer-appstore.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/store-installer-appstore.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/store-installer-appstore.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1140,"url":"https:\/\/www.winhelponline.com\/blog\/extract-msi-contents-add-extract-all-right-click-menu\/","url_meta":{"origin":8697,"position":5},"title":"Extract Contents of .MSI File and Add &#8220;Extract All&#8221; to Right-Click Menu","author":"Ramesh","date":"January 11, 2011","format":false,"excerpt":"There are situations when you need to pick a single file from a .msi package without going through the installation phase. One good example is that a stand-alone or portable application wrapped in a .msi package. Or, you may need to extract a particular wallpaper image from a theme installer.\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":".msi extract all right-click menu","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/01\/msi-extract-all-menu.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/01\/msi-extract-all-menu.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/01\/msi-extract-all-menu.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/01\/msi-extract-all-menu.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/8697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=8697"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/8697\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=8697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=8697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=8697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}