Jump to content

[XPCD Example]: BioHaZaRD Unattended PRoJeCT


Recommended Posts

Introduction

I've spent many time in this forum and I've collected a great ideas of all the comunity, many of them are or will be forgotten so my idea it's to share them with you.

My intention it's to create a guide so all noobs on this "unattended world" can use this ideas or examples and advanced users can check the work and extract what can be useful.

At the moment I haven't finished my unattended cd but I'll start to share what I've got. Wait a few time until I can completely finish this guide.

1.- Pre-Knowledges

2.- Timeline

3.- Installation Process

4.- Examples

5.- Software Included

6.- Screenshots, Custom Graphics and Downloads

6.1.- Screenshots

6.2.- Useraccount Pictures

6.3.- Downloads

1.- Pre-Knowledges

I'm going to start assuming that you've read the MSFN XPCD Unattended Guide, so if you haven't done before do it now. I'll use terms, tips, tricks and utilities from that guide.

After that I suppose you've spent a few minutes reading posts in this forum, so you have your custom tweaks, you've sucesfully built a WINNT.SIF file and you've played a little with nLite (great application for our purposes).

I'm not going further with applications or drivers because there are other appropiate subforums and you have learnt before how to slipstream them.

2.- Unattended Timeline

|_

| T-55: Text-mode installation

|_

| T-51: Partition and file system election, reboot

|_

| T-39: WinNTBBU.dll screen it's shown

| |_SystemDrive.exe it's extracted

|_

| T-13: Progs.cmd runs

| |_CMDLines.txt

|  |_User accounts, programs with custom install, codecs, right-menu entries, custom logonui, custom regtweaks, RunOnceEx.cmd entries

|_

| T0: Reboot

|_

| Custom LogonUI it's shown

| |_RunOnceEx starts

|  |_Programs installation, custom boot, Office and PhotoshopCS (2nd CD), startup entries and shortcuts clean

|_

| Reboot

|_

| Custom NTOsKrnl it's shown

|_

| Autologon

| |_nLite post-operations

|  |_Temp installation files cleaned

+ Custom desktop (Installation end)

3.- Installation Process

"Press any key to boot from CD.....", that it's exactly what you have to do to start your unattended installation. After this Text-mode installation loads

Text-Mode Installation: Setup start loading controllers, DriverPack MassStorage it's recommended so drivers for your HD are loaded. A few minutes later you're prompt to select partition and file system. From now you're installation will be unattended if you supplied all the information on WINNT.SIF answer file.

First Reboot and WinNTBBU custom screen: WinNTBBU.dll 1) it's the file that contains the GUI of XP installation (see down screenshot for custom WinNTBBU download), so it can be modified. After a few seconds Detached Program it's run. Take a look at this section on WinNT.sif:

[GuiUnattended]
   DetachedProgram="%systemdrive%\SystemDrive.exe"

SystemDrive.exe: It's stored on $OEM$\$1 folder so as you know it's copied to your HD during text-mode setup, contains all the files that need to be in %SystemDrive% while installation. I use it as a replacement for $1, $$, $Docs and $Progs folders but it's a RAR-SFX so with this we gain a lot of space in our CD. %SYSTEMDRIVE%\Drivers folder it's extracted like %SYSTEMDRIVE%\WINDOWS\Fonts and %SYSTEMDRIVE%\WINDOWS\System32. Those dirs hold custom drivers, custom fonts, pskill.exe, cmdow.exe, Unattended Codec Pack, OEMLogo.bmp, OEMInfo.ini...

Installing...: Setup it's installing the core of the OS, devices, network, start menu, components and finally svcpack.inf that I don't really like it ;)

cmdlines.txt: This is really important. From here we load useraccounts.cmd, "programs.cmd" 2), "codecreg.cmd" (that it's part of the Unattended Codec Pack), "RunOnceEx.cmd", "REGEDIT /S rightmenu.reg" and finally "REGEDIT /S logonui.reg".

"programs.cmd" : 2) Here we run programs that don't need an advanced registry environment, like RAR-SFX files + import REGKEYS.REG. The most important for our customization it's that we are going to use RAR-SFXs to extract our custom NTOSKrnl.exe (renamed to OEMKrnl.exe 3)) and LogonUI.exe (renamed to OEMLogo.exe 4)) to %WINDIR%\SYSTEM32 for further integration. Also we use extract our custom themes now packed to RAR-SFX (Themes.exe) to %WINDIR%\Resources\Themes. It's time to import our RegTweaks.reg. Finally as an addition I'm sure you'll find interesting the use of XP-Antispy commandline version.

RightMenu.reg: Loads reg entries for right-click menu for directories, files and My Computer. You can add interesting things like Resource Hacker or Notepad as for right-click My Computer "Device Manager" or "Add/Remove programs".

LogonUI.reg: Before we have extracted OEMLogo.exe 4) to \System32\ so now we are able to import this key to use our LogonUI.exe (remember our custom file needs to be named OEMLogo.exe):

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"UIHost"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79,\
 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,65,00,6d,00,6c,00,6f,00,\
 67,00,6f,00,2e,00,65,00,78,00,65,00,00,00

Finishing Installation: Now setup will finish the main installation, will delete temporal files and the system will reboot.

Logon and RunOnceEx: We first notice that our OEMLogo.exe 4) it's shown. After that a new window will prompt, that it's RunOnceEx 5). At this moment we install those programs that need an advanced registry structure so they can't be installed before. As an addition you will find insteresting a command file I've built, so we can use a 2nd CD. When Office.cmd 5) have run, we have 1 minute to change between CDs, if this not happens installation will continue as normal.

After all the applications are installed, our AV installation runs. Final steps are StartMenu.exe, Startup.cmd and Boot.cmd.

StartMenu.exe: I use this file to extract files to \Documents and settings\. For example you can use this to place custom shortcuts on your start menu. Also can be used to to extract RASPHONE.PBK and our UserAccount Picture. The last one needs to be extracted to \Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\ if you are using SP2, with SP1 or less it's stored on \Documents and Settings\%USERNAME%\Application Data\Microsoft\User Account Pictures\. The picture have to be a 48x48 .bmp file, named like our user name. Also you can extract an Administrator.bmp and so on.

4.- Examples

5.- Software Included

Another BitTorrent Client 2.6.9 (En)

ACDSee32 Classic 2.44 (En)

Adaptec ASPI Integration by RaveRod

Adobe Acrobat Reader 6.0.2 (Es)

AdAware SE Professional 1.05 (En)

ATI Catalyst Control Center 17307 (En)

Conceptronic Bluetooth Software (Es)

BitDefender 8 Professional Plus (En)

BSPlayer Pro 1.00.811 (Es)

Cool Edit Pro 2.1 (En)

Daemon Tools 3.47 (Es)

**** NFO Viewer 2.10.0031 RC3 (Es)

eDonkey 2000 0.52 (En)

Gordian Knot 0.28.7.2 (Es)

GSPot 2.5 (En)

GUI-Replacer 1.4 y Gant2 Pack (En)

Hex Workshop 4.23 (En)

HighMat (En)

LClock 1.62b (En)

Mozilla Firefox 0.9.3 (Es)

Media Player Classic 6.4.8.2 (En)

Messenger Plus! 3.20 (Es)

MSN Messenger 6.2.0137 Gant2 Edition (Es)

Nero Burning Rom 6.6.0.0 (En)

Net Transport 1.92.273 (Es)

Microsoft Calculator Plus (En)

Microsoft Net Framework 1.1 SP1 (En)

Microsoft Office 2003 SP1 (Es)

Microsoft Windows Journal Viewer (En)

Microsoft Windows Media Player 10 (Es)

Outpost Firewall Pro 2.5 (En)

PhAnATiC-ScRiPT 5.0.r04 sobre mIRC32 5.91 (Es)

Resource Hacker 3.4.0.79 (En)

SiSoft Sandra Pro 2004 SP2b (En)

Serials 2000 7.2004.10.01 (En)

Speedtouch USB Modem Drivers (Es)

Sun Java 2 Platform, Standard Edition (J2SE) 5.0 (En)

TuneUp Utilities 2004 4.1.2312 (En)

TweakUI XP Powertoy (En)

Unattended Codec-Pack (Oct 14 2004) by swgreed

Unattended DriverPack Sound (Jun 26 2004) by Bâshrat the Sneaky

Unattended DriverPack MassStorage (Sep 20 2004) by Bâshrat the Sneaky

VoptXP 7.22 (En)

WinAmp 5.05 (Es)

WinISO 5.3 (Es)

WinRAR 3.40 (Es)

WinZIP 9 SR-1 (En)

Work With Registry 3.3 (En)

6.- Screenshots, Custom Graphic Work and Downloads

6.1.- Screenshots

1)WINNTBBU_small.jpg 2)PROGSCMD_small.jpg

3)NTOSKRNL_small.jpg 4)LOGONUI_small.jpg

5)RUNONCE_small.jpg 6)DESKTOP_small.jpg

7)PLEX_small.jpg 8)CHANINJA_small.jpg

9)GORILLA_small.jpg 10)STORM_small.jpg

Media Center Edition Style, Start Menu, Calendar, Gant Messenger, Task Manager (XPize from XPero), Shutdown Windows, Change User

6.2.- Useraccount pictures

Administrador, BioHaZaRD

6.3.- Downloads

Please, post your suggestions, corrections or advice me of broken links. Looking for hosting, please PM me if necessary.

All what you have downloaded from my web space can be considered under GNU (GPL) license.

Edited by SiMoNsAyS
Link to comment
Share on other sites


the unattended guide does a pretty good work on how to create an unattended cd. my plan it's to center the guide on how to customize the unattended installation so yes!

i'll try to show people how to create a custom theme / logon / boot / cursors / icons /sounds... and include them unattended of course ;)

Link to comment
Share on other sites

Nice, I'm really interested in how you put those custom icons on the logon accounts....

That's easy. Drop a bitmap with the user name in the following folder:

C:\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures

That's all! ;)

The "application data" is a hidden folder. Your bitmaps should be 48*48 pixels.

Link to comment
Share on other sites

Nice, I'm really interested in how you put those custom icons on the logon accounts....

That's easy. Drop a bitmap with the user name in the following folder:

C:\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures

That's all! ;)

The "application data" is a hidden folder. Your bitmaps should be 48*48 pixels.

if you don't use sp2, drop them in %APPDATA%\Microsoft\User Account Pictures\.

your bmp has to be named like %USERNAME%.bmp, does not matter SP1 or SP2 ;)

Link to comment
Share on other sites

Creating custom boot screens has already been explained by BOred:

Editing WINNTBBU.DLL For Dummies , The Complete Idiots Guide To Hacking WIN

To use custom pictures during the unattended install, simply copy them to the afore mentioned folder during the GUIRunOnce phase of your unattended setup.

...or, as SiMoNsAiD ;) wait for the tut.

Link to comment
Share on other sites

custom theme / logon / boot / cursors / icons /sounds

Lets see....

Custom theme is easy, as well as teh cursors/icons/sounds as it's all in the same file. Set it like you want, open up the Desktop Control Panel, and click save as...

Logon, easy method would be to use LogonStudio from ObjectDock, or you can go through manually as all it really is is a HTML type file with some CSS.

Kernel, must we go other this again? Man, soo many posts on this, and almost all of them I've been a part of because PEOPLE DON'T READ.

But in any case, nice to see someone doing somethng :P I personally like how you have an overall theme to your disc. I had a LOTR one myself for a bit :P

I"m warning you in advance though, people aren't gonna read this before asking questions. lol. Just won't happen.

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...