Contents

 

1. Introduction_ 2

1.1 Hardware abstraction layer 2

 

2. Creation of the answer file 3

2.1 The answer files Wizard_ 3

2.2 Important Sections of the answer file_ 4

 

3. OEM files structure and driver integration_ 5

3.1 Windows XP OEM structure_ 5

3.2 Drivers Integration_ 6

 

4. Critical updates installation_ 7

4.1 General 7

4.2 Installing patches when the first user log in_ 7

4.3 Installing patches during the DOS part of the installation_ 8

4.4 Deleting useless files from the original CD_ 8

4.5 Installing the Recovery console_ 8

 

5. Configuration of the Default User 9

5.1 VBS Scripts (Tweakomatic) 9

5.2 The Reg Load command_ 9

 

6. Writing the CD with Ahead Nero 6_ 10

 

7. Examples of files 13

7.2 Sample files from the Network part of the installation_ 20

 

8. Tools 24

8.1 Utilities 24

8.2 Unattended related sites 24

 


1. Introduction

 

This guide will show you how to build an automated installation CD of windows. With everything configured.

Here are some advantages of using unattended installations over imaging software and Sysprep.

 

 

·         You can manage one image per operating system.

·         Works with all types of machines

·         No need to change Sid’s using third party software or Sysprep

·         The computer is installed with a method recommended by Microsoft. A computer installed with imaging software is not a clean installation.

·         You have a drivers database, so even if it’s is a new machine, the unattended installations are going to work. Maybe you are going to miss one or two drivers. You can add them to the new CD later.

·         Avoid hidden hardware bug related to the machines not identical. (When installed with imaging software).

·         Whoever installs the computer will have the same software configuration

·         There is no need to redo your images each time you add a patch or a fix

·         It is possible to do everything from the network. But from the test I made, it’s too slow.

·         No speed problem when you install multiple computers in same time.

 

Another good way would be to use to use Sysprep with imaging software like Norton Ghost. This would be faster but, you would need more images, because Sysprep doesn’t redetect the Hardware abstraction layer (HAL)

 

1.1 Hardware abstraction layer

 

The hardware abstraction layer (HAL) is a layer of programming that allows a computer operating system to interact with a hardware device. Sysprep doesn’t reinstall the HAL, once an HAL type is installed, you cannot change it. That means if you plan on using Sysprep; you will need an image for each Hal type.

 

 

 

Standard HAL Type

 

 

Computers Class

Standard PC

Pentium I, Pentium II, or a PC with ACPI is disable in Bios

ACPI Uniprocessor PC

Pentium III, Pentium IV

ACPI Multiprocessor PC

Pentium IV, Multiprocessor PC

 

 

Sysprep is a mini install Wizard, which generate a new Sid. Sysprep use an answer file that look like the one from the unattended installations. Sysprep reset all the user profiles settings and also redetect the hardware. That means that you are going to have to build an answer file, and find a way to configure the user profiles. I find Sysprep useful to change a hard drive of a machine.

 

 


2. Creation of the answer file

2.1 The answer files Wizard

 

The first step is to create the answer file to put on the CD. The answer file contains all the parameters to install a standard version of Windows 2000 or XP. Each operating system requires it’s own answer file.

 

Unzip deploy.cab from the Windows XP CD in a temporary directory. (You can find it under: \SUPPORT\TOOLS) or you can download it from wwww.microsoft.com/download. It’s better to download it from the Microsoft website because; it’s going to be the latest version available. When a new service pack comes out, they add some functions.

 

Start SetupMGR.exe, select what you need.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


 


Unfortunately the Wizard is doing only a simple answer file, so you going to have to edit the answer file manually. You can find help for the commands in the Deploy.cab, ref.chm and deploy.chm. It’s easier to start with an answer file, that’s already working. Even on the Microsoft Website there are some syntax error on their samples.

 

2.2 Important Sections of the answer file

 

Here are some examples of answer files. Figure 1 is made with Setupmgr.exe without any modification.

 

 


                       

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

              

 

Components

This section contains entries for installing the components of Windows. Example: Calculator, Outlook Express, games.

 

GuiRunOnce

This section contains commands to execute the first time the user logs on to the computer after the installation completes. It is good to apply the last critical updates, registry fixes, or installation of applications. The Batch file that runs in Runonce is Final.cmd, located in \$OEM$\APPS\Patch.

 

Networking

This section configures the network cards. If left empty, the network cards will be installed with the default settings. You can configure, all the protocols settings, and networking services installed.

 

 

 

LCID HEX

Valid Locale ID

English_United_States

409

0409:00000409

English_United_Kingdom

809

0809:00000809

English_Canadian

1009

1009:00000409

1009:00011009

1009:00001009

French_Standard

040c

040c:0000040c

0409:00000409

French_Canadian

0c0c

0c0c:00011009

0409:00000409

Regional Settings

This section contains entries for installing regional settings and the configuration of the Keyboard languages during Setup. See figure 3 for the main Keyboard code. Having the good keyboard configuration is not easy. Even if you have the good Keyboard code, the default English US keyboard will probably come back. The easiest way to walk around this issue is to fix the good keyboard configuration directly in the registries.

My Unattended installation does it the first time a user log on. This is done through the Final.cmd batch file.

For the complete list of the Keyboard codes you can go:

http://www.microsoft.com/globaldev/reference/winxp/xp-lcid.mspx

 

Shell

This section contains entries for specifying the visual style of the user interface. (The way the Desktop looks) You can configure Windows XP to use the classic desktop, in this section. To use Windows Classic startup menu, change the value in [SHELL] to DefaultStartPanelOff=Yes.

Figure 3 Keyboard settings

 
 


Unattended

This is the main section; most of the settings are there, like drivers policies, partitions, activation of Windows. 

 

3. OEM files structure and driver integration

3.1 Windows XP OEM structure

 

Unattended installations require a special directory structure. On the CDROM, you need to create a directory $OEM$ at the root of the CDROM.

 

 


Name

Destination

Notes

  Winnt.sif

   WinXP\I386

 

  Windows installation Answer file

   
  Cmdlines.txt
  Patches.bat
  Parse.bat
  Runex.bat
  Up.bat

   WinXP\$OEM$ 

Don’t forget the line
OemFilesPath="..\$OEM$" in Winnt.sif

  Critical Updates
  Applications

   WinXP\$OEM$\Drv\Patch

Critical updates location, keep the       files in short names (8.3)

  Registry tune up

   WinXP\$OEM$\Drv\Patch\Reg

 Registry fixes

  Drivers Database

   WinXP\$OEM$\Drv\

 Drivers added to Windows CD

Files that need to be place in Windows\System32

   WinXP\$OEM$\$$\System32

The files going to be copied in Windows\System32

 

 

 

 

\$OEM$\$$

Represent the environment variable %Windir%, most often (C:\Winnt). So \$OEM$\$$\System32 represents C:\Winnt\System32.

 

\$OEM$\$1

Represent the %systemdrive% variable. Most often it’s the C:

 

\$OEM$\DRV

Used for the drivers. Each driver must have his own directory. Example: \Drv\Intel, \Drv\Nvidia.

 

\$OEM$\Textmode

If you need to add mass storage drivers, like raid cards or SCSI Hard drives. (For hardware you will need to press F6 at the beginning of the installation.) I didn’t test it. The SCSI hard drives that I tried worked fine. But it’s probably not the case with a new hard drive.

 

\$OEM$\C

Represents the C: drive, D would be the D drive etc...

 

3.2 Drivers Integration

 

 

Windows XP let’s you add all kinds of drivers. But if the drivers are not signed digitally Windows will prompt you, the first time an administrator logs in, if you want to install them.

 

A valid driver must include an .INF and a .CAT, if you don’t have those two files, your driver won’t work. If you can’t find your driver, there is some software, like Windriver, Ghost or My Drivers that let you use drivers already installed on your computer. For each driver, create a folder and place the files under \$OEM$\DRV\DriverName.

 

For each new driver going onto the CD, you have to add those lines on the Winnt.sif file and modify the line OemPnPdriversPath and add an entry for the new drivers. Winnt.sif supports a maximum of 255 characters per line.

 

Example: I am adding the NVIDIA driver:

 

[Unattended]

DriverSigningPolicy=Ignore

OemPreinstall=Yes

              OemPnPDriversPath=”Drv\Intel;Drv\Nvidia”

 

 

The Intel Chipset drivers require a special procedure

 

  1. Download the Intel Chipset Software utilities
  2. Extract the drivers, running this command INFINST_ENU.exe –a –a C:\Extract\INF
  3. Create the directory \$OEM$$\INF and copy all the files from C:\Extract\INF
  4. Create the directory \$OEM$\$1\Drv\Intel and copy all the files from C:\Extract\INF
  5. Modify Winnt.sif and add the following:

 

[Unattended]

DriverSigningPolicy=Ignore

OemPreinstall=Yes

              OemPnPDriversPath=”Drv\Nvidial;Drv\Via”

 

 Check this page for more details about chipsets installation. http://support.intel.com/support/chipsets/inf/sb/CS-009276.htm

 

4. Critical updates installation

4.1 General

 

There are two places where you can install critical updates, at the DOS based part of the installation ($OEM$\Patches.bat) and also the first time the user logs in. ($OEM$\$1\Drv\Patch\UpXP.cmd)

 

The updates are installed with batch files. Most patches made by Microsoft have the same command line parameters. If you don’t know, you can type “834945.exe /?” Always rename the patch to the 8.3 name format, Q354545.exe.

 

You have three kinds of patches, for Internet Explorer, for Windows, and for MDAC. Internet explorer and the normal critical updates patches have different icons. The parameters look like this:

 

Internet Explorer :        828750.exe /q:a /r:n

MDAC :                         823718.exe /c:”dahotfix.exe /q /n” /q

Windows :                     819696.exe /q /z

 

To install the critical updates I use a batch file that checks in the registries if it’s already installed

 

The Internet Explorer Patches are listed under the Key MinorVersion. So we need to read this key to check if it’s already installed. Here’s an example. For the patch Q831167, its looking for the value 831167, if its not there, run %PATCH%\Q861167.exe /Q:A /R:N and install it.

 

Most of the others patches are listed under HKEY_LOCAL_MACHINE\Software\Microsoft\Updates\Windows XP\SP2\Qxxxxx.

 

4.2 Installing patches when the first user log in

 

This command comes from the answer file, WINNT.SIF located in the CD_ROOT\I386. Under the [GuiRunonce] section add a line like this:

 

[GuiRunonce]

             %systemdrive%\Apps\Final.cmd

 

                                                                   Patches.bat                                                                                                     CMDLines.txt

                                                                 

 

 

 

 

 

 

 

 

 

 


 

 

 

 

 

 

 

 

4.3 Installing patches during the DOS part of the installation

 

You need to have a batch file in CD_ROOT\$OEM$\, and add an entry in CMDLines.txt.

                                                                                                            

This part runs when only 13 minutes is left on the Windows Installation.

 

You can download the updates from Windows Update Catalog. www.windowsupdate.com/catalog

 

4.4 Deleting useless files from the original CD

 

To free up some space on the Windows installation CD. You can delete some files from the original CD. Here you can see the locations of the files, and what they are used for.

 

 

Locations of files

Used to

  \DotNetFx\

To install Microsoft Framework 1.0.

  \I386\Lang

To install Windows with special languages, like Chinese or

 Korean.

  \I386\Win9xMig

 For applications migration

  \I386\Win9xUpg

 To do upgrade of Win9x computers to Windows XP or Windows 

 2000. (The installation must be started from Windows 9x to do

 an update.)

  \Support\

 Contain Deploy.cab and the Remote Desktop Client

  \ValueADD\

 Contain Third party software like the Citrix Client.

 

 

You can safely remove all those directories; you will save around 191 Megs. But you won’t be able to do upgrade installations. Update only works if you start the installation from Windows. (You cannot boot from the CD drive to do an Update)

 

 

4.5 Installing the Recovery console

 

To install the Recovery Console, go on the CD, open a command prompt and type: “i386\\winnt32.exe /cmdcons /unattended".

 

With Windows XP the Recovery Console, by default, requires the local administrator account to log in. But in place like here, the local admin password could be ten passwords. So you can set the console to auto log in.

 

If you want to make the Recovery Console to auto log in: Add a DWORD SecurityLevel with the Value 00000001

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole

 

If you want to be able to write to floppies: Add a DWORD SetCommand with the Value 00000001

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole

 


5. Configuration of the Default User

5.1 VBS Scripts (Tweakomatic)

 

Most of the configurations of the user profiles are done with VBS Scripts made by Microsoft.  They made a tool called Tweakomatic. This tool let’s you build your own VBS Scripts.  (See Figure 1)

 

Select a setting, your going to see the codes in the bottom left windows. Create a new text file and rename it to something.vbs. Those scripts are really easy to work with.

 

Now you can just double click on the file to execute it.

Or you could use a batch file to execute them. It’s possible to build a script with all the settings in one file. But I prefer to have one file per setting; like that it’s easier to remove one, if needed.

5.2 The Reg Load command

 

To be able to edit the registry of the default user, you must load “Document and Settings\Default User\Ntuser.dat” in you registry. You going to have to edit each VBS script and add the path of the default user registry.  (See figure 2)

 

Here is a simple example of a batch file, which loads the Default user registry into HKEY LOCAL MACHINE\TEST.

(See figure 3)

 

I execute the batch file “FixVBS.bat” the first time a user log in. (See Figure 4)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


                                                                                                            

                                                                                                                                

 

                                                                                                    

 

       

 

 

 

There is another tools made by Microsoft to write scripts, but its more complex. It’s called Scriptomatic; you can download it from Microsoft website.

 

You can find useful information and tons of already made scripts on this page:

http://www.microsoft.com/technet/community/scriptcenter/default.mspx


 

6. Writing the CD with Ahead Nero 6

 

For this part I used Nero 6 and Isobuster.

 

Slipstreaming Windows XP Service Pack 1 and Create Bootable CD

 

1.   Download the (full) “Network Install” of the Service Pack, and save it to a directory (folder) on your hard drive (in my case C:\WinXP)

 

2.   Next copy your Windows XP CD to your hard drive. Just create a folder (I used C:\XPCD), and copy all the content of your Windows XP CD in that folder.

 

3.   Open a command prompt

 

4.   Go where you downloaded the

Service Pack

 

5.   Type Xpsp1a_en_x86.exe –x

 

6.   Click “ok” to extract the files.

 

 

7.   Once the SP1 files are extracted, change to the update folder of the SP1 files (cd update), and type the following command: update /s:C:\XPCD (C:\XPCD = Path of the Windows XP CD files)

 

 

 

 

 

 

 

 

 

 

9. Start IsoBuster, extract the boot loader and save it as Microsoft Corporation.img.

 

 

 

 

 

 

 

 

 

 

 

 

8.   Next, start Nero Burning ROM, and choose CD-ROM (Boot) in the New Compilation window. On the Boot tab, select Image file under Source of boot image data, and browse to the location of the Microsoft Corporation.img file. Also enable Expert Settings, choosing No Emulation, and changing the Number of loaded sectors to 4 (otherwise it won't boot!)

 


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


The ISO tab should be configured correctly as shown below:

 

 

 

 

If you have an older version of Nero you won't have the option Do Not Add ";1" ISO file version extention under Relax ISO Restrictions. You won't be able to boot your new CD, so update Nero!

You can configure the Label tab; I would however recommend that you keep the Volume Label the same as on your original Windows XP CD.

 

 

 

 

Next press New, and drag & drop the files and folders from your Windows XP hard drive location into Nero.


 

 

 

 

9.   Next, burn your new Windows XP Bootable CD!


7. Examples of files

 

7.1 Sample Files from the Windows XP Unattended Cdrom

 

Winnt.sif:

 

This the answer files for Windows XP, it is located in CDROOT\I386.

 

 

;SetupMgrTag

[Data]

    AutoPartition=0

    MsDosInitiated="0"

    UnattendedInstall="Yes"

 

[Unattended]

    UnattendMode=FullUnattended

    OemSkipEula=Yes

    OemPreinstall=Yes

    OEMPnPDriversPath=\drv\1;\drv\2;\drv\3;drv\4;\drv\5;\drv\6;\drv\7;\drv\8;\drv\9;\drv\a;\drv \nec;\drv\rd;\drv\v1;\drv\v2;

    TargetPath=\WINDOWS

    UnattendSwitch=Yes

    DriverSigningPolicy=Ignore

    WaitForReboot=No

    Hibernation=No

    Dudisable=Yes

    ResetSourcePath=c:\windows\i386

    DisableDynamicUpdates=Yes

 

[GuiUnattended]

    AutoLogon=Yes

    AutoLogonCount=2

    AdminPassword=PASSWORD_HERE

    EncryptedAdminPassword=No

    OEMSkipRegional=1

    TimeZone=35

    OemSkipWelcome=1

 

[UserData]

    ProductID=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

    FullName="Jgh User"

    OrgName="Jewish General Hospital"

    ComputerName=*

 

[Display]

    BitsPerPel=32

    Xresolution=800

    YResolution=600

    Vrefresh=75

 

[TapiLocation]

    CountryCode=107

    Dialing=Tone

    AreaCode=514

 

[RegionalSettings]

    LanguageGroup=1

    SystemLocale=1009

    InputLocale=1009:00000409,0c0c:0001009

    InputLocale_DefaultUser=1009:00000409,0c0c:0001009

    UserLocale=1009

    UserLocale_DefaultUser=1009

 

[Branding]

    BrandIEUsingUnattended=Yes

 

[URL]

    Home_Page=http://myjgh/wps/portal

    Help_Page=www.microsoft.com/technet

    Search_Page=www.Google.com

 

[Proxy]

    Proxy_Enable=0

    Use_Same_Proxy=1

 

[GuiRunOnce]

    %systemdrive%\APPS\patch\final.cmd

 

[Identification]

    JoinWorkgroup=Workgroup

 

[Networking]

    InstallDefaultComponents=No

 

[NetAdapters]

    Adapter1=params.Adapter1

 

[params.Adapter1]

    INFID=*

 

[NetClients]

    MS_MSClient=params.MS_MSClient

 

[NetServices]

 

[NetProtocols]

    MS_TCPIP=params.MS_TCPIP

 

[params.MS_TCPIP]

    DNS=Yes

    UseDomainNameDevolution=No

    EnableLMHosts=No

    AdapterSections=params.MS_TCPIP.Adapter1

 

[params.MS_TCPIP.Adapter1]

    SpecificTo=Adapter1

    DHCP=Yes

    WINS=No

    NetBIOSOptions=0

    DNSDomain=intranet.jgh

 

[Shell]

   DefaultStartPanelOff=No

   DefaultThemesOff=No

 

[Components]

    accessopt=off

    chat=off

    msmsgs=off

    deskpaper=off

    freecell=off

    hearts=off

    media_clips=off

    media_utopia=off

    minesweeper=off

    msnexplr=off

    pinball=off

    solitaire=off

    spider=off

    templates=off

    zonegames=off

    OEaccess=Off

 

 

 


Cmdlines.txt:

 

This file let’s you install applications or patches using batch files, during the MS DOS part of the installation.

 

 

[Commands]

"parse.bat"

"patches.bat"

 

 

 

Parse.bat :

 

This batch file replaces the variable %systemdrive% with the %systemdrive% (C:\) value. The reason of this is because the registries

strings doesn’t support the %systemdrive% variable. So someone made a program called Sed.exe which replaces %systemdrive% in

a text file, with a real value (C: or D:).

 

 

@echo off

echo Renaming Variables

echo .

echo INITIALISATION...

echo .

echo Please wait

echo.

Type%systemdrive%\Apps\Patch\apps.txt|%windir%\sed.exe 's/\%%systemdrive\%%/%systemdrive%/g'>%systemdrive%\Apps\Patch\apps.reg

%windir%\regedit.exe /s %systemdrive%\APPS\patch\apps.reg

 

:: Remove Welcom Screen

%windir%\regedit.exe /s %systemdrive%\APPS\reg\welcome.reg

 

:: Disable fast user switching

%windir%\regedit.exe /s %systemdrive%\APPS\reg\Winlog.reg

 

:: Disable Offline files

%windir%\regedit.exe /s %systemdrive%\APPS\reg\Off.reg

 

 

 

Apps.txt: APPS.txt installs the Recovery Console

 

 

Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx]

"Title"="JGH Install"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz3]

"1"="%systemdrive%\\windows\\runcd2.vbs i386\\winnt32.exe /cmdcons /unattend"

@="Recovery Console Installation"

 

 

 

 

Patches. bat:

 

This batch file installs critical updates during the MS DOS part of the installation. The reason to install patches there is to avoid a reboot.

 

 

@echo off

echo.

echo.

echo    Installing Critical Updates

echo.

echo.

 

set INSTP=%systemdrive%\apps\Patch

 

%INSTP%\Q322011.exe /Q /O /N /Z

%INSTP%\Q327405.exe /Q:A /R:N

%INSTP%\Q327979.exe /Q /O /N /Z

%INSTP%\Q330994.exe /Q:A /R:N

%INSTP%\Q810243.exe /Q /O /N /Z

%INSTP%\Q814995.exe /Q /O /N /Z

%INSTP%\Q815021.exe /Q /O /N /Z

%INSTP%\Q820291.exe /Q /O /N /Z

%INSTP%\Q821253.exe /Q /O /N /Z

%INSTP%\Q822603.exe /Q /O /N /Z

%INSTP%\Q823182.exe /Q /O /N /Z

%INSTP%\Q824105.exe /Q /O /N /Z

%INSTP%\Q824141.exe /Q /O /N /Z

%INSTP%\Q824145.exe /Q:A /R:N

%INSTP%\Q825119.exe /Q /O /N /Z

%INSTP%\Q828026.exe /Q /O /N /Z

%INSTP%\Q828028.exe /Q /O /N /Z

%INSTP%\Q828035.exe /Q /O /N /Z

%INSTP%\Q829558.exe /Q /O /N /Z

%INSTP%\Q833407.exe /Q /O /N /Z

%INSTP%\Q832894.exe /Q:A /R:N

%INSTP%\msjavx.exe /Q:A /R:N

%INSTP%\msjavwu.exe /Q:A /R:N

%INSTP%\js56nen.exe /Q:A /R:N

%INSTP%\Q826942.exe /Q /O /N /Z

%INSTP%\Q819696.exe /Q /O /N /Z

%INSTP%\hmtcd.exe /Q

%INSTP%\QCHAIN.exe

 

              

 

Final.cmd:

 

This batch file runs the first time the computer enters into Windows. It finishes the installation; it also fixes some registry settings, installs

 the critical updates, creates a local username Istech and adds him to the Administrators group. It also configures the user profiles.

To finish the installation it maps a network drive and launches another batch file located on the network. \\JGH_FS1\Shared\Inst\XpInst.cmd

 

 

@echo off

TITLE= Finishing Installation

 

:: Creating user Istech local

net user istech help7comp /add

net localgroup administrators istech /add

 

cls

:: Add F:\Notes to the Path

reg add "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Environment" /v Path /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32;%%SystemRoot%%;%%SystemRoot%%\System32\Wbem;f:\notes" /f

 

:: Remove the auto reboot, if Error

reg add "HKEY_LOCAL_MACHINE\System\ControlSet001\Control\CrashControl" /v AutoReboot /t REG_DWORD /d 0 /f

 

:: Adding Version number in the registry

reg add "HKEY_LOCAL_MACHINE\Software\Unattended" /v Version /t REG_SZ /d 11.0 /f

 

:: Removing Default Start Menu shortcuts

reg add "HKEY_CLASSES_ROOT\Applications\tourstart.exe" /v NostartPage /t REG_SZ /f

reg add "HKEY_CLASSES_ROOT\Applications\moviemk.exe" /v NostartPage /t REG_SZ /f

reg add "HKEY_CLASSES_ROOT\Applications\migwiz.exe" /v NostartPage /t REG_SZ /f

 

:: Installing Critical Updates

cls

echo.

echo                Installing Critical updates

echo.

%systemdrive%\APPS\Patch\Q817787.EXE /q:a /r:n

%systemdrive%\APPS\Patch\Q817778.exe /q /o /n /z

%systemdrive%\APPS\Patch\Q828741.EXE /q /o /n /z

%systemdrive%\APPS\Patch\Q832894.exe /q:a /r:n

%systemdrive%\APPS\Patch\Q835732.EXE /q /o /n /z

%systemdrive%\APPS\Patch\Q837001.EXE /q /o /n /z

%systemdrive%\APPS\Patch\Q837009.exe /q:a /r:n

 

:: Resetting Source Path

reg add "hklm\software\microsoft\Windows nt\CurrentVersion" /v SourcePath /t REG_SZ /d %windir%\i386 /f

reg add "hklm\software\microsoft\Windows\CurrentVersion\setup" /v SourcePath /t REG_SZ /d %windir% /f

reg add "hklm\software\microsoft\Windows\CurrentVersion\setup" /v ServicePackSourcePath /t REG_SZ /d %windir% /f

 

:: Setting up Recovery Console

cls

echo.

echo                Installing Recovery Console

echo.

attrib -s -h -r %systemdrive%\boot.ini

%systemdrive%\APPS\patch\woop.exe c:\boot.ini /c=30 /n="01"

attrib +s +h +r %systemdrive%\boot.ini

reg add "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole" /v SetCommand /t REG_DWORD /d 00000001 /f

reg add "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole" /v SecurityLevel /t REG_DWORD /d 00000001 /f

 

:: Installing fixes for User Profiles

reg load HKU\TEST "%systemdrive%\Documents and settings\Default User\ntuser.dat"

start /wait %systemdrive%\Apps\VBS\VBSFix.cmd

regedit /s %systemdrive%\Apps\reg\Google.reg

 

:: Keyboard Configuration and Regionnal Settings

regedit /s %systemdrive%\apps\reg\REGSTall.reg

regedit /s %systemdrive%\apps\reg\REGST.reg

regedit /s %systemdrive%\apps\reg\TourBub.reg

reg delete "HKCU\Keyboard Layout\Preload" /v 3 /f

reg add "HKCU\Keyboard Layout\Preload" /v 2 /t REG_SZ /d 00000c0c /f

reg delete "HKU\TEST\Keyboard Layout\Preload" /v 3 /f

reg add "HKU\TEST\Keyboard Layout\Preload" /v 2 /t REG_SZ /d 00000c0c /f

reg unload hku\test

 

:: Change Config.nt file to 121

%systemdrive%\APPS\patch\woop.exe %windir%\system32\config.nt /c=40 /n="121"

 

 

net use g: \\jgh_fs1\shared /user:intranet\inst inst

 

if exist g:\Inst\xp\xpinst.cmd goto instm

 

:: Copying Windows files

xcopy /E /I /V d:\i386 %windir%\i386

xcopy /E /I /V e:\i386 %windir%\i386

goto fin

 

:: Installing applications

:instm

start /wait g:\Inst\XP\XPinst.cmd

 

:fin

net use /del * /yes

 

cls

echo.

echo                Installation Completed

echo.

:: Deleting installation files

RD /S /Q %systemdrive%\Drv

RD /S /Q %systemdrive%\apps

 

 

 

FixVBS.cmd:

 

This batch file configures all the user profiles. Each settings have there little VBS scripts to configure it. If you want to remove one, just

delete the line in FixVBS.cmd

 

 

@echo off

set FIXVBS==%systemdrive%\apps\vbs

set VBSDEF==%systemdrive%\apps\vbs\Default

set STARTU==%systemdrive%\apps\vbs\Startup

 

cls

echo.

echo                 Creation of Default user

echo.

 

:: Fix for Internet Explorer 6

 

%FIXVBS%\IE\Autocompletepass.vbs

%FIXVBS%\IE\AutocompleteWeb.vbs

%FIXVBS%\IE\Certificatremove.vbs

%FIXVBS%\IE\Disablesearchaddressbar.vbs

%FIXVBS%\IE\Emptybrowsercache.vbs

%FIXVBS%\IE\Disabledebugger.vbs

%FIXVBS%\IE\RefreshWebPage.vbs

 

 

:: Fix for Windows profiles

 

%FIXVBS%\Windows\DisableDesktopWiz.vbs

%FIXVBS%\Windows\Groupicons.vbs

%FIXVBS%\Windows\Searchhidden.vbs

%FIXVBS%\Windows\Searchsubfolder.vbs

%FIXVBS%\Windows\Searchsystem.vbs

%FIXVBS%\Windows\ShowDesktopIcon.vbs

%FIXVBS%\Windows\ShowFolderPath.vbs

%FIXVBS%\Windows\ShowFullPathTitle.vbs

%FIXVBS%\Windows\ShowHidden.vbs

%FIXVBS%\Windows\SmallIcons.vbs

%FIXVBS%\Windows\StarMenu2.vbs

%FIXVBS%\Windows\Screensaver.vbs

%FIXVBS%\Windows\DisableSearchAssist.vbs

 

:: Fix for Start up menu

%STARTU%\ClassicControlPannel.vbs

%STARTU%\RemoveMyMusic.vbs

%STARTU%\RemoveProgramAccess

%STARTU%\RemoveMyPics.vbs

 

:: Show Icons on the Desktop

 

%FIXVBS%\Windows\icons1.vbs

%FIXVBS%\Windows\icons2.vbs

%FIXVBS%\Windows\icons3.vbs

%FIXVBS%\Windows\icons4.vbs

%FIXVBS%\Windows\ErrorReport.vbs

 

 

:: Fix for Default Users

:: Fix for Internet Explorer 6

 

%VBSDEF%\Autocompletepass.vbs

%VBSDEF%\AutocompleteWeb.vbs

%VBSDEF%\Certificatremove.vbs

%VBSDEF%\Disablesearchaddressbar.vbs

%VBSDEF%\Emptybrowsercache.vbs

%VBSDEF%\Disabledebugger.vbs

%VBSDEF%\RefreshWebPage.vbs

 

 

:: Fix for Windows profiles

 

%VBSDEF%\DisableDesktopWiz.vbs

%VBSDEF%\Groupicons.vbs

%VBSDEF%\Searchhidden.vbs

%VBSDEF%\Searchsubfolder.vbs

%VBSDEF%\Searchsystem.vbs

%VBSDEF%\ShowFolderPath.vbs

%VBSDEF%\ShowFullPathTitle.vbs

%VBSDEF%\ShowHidden.vbs

%VBSDEF%\SmallIcons.vbs

%VBSDEF%\StarMenu2.vbs

%VBSDEF%\Screensaver.vbs

%VBSDEF%\DisableSearchAssist.vbs

 

:: Fix for Start up menu

%VBSDEF%\RemoveMyMusic.vbs

%VBSDEF%\RemoveMyPics.vbs

%VBSDEF%\ClassicControlPannel.vbs

 

exit

 

 

Google.reg:

 

This registry file will change the default Search site for Internet Explorer to www.Google.com. But before running this file, you need to

load the Default user registry into your registries, with the command “Reg.exe load” which was explained before. This script is made

to modify the current user profile plus the default user one.

 

 

Windows Registry Editor Version 5.00

 

;search with google at address bar instead of MSN

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]

"Search Page"="http://www.google.com"

"Search Bar"="http://www.google.com/ie"

 

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchURL]

""="http://www.google.com/keyword/%s"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Search]

"SearchAssistant"="http://www.google.com/ie"

 

;search with google at address bar instead of MSN for Default user

[HKEY_USERS\test\Software\Microsoft\Internet Explorer\Main]

"Search Page"="http://www.google.com"

"Search Bar"="http://www.google.com/ie"

 

 

 

[HKEY_USERS\test\Software\Microsoft\Internet Explorer\SearchURL]

""="http://www.google.com/keyword/%s"

 

[HKEY_USERS\.default\Software\Microsoft\Internet Explorer\Main]

"Search Page"="http://www.google.com"

"Search Bar"="http://www.google.com/ie"

 

[HKEY_USERS\.default\Software\Microsoft\Internet Explorer\SearchURL]

""="http://www.google.com/keyword/%s"

 

 


7.2 Sample files from the Network part of the installation

 

UpdateXP.cmd  \\ Update2k.cmd:

Location: \\Jgh_fs1\Shared\Inst

 

This batch file verifies and installs the Critical updates. There is one for Windows XP and another for Windows 2000.

(In this example, some lines are split, because it doesn’t split.)

 

 

@ECHO OFF

TITLE=Windows XP Critical Updates

color 05

 

set PATCH==\\jgh_fs1\shared\inst\xp\patch

 

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /V minorversion | find /i ";SP1;" > nul

if errorlevel 1 GOTO IE6

GOTO UP1

 

:IE6

cls

ECHO.

ECHO.

ECHO                     Installing Internet Explorer 6 SP1

ECHO.

ECHO.

%PATCH%\IE6SP1\IE6SETUP.EXE /Q:A /R:N

PAUSE

GOTO END

 

:UP1

cls

ECHO.

ECHO.

ECHO            Installing Windows XP Critical Updates 23/04/2004

ECHO.

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB826939" /v Description || echo Patching for KB826939... && %PATCH%\Q826939.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q322011" /v Description || echo Patching for KB322011... && %PATCH%\Q322011.exe /Q /O /N /Z

%PATCH%\Q327405.exe /Q:A /R:N

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q327979" /v Description || echo Patching for KB327979... && %PATCH%\Q327979.exe /Q /O /N /Z

 

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /V minorversion | find /i "330994" > nul

if errorlevel 1 %PATCH%\Q330994.exe /Q:A /R:N

 

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q810243" /v Description || echo Patching for KB810243... && %PATCH%\Q810243.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q814995" /v Description || echo Patching for KB814995... && %PATCH%\Q814995.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q815021" /v Description || echo Patching for KB815021... && %PATCH%\Q815021.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB820291" /v Description || echo Patching for KB820291... && %PATCH%\Q820291.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB821253" /v Description || echo Patching for KB821253... && %PATCH%\Q821253.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB822603" /v Description || echo Patching for KB822603... && %PATCH%\Q822603.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB823182" /v Description || echo Patching for KB823182... && %PATCH%\Q823182.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB824105" /v Description || echo Patching for KB824105... && %PATCH%\Q824105.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB824141" /v Description || echo Patching for KB824141... && %PATCH%\Q824141.exe /Q /O /N /Z

 

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /V minorversion | find /i "824145" > nul

if errorlevel 1 %PATCH%\Q824145.exe /Q:A /R:N

 

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB825119" /v Description || echo Patching for KB825119... && %PATCH%\Q825119.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Media Player\SP0\Q828026" /v Description || echo Patching for KB828026... && %PATCH%\Q828026.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB828028" /v Description || echo Patching for KB828028... && %PATCH%\Q828028.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB828035" /v Description || echo Patching for KB828035... && %PATCH%\Q828035.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB829558" /v Description || echo Patching for KB829558... && %PATCH%\Q829558.exe /Q /O /N /Z

 

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\KB833407" | find /i "833407" > nul

if errorlevel 1 %PATCH%\Q833407.exe /Q /O /N /Z

 

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /V minorversion | find /i "832894" > nul

if errorlevel 1 %PATCH%\Q832894.exe /Q:A /R:N

 

:: Microsoft Java Virtual Machine

%PATCH%\msjavx.exe /Q:A /R:N

%PATCH%\msjavwu.exe /Q:A /R:N

 

:: Microsoft Jscript version 5.6

%PATCH%\Q814078.exe /Q:A /R:N

 

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB826942" /v Description || echo Patching for KB826942... && %PATCH%\Q826942.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q819696" /v Description || echo Patching for KB819696... && %PATCH%\Q819696.exe /Q /O /N /Z

 

:: HighMAT CDR Update

%PATCH%\hmtcd.exe /Q

 

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Media Player\wm817787" /v Description || echo Patching for KB817787... && %PATCH%\Q817787.EXE /q:a /r:n

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\DataAccess\Q832483" /v Description || echo Patching for KB832483... && %PATCH%\Q832483.EXE /c:"dahotfix.exe /q /n" /q

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB817778" /v Description || echo Patching for KB817778... && %PATCH%\Q817778.exe /Q /O /N /Z

 

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /V minorversion | find /i "837009" > nul

if errorlevel 1 %PATCH%\Q837009.exe /Q:A /R:N

 

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /V minorversion | find /i "831167" > nul

if errorlevel 1 %PATCH%\Q831167.exe /q:a /r:n

 

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB837001" /v Description || echo Patching for KB837001... && %PATCH%\Q837001.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB828741" /v Description || echo Patching for KB828741... && %PATCH%\Q828741.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB835732" /v Description || echo Patching for KB835732... && %PATCH%\Q835732.exe /Q /O /N /Z

%PATCH%\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB840374" /v Description || echo Patching for KB840374... && %PATCH%\Q840374.exe /Q /O /N /Z

%PATCH%\qchain.exe

 

:END

cls

ECHO.

ECHO.

ECHO                   Installation Complete, Reboot now

ECHO.

ECHO          Run again if you just installed Internet Explorer 6 SP1

ECHO.

ECHO.       

\\jgh_fs1\shared\inst\APPS\Tools\sleep.exe 10

 

EXIT

 

XPInst.cmd \\ W2kInst.cmd

Location: \\Jgh_fs1\Shared\Inst

 

This batch file is the main one on from the network. The main purpose of it is to install for unattended installation and Sysprep.

 

 

@echo off

TITLE=Network Fix

 

IF NOT EXIST g:\inst goto MAP1

goto DEB

 

:MAP1

net use g: \\jgh_fs1\shared

 

:DEB

set PATXP==G:\inst\xp\patch

set APPS==G:\inst\apps

 

IF EXIST %WINDIR%\SYSPREP GOTO SYSP

 

:: Creation of OLDPC and Ghost Explorer.exe

md %systemdrive%\OLDPC

copy /y %APPS%\tools\ghostexp.exe %systemdrive%\OLDPC

 

:: @Installing Critical updates

IF EXIST %WINDIR%\FR start /wait %PATXP%\FR\upxpfr.bat

IF NOT EXIST %WINDIR%\FR start /wait %PATXP%\updatexp.bat

goto FR

 

:FR

reg add "hklm\SOFTWARE\Microsoft\Windows\CurrentVersion" /v devicepath /t REG_EXPAND_SZ /d %%SystemRoot%%\Inf /f

reg add "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v SourcePath /t REG_SZ /d %%windir%%\i386 /f

reg delete "hklm\system\Currentcontrolset\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}" /v LowerFilters /f

reg delete "hklm\system\Currentcontrolset\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}" /v upperFilters /f

 

start /wait %APPS%\Etrust7\InoSetup.exe /s

GOTO MENUP

 

:SYSP

:: Installing Critical updates

IF EXIST %WINDIR%\FR start /wait %PATXP%\FR\upxpfr.bat

IF NOT EXIST %WINDIR%\FR start /wait %PATXP%\updatexp.bat

goto FR1

 

:FR1

:: Installation of Inoculan

REG QUERY "HKEY_LOCAL_MACHINE\Software\JGH\Inosvpck1\InoUpdteDrv" | find /i "5.00.6100.126" > nul

if not errorlevel 1 goto MENUP

start /wait %APPS%\Etrust7\InoSetup.exe /s

 

:MENUP

IF EXIST %windir%\i386 goto I386EX

 

:: Copying Windows files while installing applications

rem xcopy /E /I /V d:\i386 %windir%\i386

rem xcopy /E /I /V e:\i386 %windir%\i386

 

:I386EX

copy /y %APPS%\tools\choice.com %windir%

 

:: Installing Applications

start /wait %APPS%\MenuAPPS.cmd

 

reg add "HKEY_LOCAL_MACHINE\Software\JGH\Inosvpck1\InoUpdteDrv" /v version /t REG_SZ /d 5.00.6100.126 /f

 

 

MenuAPPS.cmd

Location: \\Jgh_fs1\Shared\Inst\Apps\

 

This batch file install the applications, this is the last thing to run. It’s the same file for Windows XP and Windows 2000. It is working

 with Sysprep and Unattended installations.

 

 

 

@echo off

TITLE= Applications installation XP / W2k

 

set APPS==\\jgh_fs1\shared\inst\apps

 

:: Windows XP

ver | find /i "Windows XP" >nul

if errorlevel 1 goto W2K

echo Windows XP

goto CITRIX

 

:W2K

:: Windows 2000

ver | find /i "Windows 2000" >nul

if errorlevel 1 goto UNOS

echo Windows 2000

 

:W2KINST

echo Installing Applications for Windows 2000 ONLY

start /wait %APPS%\PowerAR\PowerArc.exe

goto CITRIX

 

:UNOS

echo Unknown OS

goto EXIT1

 

:CITRIX

cls

echo    Installing Citrix PNAgent 7

 

:: Installing Acrobat Reader 6

start /wait \\jgh_fs1\shared\inst\apps\Acrobat6\Install.bat

 

:: Installing Citrix PN Agent 7

start /wait \\jgh_fs1\shared\inst\apps\Citrix\PNagent7\Install.bat

 

cls

:menu

echo     ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿

echo     ³                Windows XP / 2000 Applications installation            ³

echo     ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ

echo     ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»

echo     º                                                                                                   º

echo     º              A- Hostex 32 (Laboratoires)                                        º

echo     º                                                                                                   º

echo     º              B- Novell Netware                                                       º

echo     º                                                                                                   º

echo     º              C- Microsoft Office 2000 SP3                                     º

echo     º                                                                                                   º

echo     º              D- Microsoft Office XP SP3                                         º

echo     º                                                                                                   º

echo     º              X- Exit                                                                          º

echo     º                                                                                                   º

echo     ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ

echo.

echo.

CHOICE /C:ABCDX Make your choice :

IF ERRORLEVEL 5 goto exit1

IF ERRORLEVEL 4 goto offxp

IF ERRORLEVEL 3 goto off2k

IF ERRORLEVEL 2 goto novy

IF ERRORLEVEL 1 goto host32

 

:host32

REM Installation Hostex32

start /wait %APPS%\Hostex32\Host32.exe

goto menu

 

:novy

g:\Inst\apps\483SP1min\setupnw.exe /u

echo Changement des valeurs

echo REGEDIT4>%temp%\msgina.reg

echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]>>%temp%\msgina.reg

echo "GinaDLL"="MSGINA.DLL">>%temp%\msgina.reg

echo "AltDefaultDomainName"="INTRANET">>%temp%\msgina.reg

echo "DefaultDomainName"="INTRANET">>%temp%\msgina.reg

echo "CachePrimaryDomain"="INTRANET">>%temp%\msgina.reg

echo "DisableCAD"=dword:00000001>>%temp%\msgina.reg

regedit /s %temp%\msgina.reg

del %temp%\msgina.reg

del %temp%\QuickPlace\*.* /q /f

goto menu

 

:off2k

\\jgh_fs1\shared\inst\Apps\Office2K_cd1\setup.exe TRANSFORMS=\\jgh_fs1\shared\inst\Apps\Office2K_cd1\cd1.MST /qb-

goto menu

 

:offxp

\\jgh_fs1\shared\inst\apps\MS_Office_XP\setuppls.exe TRANSFORMS=\\jgh_fs1\shared\inst\apps\MS_Office_XP\cd.MST /qb-

goto menu

 

:exit1

exit

 

8. Tools

8.1 Utilities

 

Woop.exe:  This tool let you search and replace a string of characters for another. This is useful to edit the Config.nt files for

Dr Bill (Replace the default 30 files open with 121). Also for the Boot.ini, but you need to attrib the files first.

 

Sleep.exe: Tools that stop the batch file for X seconds. Usage: Sleep.exe 20

 

QfecheckXP.exe: Made by Microsoft, it does tell you if your critical updates are installed properly.

8.2 Unattended related sites

 

Geeks Asylum

http://geeksasylum.free.fr/articles/systeme/installation_automatisee_xp_sp1/part01.htm

 

 

 Laboratories Microsoft

http://www.laboratoire-microsoft.org/articles/win/w2k_bootable/

 

Keyboard Regional Setting codes

http://www.microsoft.com/globaldev/reference/winxp/xp-lcid.mspx