How To Create TINy XP

Write your "How To" regarding anything you are comfortable with and you feel it will help the forum members.

NOTE :: All threads started here will appear only after the approval from Administrator
Post Reply
e-campus
Posts: 28
Joined: Thu Sep 20, 2007 8:59 pm

How To Create TINy XP

Post by e-campus »

Easily strip out any Windows XP (or 2000/2003) with minimal user interaction and complete control over what is removed or kept. The aim of this is, you start out with it set to be as stripped as it can be, then if you want to, you can remove items from the Last Sessions INI file in order to keep the functionality in your finished ISO. If you want the fastest XP possible, then just let it all take care of the whole process itself, this is the point of this guide, minimal user interaction is needed!

Before you can run the "Start" command included here, there are three requirements...

1 - You need to have the Mzft .NET Framework 2.0 installed (its free).

2 - You need nLite installed (nLite is only 1.45Mb in size and also, free).

3 - You need to go into the Unatt folder and open the one file that is there called WINNT.SIF - open WINNT.SIF with notepad. Look at this and you see that everything is split into nice neat sections. In the fourth section, with the title - [UserData] - you will see it says ProductKey=
This is laid out like so...

[UserData]
ProductKey=
FullName="User1"
OrgName="Home PC"
ComputerName=HOME_PC

Where it says ProductKey= (right after the equals sign) type your Windows XP product key (Home or Pro) in BLOCK CAPITALS. Your text should look like this, with the code below being your key, don't just use the code I have put here, if you read it you can see it is trying to tell you something...

[UserData]
ProductKey=****-****-****-****-****
FullName="User1"
OrgName="Home PC"
ComputerName=HOME_PC

Whilst you're here, you can also put you forename and surname under "User1" but make sure you don't delete the double quotes, they are needed for names with a gap which a first and last name inevitibly will have. Also, where it says "Home PC" you can put your company name if you want. Finally the ComputerName should be something unique to your PC.

You can however leave all these things alone under [UserData] and just change the product key, ALWAYS YOU MUST put a key in the WINNT.SIF file or else you will not have an unattended setup! It will halt the install and ask for a key to be typed in, thats all. This is no big deal, but can be avoided completely if you just change the one line in the one file by adding your own key to it before you start the whole process of stripping XP and making a bootable ISO file.

This sounds tough... but it isn't, you have done the hardest part already by editing that WINNT.SIF file!

---------------------------------------------------------------------------

If you know you already have the Mzft .NET Framework 2.0 installed you can skip to the next section. If you do need to install the Mzft .NET Framework 2.0, or download it, **** this link...

Mzft .NET Framework 2.0

This is 23.5Mb. Once it is downloaded, it takes 5 to 10 minutes to
install once you set the installer going... please be patient!

-----------------------------------------------------------------------------


Now you need to download and install nLite, this is only 1.45Mb

nLite download page:

nLite download page

NOTE: You must install nLite to your Program Files
folder on your Windows drive. This is where nLite will
install to by default. If it is not installed there, the
command will not find it and the automated
stripping process will not run properly!

With the .NET Framework installed and nLite, you can begin...

All you need to do is make sure your XP CD is in your CD-ROM
drive and that you do not have any other Windows discs or ISO
files, this includes any virtual drives you might have, make
sure you unmount all images from those if you have Windows
mounted as an ISO elsewhere, otherwise this will probably
result in the wrong copy of Windows being copied.

You will see an NT command script in the same folder as the text file
you are reading now...


Start.cmd


When you double **** this Start.cmd file, thats when the fun begins,
heres what happens...

1 - Your XP CD will copy to your Windows drive to a folder called TXP

2 - nLite will start up and come to a point where you are asked to load
the file Last Sessions.ini. This bit is easy, just navigate (in the
box that pops up) to your Windows drive (usually C) and into the TXP
folder and there it is... Last Sessions.ini. Double **** the Last
Sessions ini file and the automated process will continue. At some
point, nLite might stay stuck on one screen, if this happens, ****
next. That is the MOST you will ever have to do, just **** "Next" in
nLite if nLite gets stuck. You might have to do this more than once!
This is because the program used to automate nLite cannot possibly
determine what the next screen will be in certain cases. It might
just **** Next, Next, Next, Next all by itself, thats what it is
supposed to do and will in a few cases, but not all cases. Just ****
Next (once only) if it does get stuck. that is all the user interaction
that is required, again, a child could do this! Just give it a few seconds
to respond after you **** "Next" in nLite each time you do it. Remember,
try not to type or move your mouse (apart from to **** next if it gets
stuck!) whilst this whole process is happening.

3 - nLite will get to the "Finished!" stage. Once this happens, you must ****
"Finished" yourself and make sure nLite closes. If you keep nLite open, the
rest of the automated process will not continue because it waits for nLite
to close before it will make your ISO.

4 - Now you will see a few DOS boxes opening, it is compiling your ISO!

5 - Once the whole process is finished, you will be left with one DOS
box still open, with the cursor flashing - leave this open and go
to your Windows drive (usually C) and make sure you have the file
"TinyXP.iso" on your drive.

6 - With TinyXP.iso present, you can close that last DOS box, it is doing
nothing apart from waiting for you to close it, but NOTE: do not close
any of the DOS boxes that open whilst the copying/stripping/compiling ISO
process is taking place, this entire process of copying 500Mb from a CD
and then stripping the living daylights out of it can take up to 45 minutes
on a slow machine! Maybe 15 minutes on a really fast machine. Whilst nLite
is running, just wait until you have TinyXP.iso on your Windows drive and
the DOS box that was counting up the percentage has closed, then it is safe
to close that last DOS box with the flashing cursor.

THATS IT! The TXP folder is deleted and so is the MAKE_ISO.BAT file.

=================================================

Now all you need to do is burn off that ISO file and you have Windows XP
running on just 41.5Mb of RAM that supports MS of*ice, laptops, and still
has Firewire support and LAN Drivers, DHCP Client Service intact etc.

This is designed for games more than anything else, but you should find it
works with most software that people use every day. Sound Controller
drivers are also included.

Note - there is only one Last Sessions.ini file in this entire package,
that is inside the TOOLS folder. If you do not like how this is stripped
out to the max, you can always go through that Last Sessions.ini file
and DELETE the lines in the file for the items you want to keep!

It is not possible to tick boxes in nLite because the automated process
does not give you the chance to. Just back up (or zip) the original Last
Sessions.ini file, then delete any lines you see with things you want to
keep, like Windows Media Player or the Luna Theme for example.

That is it, this is how easy it is to make your own TinyXP!
Once the ISO is burned off, just install it!

Only install onto a freshly formatted drive - because the option
to upgrade is stripped out, being 44Mb. By editing the Last Sessions.ini
file, you can remove the line "Manual Install and Upgrade" to keep the
option there. Every little thing is customizable by using an edited Last
Sessions file. Just remember to never delete the original TinyXP_Guide.exe
file, so you never lose the FASTEST possible setup, that runs on hardly
any RAM and takes only 6 minutes to install.

This should also work with Windows 2000 and Windows Server 2003 - just
remember to put the right key in WINNT.SIF. If you have the corporate
version of Windows 2000 then WINNT.SIF will not need any key.

================================================

TinyXP_GUIDE.exe SHA-512 (SHA-2) Checksum:

ad59eacdf3ba76905a98edaf2fbcc03d
e2614f373d3d62bb195ed2f978876a7d
082daf79e8da40c769a6052955f04841
331c95dfa91e5a00fba23d97a23948e2

================================================

HERE IS LAST SESSIONS.INI WITH STUFF YOU
PROBABLY WILL WANT TO KEEP IN RED TEXT:

[Tasks]
Remove Components
Patches
Tweaks
Options

[Components]
;# Applications #
Accessibility Options
Briefcase
Charmap
ClipBook Viewer
Defragmenter
Games
Internet Games
NT Backup
Pinball
Screensavers
Wordpad
;# Drivers #
Asynchronous Transfer Mode (ATM)
Cameras and Camcorders
Display Adapters
Display Adapters (old)
IBM Thinkpad
InfraRed
ISDN
Logitech WingMan
Modems
MultiFunctional
Portable Audio
Printers
Scanners
SCSI/RAID
Sony Jog Dial
Tape drives
Toshiba DVD decoder card
;# Hardware Support #
ATM Support
Bluetooth Support
Brother Devices
Gravis Digital GamePort
Logical Disk Manager
Multi-port serial adapters
Secure Digital host controller
Smart Cards
Sony Memory Stick
Teletext codec
Video Capture
Windows CE USB Host
Windows Image Acquisition (WIA)
;# Multimedia #
Acm Core Codecs
ActiveX for streaming video
AOL ART Image Format Support
DirectX diagnostic tool
Images and Backgrounds
Intel Indeo codecs
Luna Theme
Media Center
MIDI audio support
Mouse Cursors
Movie Maker
Music Samples
Old CDPlayer and Sound Recorder
Speech Support
Tablet PC
Windows Media Player
Windows Media Player 6.4
Windows Sounds
;# Network #
Active Directory service
Client for Netware Networks
Communication tools
Connection Manager
FrontPage Extensions
Internet Connection Wizard
Internet Information Services (IIS)
IP Conferencing
MAC Bridge
Map Network Drives/Network Places Wizard
MSMail and MAPI
MSN Explorer
Netmeeting
NetShell Cmd-Tool
Network Monitor Driver and Tools
Network Setup Wizard
NWLink IPX/SPX/NetBIOS Protocol
Peer-to-Peer
Synchronization Manager
TAPI Application Support
TCP/IP Version 6
Vector Graphics Rendering (VML)
Web Folders
Windows Messenger
;# Operating System Options #
.NET Framework
16-bit support
Administrative Templates
Administrator VB scripts
Application compatibility patch
Color Schemes
Command-Line tools
Desktop Cleanup Wizard
Disk and Profile Quota
Disk Cleanup
**** Templates
DR Watson
Extra Fonts
FAT to NTFS converter
File and Settings Wizard
File System Filter Manager
Help
Input Method Editor
Logon Notifications
Manual Install and Upgrade
MS Agent
Private Character Editor
Remote Installation Services (RIS)
Save Dump Utility
Search Assistant
Security Center
Service Pack Messages
Shell Media Handler
Task Scheduler
Tour
Web View
;# Services #
Alerter
Application Layer Gateway
Autoupdate
Background Intelligent Transfer (BITS)
Beep Driver
COM+
Distributed Link Tracking Client
Distributed Transaction Coordinator (DTC)
DNS Client
Error Reporting
Event Log
Fax Services
Imapi
Indexing Service
Internet Authentication (IAS)
IPSEC Policy Agent
Management Instrumentation (WMI)
Message Queuing (MSMQ)
Messenger
Network DDE
Network Location Awareness (NLA)
Network Provisioning
Performance Logs and Alerts
QoS RSVP
Quality of Service (QoS)
Remote Registry
Removable Storage
Secondary Logon
Service Advertising Protocol
Shell Services
SNMP
System Event Notification (SENS)
System Monitor
System Restore
TCP/IP NetBIOS Helper
Telnet Server
Terminal Services
Text Services Framework
Volume Shadow Copy
WebClient
Windows Firewall/Internet Connection Sharing (ICS)
Windows Time
Wireless Zero Configuration
;# Directories #
DOCS
SUPPORT
VALUEADD
;# Compatibility #

[KeepFiles]
msconfig.exe

[RemoveFiles]
clock.avi

[Options]
CABRecompress
ClassicSetup
BlackSetupBack
GuestName = ""
AdminName = ""
ProfilesDir = "%SystemDrive%\**** and Settings"
TargetPath = "WINDOWS"
temp_dir = %USERPROFILE%\Local Settings\Temp
isovol = WinLite
isoatt = -allow-multidot -no-iso-translate -relaxed-filenames -allow-leading-dots -N -l -d -D -joliet-long -duplicates-once -no-emul-boot -b boot.bin -hide boot.bin -hide boot.catalog

[Patches]
TcpIp = 16777215
UsbPoll = 125
DoUxTheme
DoSFC

[Services]
StiSvc,3
AppMgmt,3
AudioSrv,2
CryptSvc,2
HidServ,4
HTTP,3
HTTPFilter,3
IpNat,3
NDProxy,3
Netman,3
PlugPlay,2
ProtectedStorage,2
SamSs,2
SCardSvr,3
TapiSrv,3
UPS,3
xmlprov,3
LanmanWorkstation,2
RasAuto,3
RasMan,3
RemoteAccess,4
IpFilterDriver,3
IpInIp,3
DHCP,2
Browser,2
NetLogon,3
RpcLocator,3
NtLmSsp,3
LanmanServer,2

[Tweaks]
Desktop-Internet Explorer icon-Hide
Desktop-My Computer icon-Show
Desktop-My **** icon-Hide
Desktop-My Network Places icon-Hide
Desktop-Recycle Bin icon-Show
Explorer-Add 'CMD Shell' to all Drives and Folders
Explorer-Advanced Search: preconfigure options
Explorer-Change Explorer Folder View to: details
Explorer-Classic Control Panel
Explorer-Disable Beep on errors
Explorer-Disable Prefix: Shortcut to
Explorer-Remove Send To on context menu
Explorer-Show all files and folders
Explorer-Show Drive Letters in front of Drive Names
Explorer-Show extensions of known file-types
Explorer-Show Full Path in Address and in Title-Bar
Explorer-Show Statusbar in all windows
Internet Explorer-Disable information bar when popup is blocked
Internet Explorer-Disable Market Place bookmark
Internet Explorer-Disable Media Player 6.4 created bookmarks
Internet Explorer-Disable sound when popup is blocked
Internet Explorer-Enable Google URL-Search
Internet Explorer-Keep IE URL-History for-50 Days (max recommended)
Internet Explorer-Set Homepage-www.google.com
Internet Explorer-Set Internet Explorer to accept 10 connects at a time
My Computer-Add Control Panel to Context Menu
My Computer-Add Device Manager to Context Menu
My Computer-Add Services to Context Menu
My Computer-Add Software to Context Menu
My Computer-Remove Shared ****
My Computer-Show details in Device Manager
My Computer-Show non-present devices in Device Manager
Network-Disable automatic search for network folders and printers
Network-Disable restoring mapped network drives on logon
Network-Disable Simple File Sharing
Privacy-Clear most recently opened **** list on logoff
Privacy-Disable and Remove **** List from Start Menu
Privacy-Remove Alexa Spyware
Security-Always show Updates under Software
Security-Disable Screensaver
Security-Disable Web Open With prompt
Speed-Disable Optimize harddisk when idle
Speed-Disable Tracking of Broken Shortcut Links
Speed-Do not cache thumbnails
Speed-Use Windows classic folders / No Tasks Sidepanel
Start Menu-Disable Highlight newly installed programs
Start Menu-Disable popup on first boot
Start Menu-Reduce popup delay
Start Menu-Remove My Music
Start Menu-Remove Search the Internet from Search
Start Menu-Remove Set Program Access and Defaults
Start Menu-Remove 'Windows Catalog' from Start Menu
Taskbar-Disable Balloon Tips
Taskbar-Disable Group similar Taskbar buttons
Taskbar-Disable Hide inactive icons
Visual Effects-Animate windows when minimizing and maximizing-Disable
Visual Effects-Fade effect on menus and tooltips-Disable
Visual Effects-Show shadows under mouse pointer-Enable
Visual Effects-Show translucent selection rectangle-Enable
Visual Effects-Show window contents while dragging-Enable
Visual Effects-Slide open combo boxes-Disable
Visual Effects-Slide taskbar buttons-Disable
Visual Effects-Smooth edges of screen fonts-Enable
Visual Effects-Use common tasks in folders-Disable

[Unattended]
UnattendMode = DefaultHide
ComputerType = Automatic
MaximumDataStorePercentOfDisk = 12
ProgFilesPath = "C:\Program Files"

[GuiRunOnce]

[Drivers]

[Hotfixes]
-------------------------------------------------------------------------

REMEMBER - YOU DELETE THESE THINGS FROM
Last Sessions.ini IN ORDER TO KEEP THEM IN
YOUR CREATED ISO! This will bloat it back up again but it will still be fast
and solve a lot of problems if you have old hardware. You can just delete
the entire "Hardware Support" section (keep the heading though) and then
you'd have full hardware support - just remember to back up the Last Sessions
file before you go messing with it otherwise it will very hard to guess how
it was for the maximum stripping. You may want to make variants

VITAL: Remeber, you can never add stuff back to XP, so every time
you want to make it again but with one more thing added, you must
start again, I have a source folder od XP with SP2 integrated and its
hotfixes as a "base" folder to never touch, it is your "full XP" that is
what you always use to strip. The ideal way is start with XP from 2001,
integrate SP2 and Hotfixes and have nLite do the entire 2001 to 2006
conversion one one operation.


SHAdmin
Posts: 2089
Joined: Sat Dec 18, 2004 11:28 am
Contact:

Post by SHAdmin »

That was indeed a very useful 'How to'.

Your account has been credited with 60 points for sharing it.
Dordhs

How To Create TINy XP

Post by Dordhs »

Erk...be carefull of your head I know what you are going through I tried to help Mom learn how to e-mail...she could do it with a word by word explanation every time She could never get it alone...Oh well Good Luck
Post Reply