Commit eb88c6d 0 parents commit eb88c6d Copy full SHA for eb88c6d
File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments