Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

nLite - Windows reduction tool

- - - - -

  • Please log in to reply
671 replies to this topic

#1
nuhi

nuhi

    nLite & vLite human.dll

  • Developer
  • 4,343 posts
  • OS:none specified
  • Country: Country Flag
This thread is old, refer to website for more recent info.

Visit webpage for latest updates and downloads, this topic contains outdated information.

----

Here is a thing i've been working on.
Mainly, it's a little bit of a slipstreamer, customizer, reducer and iso creator all in one package.
Works for every version of Windows XP installation, so far tested up to slipsteamed SP2 build 2144.

To avoid confusion, this is for pre-installation, not like XPlite which is post installation customizer.

It's written in .NET so you will need Framework to run it.

Quick overview (download below):

1. Slipstream
After you extract it to any folder and ran it, you can browse and point to folder on hard drive which contains your Windows installation.
If you pointed to right folder with i386 in it and Windows id files, nLite will detect if you have already slipstreamed SP1 or SP2,
and if not it will change Browse button to Slipstream, when pressed it asks for Service Pack installation file (or update.exe if you extracted it).
Then it Slipstreams it passively. Or you can configure your existing version without slipstreaming.

2. Customize/Reduce
Choose which components to remove from your Windows installation permanently.
It's version independent, it's possible because I'm not using filelists, well, allmost.
There is only an inf-filelist which then gets parsed for used files, so ~95% of file names are automatically generated from your own inf's.
The other 5% are manually added.
Most likely nLite will work with future versions of Windows XP without any problem.

3. Advanced Options
Make sure to keep Data directory with nLite and all the files in it unrenamed.
Added automatic hacking of syssetup.dll for OOBE disabling (if you choose to remove it, this will not crack Activation).
SFC is entirely disabled too simply by copying hacked dll from Data and adjusting registry.
Many options to add in the future, priority so far was on reduction issues.

4. Make ISO
This section is using external file data\cdimage.exe which I believe don't need introducing.
When reduction process finishes you can copy additional files to installation directory and then press Make ISO, it will ask you
for desired ISO name and location.
Then you can burn it and/or test it.
(included boot sector is default from ms cd, if you are using, for example cdshell, you need to replace Data\bootsector.bin)


used external files in data directory
-cdimage
-xp cd bootsector
-modifype
-hacked sfc
-winnt.sif (paste into yours if you don't have these lines) - this is not crucial, only significant thing is that it prevents some driver signature issues and dllcache gets smaller.It's recommended that you make your own, follow instructions from here
-icon taken from G.A.N.T. collection

To sum it up, if you don't know what is this stuff in data dir or some advanced options, you don't need to bother,
just select in nLite what you don't need, everything will be done automatically.
Be sure to have at least 500mb free on drive on which is your installation.

If you run into any errors just see nLite.log and let me know if something was removed but was not supposed to.
Don't play with Experimental section if you don't know what you are doing.

Edited by nuhi, 14 January 2008 - 01:31 PM.

http://www.nliteos.com | http://www.vlite.net
Remove components and customize Windows


How to remove advertisement from MSFN

#2
edmoncu

edmoncu

    Advanced Member

  • Member
  • PipPipPip
  • 331 posts
wow great! i would like to know though, aside from making an iso, does it have an option of removing files only from the installer? letting me manually choose to make iso or use another app (like nero) for gerenating isos? thanks.
Please join the growing Filipino Community of PC Experts and Enthusiasts
Posted Image

#3
nuhi

nuhi

    nLite & vLite human.dll

  • Developer
  • 4,343 posts
  • OS:none specified
  • Country: Country Flag
If I understood you right, yes you can make ISO however you want, as you can see from screenshot it's your choice.
After reduction it stops and asks for ISO creation.
http://www.nliteos.com | http://www.vlite.net
Remove components and customize Windows

#4
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
just curious on the removing, did you base it off jdoebeck's batches, or is it truly parsing through the INFs in I386 for setup files?

You said you use an INF file list, is that the list of INFs you search through? or is it dynamically created?



Great work though. Looks quite impressive.
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#5
[BM]Crusher

[BM]Crusher

    Got milk?

  • Member
  • PipPipPipPip
  • 570 posts
holy cow! someone's been busy :)

downloading now to test it... this is great finally get rid of all those extra bits with ease! and a huge amount of flexibility you have built in!

great effort top points for that one!

#6
nuhi

nuhi

    nLite & vLite human.dll

  • Developer
  • 4,343 posts
  • OS:none specified
  • Country: Country Flag
@Alanoll, inf list in manually written for every program because there is no section in windows installation for that, some of them have few infs named completely differently.
So, there is an inf file list, then it parses through those infs and generates file list of used files in that inf, that totaly dynamic, there is no file list like in jdoebeck's batches, that was a tricky part but it works.
I don't know what means based on jdoebeck's batches, if you think that i too replace [DefaultInstall] rows with blanks than yes :)

Couple of new components introduced in sp2 are added only if sp2 is detected.
Planning to make a detection of already removed components, and there shouldn't be a problem integrating even Win2k in the future but i'm not that interested.

@[BM]Crusher, let me know if you encounter any problems, after all this is first public release, so there could be glitches
http://www.nliteos.com | http://www.vlite.net
Remove components and customize Windows

#7
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
by based, I meant the idea and the method of removal.

By getting the file list, and blank it in the INF and then removing from TXTSETUP.SIF and DOSNET.INF. Looks like the same general concept, only you get the file list dynamically, while his is hardcode copied from the original INF.
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#8
hinet

hinet
  • Member
  • 8 posts
  • OS:none specified
  • Country: Country Flag
Posted Image

#9
nuhi

nuhi

    nLite & vLite human.dll

  • Developer
  • 4,343 posts
  • OS:none specified
  • Country: Country Flag
Alanoll, if you look at it like that than it's the same.
Tried hacking syssetup.inf but without luck.

Don't think that i'm not giving credit where credit is due, i thougt about it and came to conclusion that we all know from where files are getting copied from and i didn't took a single line from his batches.

hinet, you could translate it to me, but it looks like you are using some language files i deleted. Try not to touch Language Support.
http://www.nliteos.com | http://www.vlite.net
Remove components and customize Windows

#10
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
possible translation?

@nuhi

Oh, I could tell you didn't take anyone's ideas. You're method is different from jdoebeck's. Therefore, no need to give credit.

as for syssetup.inf, you do know it's signed right? but it might be a good file to look through to find INF files. Just an idea. Never really looked into it.
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#11
Chris Lee

Chris Lee

    Advanced Member

  • Member
  • PipPipPip
  • 329 posts
The translation is:

Setup Encountered Error on line 13165's .SIF file has language error

#12
nuhi

nuhi

    nLite & vLite human.dll

  • Developer
  • 4,343 posts
  • OS:none specified
  • Country: Country Flag
@Alanoll, ok, concerning syssetup, i know it's signed, probably check calls are in syssetup.dll but it's out of my league for now.
Infs are listed in there but without label, there is for example just [DeviceInfsToInstall] section with a bunch of infs which don't mean anything if i don't group them by names and put couple of them under certain driver group.

Edit: Chris Lee, thanx for translation

hinet, try again without any Language Support option and if it failes again just send me your txtsetup.sif file after the reduction (located in i386 directory).
You can send it to nuhi (at) softhome (dot) net
http://www.nliteos.com | http://www.vlite.net
Remove components and customize Windows

#13
edmoncu

edmoncu

    Advanced Member

  • Member
  • PipPipPip
  • 331 posts
@nuhi, will the resulting trimmed-down xpcd install well with all pc configurations? or is it designed to work only on the pc where it was created from? i am worried it might break with a modified txtsetup.sif file (i added a couple of mass storage drivers there).
Please join the growing Filipino Community of PC Experts and Enthusiasts
Posted Image

#14
Markymoo

Markymoo

    Junior

  • Member
  • Pip
  • 79 posts
Holy mackeral Holy cow Holy Jesus!

First time test on service pack 1 xp i removed all components except for the following.

Internet Explorer
Outlook Express
IFS
MS Agent
Manual Installation winnt32
Experimental

The result.....removed 343mb and i386 dir was now 166mb wow! and built iso no problem. In my root dir there was still dotnetfx.exe dir and files net framework which was 35mb so i delete this as i dont need.

Having this gui is easier to remove components and no lots of bat files to run 1 at a time using jdoebeck's method. I dont know if you use the same method to remove files from inf. At first glance it seems more choice of components to remove with nlite.

Came to install all fine until 33 min mark installing devices and up popped setup cannot copy the following file s3legacy.sys and also s3legacy.dll which im sure is part of the s3 graphic chipset driver so i cancel and it resumes installing. No more errors popup :)

EDIT: The above s3 error has now been fixed.

Boot into windows all components are gone as chosen.

Tested using VirtualPc 2004

Great Stuff !! Great Work !! Great Result!! from this 1st release

#15
nuhi

nuhi

    nLite & vLite human.dll

  • Developer
  • 4,343 posts
  • OS:none specified
  • Country: Country Flag
@edmoncu, it will work just fine.
If you encounter any file missing just look in nlite.log in what section it was and don't select it next time.
http://www.nliteos.com | http://www.vlite.net
Remove components and customize Windows

#16
hinet

hinet
  • Member
  • 8 posts
  • OS:none specified
  • Country: Country Flag
Posted Image

http://www.eputian.net/TXTSETUP.rar

#17
nuhi

nuhi

    nLite & vLite human.dll

  • Developer
  • 4,343 posts
  • OS:none specified
  • Country: Country Flag
@Markymoo, great, thanx for the report, i know what's the problem.
It's the display.inf file, i'm going to remove it from parse list, it contains basic display drivers which we all update on install.
http://www.nliteos.com | http://www.vlite.net
Remove components and customize Windows

#18
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
@edmoncu
you shouldn't have any problems with adding mass storage devices. For best results, I suggest not to remove any drivers, but that will mean that the reduction won't nearly be as much. But more drivers, less chance of XP not having it by default, but then again, you'd just download updated ones anyway. You may want to run this program on a fresh source, with no alterations. then use it, THEN add the storage drivers.
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#19
XtremeMaC

XtremeMaC

    MSFN SuperB

  • Member
  • PipPipPipPipPipPipPipPipPipPip
  • 5,070 posts
  • OS:Windows 7 x64
  • Country: Country Flag
wow
just got the new topic notification
I'm amazed by this program
haven't tested it yet but even the looks are very promising.

Thanks nuhi!!!



#20
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
too bad it's using .NET framework. :)

for some reason, I never really liked the framework. But it does make coding alot easier.
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#21
Markymoo

Markymoo

    Junior

  • Member
  • Pip
  • 79 posts
@Alanoll thats a tiny price considering what it can do.

Now you are really splitting hairs. Thats not the issue here.

It works enuff said!

#22
nuhi

nuhi

    nLite & vLite human.dll

  • Developer
  • 4,343 posts
  • OS:none specified
  • Country: Country Flag
@Markymoo, fixed.

@XtremeMaC, i hope you don't run into any problems :)

@Alanoll, I agree, it's too big for a runtime, but when i compared code in c++ and c#, i gave up on c++, but if Framework support shows as a problem I can transport it into c++ within week or two, but lets not be hasty.
For starters good night, it's 5:30 in the morning on my side of the planet

edit: @hinet, i donloaded your file, thanx, but i'll look into it later, now i gotta go, check for update in 24 hours.
http://www.nliteos.com | http://www.vlite.net
Remove components and customize Windows

#23
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts

@Alanoll thats a tiny price considering what it can do.

Now you are really splitting hairs. Thats not the issue here.

It works enuff said!

:)

good, it works.

.NET is no real problem. I'm sure when I use the program, it will be just before I format anyway :rolleyes:
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#24
XtremeMaC

XtremeMaC

    MSFN SuperB

  • Member
  • PipPipPipPipPipPipPipPipPipPip
  • 5,070 posts
  • OS:Windows 7 x64
  • Country: Country Flag
hey u want an installer :)
I just got a new toy
installshield premier X



#25
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
you lucky bastard......
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN