Jump to content

What to do with ntprint.cat and spX.cat ?


Camarade_Tux

Recommended Posts

  • 1 month later...

:hello:

REM language-dependant
del LISEZMOI.HTM

cd i386
REM only if you disabled sfc (special one)
del /y SVCPACK\*.cat

REM creates an empty SP1.cat
@_ > SP1.cat

REM optimisation only if you use the -o switch when creating the iso
copy ntdll.dll SYSTEM32\ntdll.dll

REM cab as many files as possible
MAKECAB /D CompressionMemory=21 /D CompressionType=LZX NTPRINT.CAT
MAKECAB /D CompressionMemory=21 /D CompressionType=LZX intl.inf
MAKECAB /D CompressionMemory=21 /D CompressionType=LZX dbghelp.dll
MAKECAB /D CompressionMemory=21 /D CompressionType=LZX imagehelp.dll
MAKECAB /D CompressionMemory=21 /D CompressionType=LZX exts.dll
MAKECAB /D CompressionMemory=21 /D CompressionType=LZX regedit.exe

del NTPRINT.CAT
del intl.inf
del dbghelp.dll
del imagehelp.dll
del exts.dll
del regedit.exe

It is to be put in i386, ran, and then removed.

Warning : this is EXPERIMENTAL

PS : reduced my iso by about 4MB.

Edited by Camarade_Tux
Link to comment
Share on other sites

  • 4 months later...

Hum, very nice :D

For the aim of this post and as i understand:

If you disable Simple File Checker, SP1.CAT can be deleted and a dummy file created in it's place. One question, this file is present in SP1? Because if it is, removing all components with nLite deletes the SVCPACK folder.

REM optimisation only if you use the -o switch when creating the iso

copy ntdll.dll SYSTEM32\ntdll.dll

Didn't quite understood this line. What is the -o switch?

NTPRINT.CAT

intl.inf

dbghelp.dll

imagehelp.dll

exts.dll

regedit.exe

Just curious, these files can be compressed to save how much space?

Link to comment
Share on other sites

Imagine you have 10 times the *same* file in different folders of your CD.

The -o switch will only write this file once and will redirect to it the other times. It will save space.

As far as I remember, ntdll is required in i386\SYSTEM32 and the files in i386\SYSTEM32 and i386 are not the same (maybe because of one hotfix). So instead of having 716KB (uncompressed) + 400KB (compressed), -o you will give you 716KB only.

NTPRINT and intl.inf are mainly text : they can be highly compressed. On these two files, you can easily save 1MB or more.

regedit.exe is already pretty small.

For the other ones, I can't remember.

I just know my script reduces my source folder by 4 to 5MB after heavy nlitement.

edit : if you disable system file checker, you still need the sp1.cat OR sp2.cat (according to your SP level, not both) but they can be 0-bit.

There's no need fo ra SVCPACK folder : it is directly in i386.

Edited by Camarade_Tux
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...