Introduction
------------
In this tutorial I will explain how to make own windows XP installation CD with your favorites programs.
Sorry for my bad English :) I hope you will understand.......
All this what i am going now to explain you can do with program nLite.
Preparing...
------------
For this tutorial you need Windows XP CD.
Copy all CD to your hard drive in folder (later for burning)
Now where is your i386 folder, parallel with him make folder $OEM$, NOT INSIDE!
The pruporse of $OEM$ folder is that all what you place into him will be automatically copied to the
destination folder on hard drive.Here is description of folders you can place into $OEM$:
$1 - everything inside this folder will be copied into the root of the partition where is installed Windows (c:\ for example)
$$ - Windows Folder (anything in here will be copied into C:\Windows)
$Progs - Program Files
$Docs - Documents and Settings
Textmode - Mass storage drivers and HAL files required during the text-mode portion of Setup.
When files are on hard drive the layout is C:\XP\$OEM$\$1\Install, but when burned on CD
(X:\ letter of CD-ROM drive) layout is X:\$OEM$\$1\Install\.When setup copies files to hard drive the layout is C:\Install
When we copy files on CD we dont know letter of hard drive then we need to use %systemdrive%.
Integrating Service Pack
------------------------
Click Start then Run (or Windowskey+R if not visible) and write C:\XPSP2.exe -s:C:\XP
Where is C:\XP path to Operating System local source.
Click OK, with this integrating service pack is finished!If you have troubles try with nLite
Basic Unattended Setup
----------------------
If you dont have on your CD file setupmgr.exe download it fromhttp://www.microsoft.com/downloads/details...;displaylang=en
Start setupmgr.exe and answer to questions.When you finished setup creates file named unattend.txt.Because our installation is from
CD rename it to winnt.sif.Open and check line OemPreinstall=Yes (must be same)
Copy winnt.sif to the I386 directory within the local setup source folder.
Adding aplications
------------------
All installations of programs place in \$OEM$\$1\install\
Now we need to know batch scripting (google it if you dont know) for starting installations.
Start --> Run --> notepad and write batch commands for installing your programs.
There are several types of installations:
- Inno setup
- InstallShield
- NSIS
- Microsoft Installer (*msi)
- WISE Installer
Example of batch for starting Inno setup installation:
----------------------------->start<-------------------
ECHO.
ECHO Installing ISOBuster 1.4
ECHO Please wait...
start /wait %systemdrive%\install\Applications\ISOBuster\IsoBuster14.exe /VERYSILENT /SP-
----------------------------->end<-------------------------
For InstallShield add
----------------------------------------------------------------------------
start /wait %systemdrive%\install\Application\Application_name\Setup.exe -s
-----------------------------------------------------------------------------
For NSIS add
------------
Setup.exe /S
------------
For Microsoft Installer (*msi) add
-------------------------------
setup.msi "/qn REBOOT=Suppress"
--------------------------------
For WISE Installer add
------------
Setup.exe /s
------------
Always use /wait.Wait is used for waiting setup to finish.If you dont specify wait all programs will be installed together!
You can also use sleep to pause the script to allow these subsequent programs to complete.
Place batch.bat into C:\XPCD\$OEM$\$1\install\
Open winnt.sif and add following line in section [GuiRunOnce]
%systemdrive%\install\batch_file.cmd.
Other way is create file named cmdlines.txt (place inside $OEM$ folder) and wirte batch commands.
All batch files launched by cmdlines.txt should be put into the same folder.
Third way to launch batch is creating file named svcpack.inf inside C:\XPCD\I386\ folder (make sure svcpack.in_ is deleted).
Any batch files launched by svcpack.inf should go into the C:\XPCD\I386\svcpack\ folder unless otherwise specified by the entries in svcpack.inf.
ليست هناك تعليقات:
إرسال تعليق