Windows Installer Patchcache Delete



29 July 2019 Senior Program Developer

Running out of the diskspace on C: I found the C:WINDOWSInstaller$PatchCache$ to be massive! I used JamSoftware “ treesize ” to view what was taking up the space. From research this folder can be safely deleted, however you MUST NOT delete the top level “Installer” folder “C:WINDOWSInstaller” (only the sub-folders inside it). After a clean reformat install of windows 10 home, windows got mysteriously activate itself. During installation, it asked me for the product key, I pressed 'I don't have a product key' and after installation windows got activated, and after I register and added my new microsoft account, it says 'Windows is activated with a digital license. Some of those files 'appear' to be 'orphaned', but they are not. I guess it took out a few, and I wound up not being able to update Norton's Ghost. I had to RE-INSTALL Ghost to fix it. This is the Installer folder, but you may be able to delete the PatchCache? Some links to look at. Download the Windows Installer Clean Up Utility and then extract it with 7-Zip to use the MsiZapU.exe. Open a Command Prompt, type MsiZapU.exe G and press enter. The G command tells the program to remove any orphaned cached Windows Installer data files.

Summary

In Windows 10, many temporary files will be created during normal operations, including temporary installer files. It is necessary for us to delete the temporary installer files because these can slow down the system. In this essay, 3 tips may help you delete Windows 10 temporary installer files.

Content

Part 1. How to Delete Windows 10 Temporary Installer Files

1. In File Explorer, right-click [Local Disk (C:)] to select [Properties].
2. Click the button [Disk Cleanup] at the bottom-right.
3. Then in the following screen, click [Clean up system files] as the system scan is finished, and the system will be scanned again.
4. Check [Previous Windows installation(s)] in the next [Files to delete] checkbox. Click [OK] to delete them.
Hot Topic - ADsRenee Undeleter – Simple & Powerful Software for Data Recovery

Easy to use Recover data by 3 steps;

Delete

Multiple scan modes Fast partition scan, whole partition scan and whole disk scan;

Windows

Supported file types Image, video, audio, text, email and so on;

Image creation Create a partition image to read and back up data;

Supported devices SD card, SDHC, SDXC, USB flash drive, hard disk and computer.

Easy to use Recover data by 3 steps;

Multiple scan modes Fast partition/whole partition/whole disk scan;

Supported devices SD card/USB/hard disk.

Free TrialFree TrialFree Trial800 people have downloaded!-->

This article provides a resolution to solve the disk space issues that are caused by a large Windows component store (WinSxS) directory.

Original product version: Windows 7 Service Pack 1, Windows Server 2008 R2 Service Pack 1
Original KB number: 2795190

Clear Installer Folder Windows 10

Symptoms

When you examine the size of the C:Windows folder, you may notice that the C:Windowswinsxs directory seems to use lots of disk spaces.

Delete Windows Installer Patch Cache

Cause

Windows Installer Patch

The Windows component store (C:Windowswinsxs) directory is used during servicing operations within Windows installations. Servicing operations include, but are not limited to, Windows Update, service pack, and hotfix installations.

The component store contains all the files that are required for a Windows installation. And, any updates to those files are also held within the component store as the updates are installed. This causes the component store to grow over time as more updates, features, or roles are added to the installation. The component store uses NTFS hard links between itself and other Windows directories to increase the robustness of the Windows platform.

Windows Installer Patchcache Folder Delete

The component store will show a large directory size because of how the Windows Explorer shell accounts for hard links. The Windows shell will count each reference to a hard link as a single instance of the file for each directory in which the file resides. For example, if a file that is named advapi32.dll is 700 KB and is contained in the component store and in the Windowssystem32 directory, Windows Explorer would inaccurately report that the file consumes 1,400 KB of hard disk space.

Resolution

The component store cannot reside on a volume other than the system volume because of the NTFS hard links. If you try to move the component store, this will result in the inability to correctly install Windows updates, service packs, roles, or features. Additionally, we do not recommend that you manually remove or delete files from the component store.

To reduce the size of the component store directory on a Windows installation, you can decide to make the service pack installation permanent and reclaim used space from the service pack files. However, if you make the service pack installation permanent, the service pack is not removable.

To remove the service pack files from a Windows installation, use the following in-box utilities:

  • Windows Server 2008 Service Pack 2 installed: Compcln.exe
  • Windows 7 Service Pack 1 or Windows Server 2008 R2 Service Pack 1 installed: DISM /online /Cleanup-Image /SpSuperseded or Disk Cleanup Wizard (cleanmgr.exe)

Scavenging may also be performed proactively on Windows Server 2008 installations by forcing a removal event on the system. Scavenging will try to remove any unwanted system binaries from the installation and enable Windows to reclaim the disk space. To issue an uninstall event on a Windows installation, add and remove any unwanted system component that is not already installed, and then restart the Windows installation. Scavenging will be performed during the following restart of the operating system.

Note

Scavenging is performed automatically on Windows 7 and Windows Server 2008 R2 installations.

More information

To reclaim additional disk space on your system, follow these steps:

  1. Select Start, and then in the Search Programs and Files text box, type Disk cleanup.

  2. Click the Disk Cleanup icon, and run the Disk Cleanup tool to determine what files you can delete, based on your configuration.

Folder

Additional ways to conserve space on the system volume include the following:

  • Move the paging file to another volume on the system.
  • Disable hibernation on the system.
  • Use the dedicated dump file option to capture memory dump files on another volume on the system.
  • Offload user profile and program file directories to another volume on the system.
  • Disable system restore points on client installations.
  • Clean out all temporary directories and folders by using the Disk Cleanup Wizard (cleanmgr.exe).
  • Uninstall unused applications or utilities from the installation.

For more information about the WinSxS folder, see:

For more information about the system requirements for disks, see:

Note

  • When a product is installed by using Windows Installer, a smaller version of the original .msi data file is stored in the Windows Installer Cache (%windir%Installer) folder. Over time, this folder may grow larger. Every additional update installation for the installed products such as hotfixes, cumulative updates, or service pack setups also store their relevant .msp or .msi file in the Windows Installer cache. Over time, this folder may grow larger. We do not support and do not recommend that you delete any files in this folder or replace them with files from another computer. Any update to the application relies on the information that is available in the files that are stored in this folder. Without this information, the updates cannot perform their installations correctly.

  • The %windir%softwaredistributiondownloads folder is used by Windows Update to store downloaded updates. Typically, you do not have to manage this folder because it is managed by Windows. The typical size of this folder is determined by several factors such as the operating system version, what updates are available at the time, and so on. Therefore, it is difficult to provide a typical size expectation. If this folder uses lots of disk space, first install all available updates for the system, and then restart the computer. To troubleshoot this issue if the size still remains large, follow these steps:

    1. At an elevated command prompt, run the Net Stop WUAUSERV command.
    2. Delete the contents of the %windir%softwaredistributiondownloads folder.
    3. At an elevated command prompt, run the Net Start WUAUSERV command: