MicroSoft – MacroS…

Mój oczywiście uczelniany służbowy komputer (prywatnego nie mam…) zakupiony ponad cztery lata temu ze statutowej krwawicy zaczął odczuwać brak miejsca na dysku. Byłem jednym z pierwszych, którzy zdecydowali się na relatywnie mniejszy dysk SSD… INTEL SSDSC2BW180A3H – 167.68 GB. Zostało mi nieco ponad 2 GB wolnego. Dramat… Różne wujki dobra rada oczywiście powiedzą mi – za dużo używasz kompa, za dużo instalujesz. Uhu! Najlepiej jak na kompie nie ma nic poza systemem operacyjnym, który oczywiście ze względów bezpieczeństwa uaktualniamy…
Jako tak zwany “super user” w ramach wakacyjnego naprawiania i zbawiania świata rozpocząłem poszukiwania przyczyn problemów. Oczywiście jako użytkownik bardzo starej daty czyli weteran wiem co to jest wielkość pliku. Nie jest dla mnie rozwiązaniem problemu zakup nowego większego dysku… Rozpocząłem więc “badania” wielkości katalogów.
Dla użytkownika na C: było 143 GB. Na dzień dobry hiberfil i pagefile zjadały 16 GB. Documents i Downloads to kolejne 18 GB. Zostaje więc 109 GB. Katalogi Program Files zajmują kolejne 16 GB. Zostaje więc 93 GB. Patrzymy dalej… Katalog Windows zajmuje aż 69 GB! Czyżby ten system był aż tak… “wielki”? Zaczynam być złośliwy… Co w nim jest aż tak wielkiego? Jest to ukryty katalog Installer, który ma aż 39 GB. Powiedzy jestem w stanie przełknąć “wielkość” Windows na poziomie 30 GB…
No to pogrzebałem nieco jak kura w… Pogrzebałem i znalazłem narzędzie! Ale… Kij ma dwa końce! Wzruszyła mnie odpowiedź pracownika MacroS… Cytuję w całości:

Can you safely delete files in the %windir%\Installer directory?
The following was written by joscon who works at Microsoft:
This is a hidden system directory; it is used by the Windows Installer service to cache installer data files for various applications. Over time, this directory will grow and can eventually take up an amount of space that might cause pressure on thinly provisioned storage, such as virtual hard disks.
So, the question usually asked is: Can I safely remove the files in this directory? The answer is flatly: No. So let’s talk about why this is a bad idea.
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.
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’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.
The proper way to alleviate space pressure in this directory is to uninstall any unneeded applications.

Znowu o informatykach…

Kolejny ciekawy artykuł o braku informatyków. Czy będzie kiedyś taki o… budowlanych? Najciekawsze są jednak komentarze! Mój? Dobry informatyk jak dobry inżynier budowlany zarabia dobrze. Reszta to mięso armatnie. Niestety nie każdy absolwent nawet najlepszej uczelni to dobry absolwent. Bo nie każdy kandydat na Studenta jest potem dobrym Studentem. I tu jest chyba pies pogrzebany…