Skip to content

Commit 81b81ce

Browse files
committed
Added a version for windows 7
1 parent f42e3b9 commit 81b81ce

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

winsxs & installer compressor win7.bat

+14-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ echo Author: Rin Minase
44
echo Commpany: Minase Conglomerate
55
echo.
66
echo.
7-
echo Compressing "Windows\WinSxS" or the Windows Side-by-Side Folder
8-
echo.
97
echo Preparing compression algorithm in 10 seconds
108
timeout /t 10 /nobreak
119

@@ -28,6 +26,20 @@ icacls "%windir%" /restore "%windir%\winsxs.acl" /c
2826

2927
del "%windir%\winsxs.acl"
3028

29+
30+
icacls "%windir%\System32\DriverStore\FileRepository" /save "%windir%\FileRepository.acl" /t /c
31+
32+
takeown /f "%windir%\System32\DriverStore\FileRepository" /r
33+
34+
icacls "%windir%\System32\DriverStore\FileRepository" /grant "%userdomain%\%username%":(F) /t /c
35+
36+
compact /c /s:"%windir%\System32\DriverStore\FileRepository" /a /i /f
37+
38+
icacls "%windir%\System32\DriverStore" /restore "%windir%\FileRepository.acl" /c
39+
40+
del "%windir%\FileRepository.acl"
41+
42+
3143
sc config msiserver start= demand
3244
sc config TrustedInstaller start= demand
3345

0 commit comments

Comments
 (0)