Skip to content

Commit eb88c6d

Browse files
committed
Initial commit
0 parents  commit eb88c6d

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

winsxs & installer compressor.bat

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
@echo off
2+
echo This Compressor is made thanks to...
3+
echo Author: Rin Minase
4+
echo Commpany: Minase Conglomerate
5+
echo.
6+
echo.
7+
echo Compressing "Windows\WinSxS" or the Windows Side-by-Side Folder
8+
echo.
9+
echo Preparing compression algorithm in 10 seconds
10+
timeout /t 10 /nobreak
11+
12+
@echo on
13+
sc stop msiserver
14+
sc stop TrustedInstaller
15+
16+
sc config msiserver start= disabled
17+
sc config TrustedInstaller start= disabled
18+
19+
icacls "%windir%\winsxs" /save "%windir%\winsxs.acl" /t
20+
21+
takeown /f "%windir%\winsxs" /r
22+
23+
icacls "%windir%\winsxs" /grant "%userdomain%\%username%":(F) /t
24+
25+
compact /c /s:"%windir%\winsxs" /i
26+
27+
icacls "%windir%" /restore "%windir%\winsxs.acl"
28+
29+
del "%windir%\winsxs.acl"
30+
31+
sc config msiserver start= demand
32+
sc config TrustedInstaller start= demand
33+
34+
@echo off
35+
echo Compressing "Windows\Installer" Folder
36+
37+
@echo on
38+
compact /s:"%windir%\installer" /c /a /i
39+
40+
pause

0 commit comments

Comments
 (0)