diff --git a/winsxs & installer compressor.bat b/winsxs & installer compressor.bat new file mode 100644 index 0000000..f1e7680 --- /dev/null +++ b/winsxs & installer compressor.bat @@ -0,0 +1,40 @@ +@echo off +echo This Compressor is made thanks to... +echo Author: Rin Minase +echo Commpany: Minase Conglomerate +echo. +echo. +echo Compressing "Windows\WinSxS" or the Windows Side-by-Side Folder +echo. +echo Preparing compression algorithm in 10 seconds +timeout /t 10 /nobreak + +@echo on +sc stop msiserver +sc stop TrustedInstaller + +sc config msiserver start= disabled +sc config TrustedInstaller start= disabled + +icacls "%windir%\winsxs" /save "%windir%\winsxs.acl" /t + +takeown /f "%windir%\winsxs" /r + +icacls "%windir%\winsxs" /grant "%userdomain%\%username%":(F) /t + +compact /c /s:"%windir%\winsxs" /i + +icacls "%windir%" /restore "%windir%\winsxs.acl" + +del "%windir%\winsxs.acl" + +sc config msiserver start= demand +sc config TrustedInstaller start= demand + +@echo off +echo Compressing "Windows\Installer" Folder + +@echo on +compact /s:"%windir%\installer" /c /a /i + +pause \ No newline at end of file