What is windows installer patchcache

Очистка Windows от «не нужных» файлов и папок

До сих пор бывает, что попадаются под руку динозавры с маленьким объемом диска. Приходиться ручками бороться за мегабайты. Буду тут иногда дополнять какие папки можно почистить на системном диске и чему это чревато.

  • %windir%\Installer\$PatchCache$\Managed — вычищаем всё ее содержимое. В этой папке хранятся базовые версии файлов, которые изменяются при обновлении ПО с помощью msp-патчей и используются они для того, чтобы не просить дистрибутив при каждом обновлении. Если установщик этих файлов не найдет, то попросит вставить диск или указать путь, откуда была установлена программа.
  • %windir%\Downloaded Installations — тоже можно смело удалять.
  • %windir%\$NtServicePack*$ — файлы в этих папках служат для возможности удаления установленных обновлений. Если ОС работает стабильно, то можно смело удалять.
  • %windir%\$NtUninstall*$ — файлы в этих папках служат для возможности удаления установленных обновлений. Если ОС работает стабильно, то можно смело удалять.
  • %windir%\SoftwareDistribution\Download — временные файлы для установки скачанных обновлений. Перед удалением остановите службу «Автоматическое обновление» — команда в консоли «net stop wuauserv», после удаления папки снова ее запустите — команда в консоли «net start wuauserv»
  • C:\MSOCache — В этой папке лежат файлы установки Microsoft Office. Ее можно удалять, если у вас сохранился диск с дистрибутивом. Потому, что если вы решите установить какой-либо компонент офиса, он будет ставиться именно из папки MSOCACHE. Можете смело сносить.
  • %windir%\Temp — По названию ясно что это временные файлы. Сносите все что находиться в этой папке
  • %Windir%\SoftwareDistribution — прежде чем ваша ОС установит обновления, она должна их куда-то скачать, и откуда-то их установить. Имено в эту папку она их и качает. Тоже можете смело чистить эту папку. Только чтоб никакие службы не мешали удалять файлы остановите службу автоматического обновления, службу «Фоновая интеллектуальная служба передачи (BITS)», очистите папку и снова запустите эту службы.
  • %UserProfile%\Local Settings\Temp

%UserProfile%\AppData\Local\Temp — вроде та же папка, что и предыдущая

Могу ли я удалить папку «C: \ WINDOWS \ Installer \ $ PatchCache $»?

Эта папка занимает почти ГБ моего C-раздела. Можно ли просто удалить его?

Я думаю, что файлы должны быть безопасно удалены при условии, что вы сможете загружать их снова в будущем, если они необходимы или если у вас есть доступ к исходным установочным дискам. У меня было что-то похожее на моем компьютере, я просто удалял это и устанавливал вещи с оригинального диска каждый раз, когда он спрашивает меня сейчас. Неудобно, да; но я не часто устанавливаю вещи, и это намного лучше, чем тратить целую тонну места на моем жестком диске.

В статье Хита Стюарта » Кэш исправлений и свободное пространство» в блогах MSDN подробно объясняется. Выдержка:

[..] заставляет службу установщика Windows кэшировать любые исходные файлы, заменяемые в базовом кэше. [..] Именно этот базовый кеш, занимающий много места на системном диске после установки [..] Базовый кэш облегчает удаление исправлений, сохраняя исходные файлы, чтобы их можно было скопировать обратно в целевые расположения.

[..] путем удаления базового кэша для продукта, для будущего ремонта, установки исправления и удаления исправления может потребоваться исходный установочный носитель. Если у вас есть место на диске, рекомендуется оставить базовые кэши доступными.

Вы также можете попробовать утилиту MSIZAP от Microsoft. У него есть «безопасный» вариант «G».

Что я делаю для этой папки, так это время от времени возвращаюсь к ней и удаляю только те пакеты, которые не старше шести месяцев. Таким образом, если есть плохой патч, который мне нужно откатить, я обычно могу это сделать.

Является ли это возможным? Да. Тебе следует? Вероятно, нет, если вам не нужно. Установщик Windows хранит эти файлы, потому что считает, что они необходимы, если вам когда-нибудь понадобится установить другое исправление поверх них (или удалить эти исправления).

Если вы сомневаетесь, вы всегда можете пойти по более безопасному пути: просто сжать всю карту установщика ! Щелкните правой кнопкой мыши карту установщика (или просто $ PatchCache $ map) и выберите « Свойства» . На вкладке Общие нажмите кнопку Дополнительно . Наконец, установите флажок Сжать папки, чтобы сэкономить место на диске . Если будет предложено, выберите параметр, чтобы сжать все подпапки и файлы.

Таким образом, вы можете получить до 30% свободного места (или, в вашем случае, почти 300 МБ), и вы сохраните все на тот случай, если вам понадобится этот материал позже. И скорость системы и отклик не сильно пострадают, так как система редко получает доступ к этой карте.

Вы можете применить эту тактику к нескольким другим несущественным системным картам, тем самым восстанавливая много свободного места на вашем диске!

Вы можете удалить содержимое папки.

Следуй этим шагам:

1) Остановите Windows Installer в сервисе.

2) Установите ключ реестра, который указывает максимальный размер папки, равным нулю.

3) Удалить содержимое папки.

4) Запустите установщик Windows службы.

5) Остановите Windows Installer в сервисе.

6) Задайте в разделе реестра максимальный размер папки, равный 10 (по умолчанию).

What are Windows Installer Patch (.MSP) files? Can you remove them?

The Windows Installer Patch (.MSP) files on Windows 10 are located under the C:\Windows\Installer\$PatchCache$ root directory. In this post, we will attempt to explain what is the Windows Installer Patch (.MSP) files, as well as provide concise instructions on how to remove these files from your Windows 10 computer.

The Windows 10 operating system, like any other similar platform, receives regular Updates. These updates are meant to resolve reported bugs and software related issues in order to improve the overall user experience. Depending on each update and its importance, among different bug-fixes, these patches are including new features, system apps, and even new capabilities or security enhancements.

After a Windows patch is installed on your Windows 10 computer, the patch file and other related packages will be cached inside a dedicated folder.

What are Windows Installer Patch (.MSP) files

After your Windows 10 computer Windows patch, the patch file along with other files related to the installation are cached in the hidden system directory as shown below

The files in this cache are mainly used to roll the system back when a patch is uninstalled. Over time, this storage place may become quite large, and if you have a computer in your office/work, business, home or school with a rapidly filling hard drive, clearing the cache can free up gigabytes of space that can be used for business documents such as contracts, invoices, employee evaluations or copies of business letters as well as other non-business documents/files.

While it’s not really recommended to delete essential installer directories, the cache folder that stores the installer patch files can be safely removed from your Windows 10 computer. Continue below to learn how you can safely remove the Windows Installer Patch (.MSP) files from your device.

How to remove Windows Installer Patch (.MSP) files

You are required to be logged in as an administrator on your Windows 10 device to be able to remove the Windows Installer Patch (.MSP) files.

To manually remove/delete the Windows Installer Patch (.MSP) files, do the following:

  • While logged in on your PC, press Windows key + R to invoke the Run dialog.
  • In the Run dialog box, type cmd and hit Enter to open Command Prompt.
  • In the CMD window, copy and paste the command below and hit Enter.

That’s it! Once the command executes, the Windows Installer Patch (.MSP) files will be nuked from your Windows 10 computer.

Additional Information

Bear the following important information in mind:

  • Only files in the C:\Windows\Installer\$PatchCache$ directory, called the baseline cache, are safe to delete. Do NOT, under any circumstances, delete anything out of the Windows Installer cache folder located at C:\Windows\Installer; doing so may cause serious problems in the future that necessitate a reinstallation of the OS or some important software.
  • While clearing the baseline cache is safe, if you ever want to uninstall a patch in the future, you’ll need to download the specific patch’s installer file. For this reason, consider backing up your baseline cache to an external hard drive before clearing it.

On the last note, if your goal is just to free up disk space, consider running the Disk Cleanup utility before clearing the baseline cache.

Date: July 16, 2020 Tags: Files

This file came from another computer and might be blocked to help protect this computer

How to open and a view a JSON file on the web and in Windows 10

How to convert OXPS File to PDF

[email protected]

Obinna Onwusobalu, has studied Information & Communication Technology and is a keen follower of the Windows ecosystem. He runs a computer software clinic. He says it’s best practice to create a System Restore Point before making any changes to your PC. You can contact him on Twitter @ChidumOsobalu.

What is windows installer patchcache

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

While preparing to move my boot drive to an SSD, I found that $PatchCache$ is over 3gb! I understand from reading that these are artifacts of updates and installs I have done over time and they should not be deleted. Can I move them to my slower E: drive and redirect via a mountpoint or some other method ?

Answers

You cannot be able to move $PatchCache$ to other drive. You can delete files under this directory if you want, and your applications will continue to run normally.
DO NOT delete %WINDIR%\Installer no matter how large it might be. Leave %WINDIR%\Installer severely alone.

I have found a work around for you:
Click Start button, input “cmd” right-click command prompt and click run as Administrator.
Type the following command to remove the Windows Installer baseline cache:
rmdir /q /s %WINDIR%\Installer\$PatchCache$

You must stop the Windows Installer service for the change to take effect.
You can set the MaxPatchCacheSize system policy to 0, so that the patch cache will not be created for this or any other products when patched.

Hope it will help you!

All replies

You cannot be able to move $PatchCache$ to other drive. You can delete files under this directory if you want, and your applications will continue to run normally.
DO NOT delete %WINDIR%\Installer no matter how large it might be. Leave %WINDIR%\Installer severely alone.

I have found a work around for you:
Click Start button, input “cmd” right-click command prompt and click run as Administrator.
Type the following command to remove the Windows Installer baseline cache:
rmdir /q /s %WINDIR%\Installer\$PatchCache$

You must stop the Windows Installer service for the change to take effect.
You can set the MaxPatchCacheSize system policy to 0, so that the patch cache will not be created for this or any other products when patched.

Hope it will help you!

You cannot be able to move $PatchCache$ to other drive. You can delete files under this directory if you want, and your applications will continue to run normally.
DO NOT delete %WINDIR%\Installer no matter how large it might be. Leave %WINDIR%\Installer severely alone.

I have found a work around for you:
Click Start button, input “cmd” right-click command prompt and click run as Administrator.
Type the following command to remove the Windows Installer baseline cache:
rmdir /q /s %WINDIR%\Installer\$PatchCache$

You must stop the Windows Installer service for the change to take effect.
You can set the MaxPatchCacheSize system policy to 0, so that the patch cache will not be created for this or any other products when patched.

Can I delete the folder “C:\WINDOWS\Installer\$PatchCache$”?

This folder is taking up nearly a GB of my C partition. Is it possible to just delete it?

9 Answers 9

I think it should be safe to remove the files, provided you’re able to download them again in future if they’re needed or if you have access to your original install disks. I had something similar on my computer, I just deleted it and install things from the original disk every time it asks me now. Inconvenient, yeah; but I don’t often install stuff and it’s a lot better than having a whole ton of space on my hard drive wasted.

Heath Stewart’s The Patch Cache and Freeing Space on MSDN blogs explains in detail. An excerpt:

[..] cause the Windows Installer service to cache any of the original files being replaced into the baseline cache. [..] It is this baseline cache that consumes a lot of drive space on the system drive after installing [..] The baseline cache facilitates patch uninstall by storing the original files so that they can be copied back to the target locations.

[..] by removing the baseline cache for a product, future repair, patch install, and patch uninstall scenarios may require your original installation media. If you have the drive space it is recommended that you keep the baseline caches available.

You could also try the MSIZAP utility from Microsoft. It has a «safe» option, ‘G’.

What I do for this folder is revisit it every now and then and only delete packages in there that are at least six months old. This way, if there’s a bad patch that I need to roll back, I can usually still do it.

Is it possible? Yes. Should you? Probably not, if you don’t have to. Windows Installer keeps those files around because it think they’re needed if you ever have to install another patch on top of them (or uninstall those particular patches).

If in doubt, you can always go safer way: simply compress entire Installer map! Right click on the Installer map (or just $PatchCache$ map) and choose Properties. On General tab, click Advanced button. Finally, check Compress folders to save disk space. If asked, choose an option to compress all subfolders and files.

This way you can gain up to 30% of free space (or in your case, nearly 300MB), and you keep everything in case you’ll need this stuff later on. And system speed and response wont be affected much since system rarely accesses this map.

You can apply this tactic to several other non-essential system maps, thus recovering lots of free space on your drive!

You can delete the folder content.

Follow these steps:

1) Stop Windows Installer the service.

2) Set the registry key that indicates the maximum folder size to zero.

3) Delete folder content.

4) Start Windows Installer the service.

5) Stop Windows Installer the service.

6) Set the registry key that indicates the maximum folder size to 10 (default).

Читайте также:  Служба кошелька windows 10 можно ли отключить
Оцените статью