Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
RinMinase committed Nov 20, 2017
0 parents commit eb88c6d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions winsxs & installer compressor.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit eb88c6d

Please sign in to comment.