Jump to content

problem with win2000 unattended ! (with code)


Recommended Posts

hi!

i am creating a win2000 unattended cd.

i use 2 bat file and 1 CMDLINES.TXT to install prog.

problem:

1.before win2000 save settings,the oem.bat in CMDLINES.TXT worked.it opened a window and display "installing DirectX 9.0c..."(no other infomation!),about 5 minites later.the window closed,restart and continued the process late.when install completed,i checked in "control panoll",both DirectX 9.0c and IE6.0 sp1,Media Player 9.0 are not installed !

2.the other prog. in APP.cmd is installed at 1st logon . but i found some of hotfixes are not installed !

BTW: THERE IS NO MISTAKE IN FILE ADDRESS . THE FILES TO BE INSTALLED ARE CORRECTLY PUT INTO THE CORRECT ADDRESS. APP.CMD IS IN CD:\$oem$\$1\install\.

question:

1.is there any better method to unattend it ?

2.can i install all of prog. (dx9.0c .IE6SP1 .WMP9 .hotfixes . updates. the other applications) by a app.cmd file in [GuiRunOnce] ?

anyone help me ?

here is the CODE:

winnt.sif

;SetupMgrTag
[Data]
   AutoPartition=0
   MsDosInitiated="0"
   UnattendedInstall="Yes"
[Unattended]
   UnattendMode=FullUnattended
   OemSkipEula=Yes
   OemPreinstall=Yes
   TargetPath=\WINNT
   Repartition=No
[GuiUnattended]
   AdminPassword=*
   AutoLogon=Yes
   AutoLogonCount=1
   OEMSkipRegional=1
   TimeZone=210
   OemSkipWelcome=1
[UserData]
   FullName=wst
   OrgName=microsoft
   ComputerName=WEISONGTAO
[RegionalSettings]
   LanguageGroup=7,9,10
[Identification]
   JoinWorkgroup=WORKGROUP
[Networking]
   InstallDefaultComponents=Yes
[GuiRunOnce]
   %systemdrive%\install\app.cmd

OEM.BAT

@title Installing [IE6sp1].[DX9.0c].[MediaPlayer9.0] ...
@echo off

IF EXIST D:\CDROM_IP.5 set CDROM=D:
IF EXIST E:\CDROM_IP.5 set CDROM=E:
IF EXIST F:\CDROM_IP.5 set CDROM=F:
IF EXIST G:\CDROM_IP.5 set CDROM=G:
IF EXIST H:\CDROM_IP.5 set CDROM=H:
IF EXIST I:\CDROM_IP.5 set CDROM=I:
IF EXIST J:\CDROM_IP.5 set CDROM=J:
IF EXIST K:\CDROM_IP.5 set CDROM=K:
IF EXIST L:\CDROM_IP.5 set CDROM=L:
IF EXIST M:\CDROM_IP.5 set CDROM=M:
IF EXIST N:\CDROM_IP.5 set CDROM=N:
IF EXIST O:\CDROM_IP.5 set CDROM=O:
IF EXIST P:\CDROM_IP.5 set CDROM=P:
IF EXIST Q:\CDROM_IP.5 set CDROM=Q:
IF EXIST R:\CDROM_IP.5 set CDROM=R:
IF EXIST S:\CDROM_IP.5 set CDROM=S:
IF EXIST T:\CDROM_IP.5 set CDROM=T:
IF EXIST U:\CDROM_IP.5 set CDROM=U:
IF EXIST V:\CDROM_IP.5 set CDROM=V:
IF EXIST W:\CDROM_IP.5 set CDROM=W:
IF EXIST X:\CDROM_IP.5 set CDROM=X:
IF EXIST Y:\CDROM_IP.5 set CDROM=Y:
IF EXIST Z:\CDROM_IP.5 set CDROM=Z:

echo install DirectX 9.0c ...
@start /wait %cdrom%\DX9c\dxsetup.exe /silent
echo.

echo install IE6.0 sp1 ...
@start /wait %cdrom%\IE6SP1CN\ie6setup.exe /Q:A /R:N
echo.


echo install Media Player 9.0 ...
@start /wait %cdrom%\WMP9\mpsetup.exe /Q:A /R:N /C:\"setup_wm.exe /DisallowSystemRestore /Q:A /R:N\"

echo.

echo successed ?I?I
echo.
exit

CMDLINES.txt

[Commands] 

"cmd /c start /min cmd /c .\OEM.bat"

app.cmd

@title install software
@echo off

IF EXIST D:\CDROM_IP.5 set CDROM=D:
IF EXIST E:\CDROM_IP.5 set CDROM=E:
IF EXIST F:\CDROM_IP.5 set CDROM=F:
IF EXIST G:\CDROM_IP.5 set CDROM=G:
IF EXIST H:\CDROM_IP.5 set CDROM=H:
IF EXIST I:\CDROM_IP.5 set CDROM=I:
IF EXIST J:\CDROM_IP.5 set CDROM=J:
IF EXIST K:\CDROM_IP.5 set CDROM=K:
IF EXIST L:\CDROM_IP.5 set CDROM=L:
IF EXIST M:\CDROM_IP.5 set CDROM=M:
IF EXIST N:\CDROM_IP.5 set CDROM=N:
IF EXIST O:\CDROM_IP.5 set CDROM=O:
IF EXIST P:\CDROM_IP.5 set CDROM=P:
IF EXIST Q:\CDROM_IP.5 set CDROM=Q:
IF EXIST R:\CDROM_IP.5 set CDROM=R:
IF EXIST S:\CDROM_IP.5 set CDROM=S:
IF EXIST T:\CDROM_IP.5 set CDROM=T:
IF EXIST U:\CDROM_IP.5 set CDROM=U:
IF EXIST V:\CDROM_IP.5 set CDROM=V:
IF EXIST W:\CDROM_IP.5 set CDROM=W:
IF EXIST X:\CDROM_IP.5 set CDROM=X:
IF EXIST Y:\CDROM_IP.5 set CDROM=Y:
IF EXIST Z:\CDROM_IP.5 set CDROM=Z:


echo installWINRAR 3.41 ...
@start /wait %cdrom%\Apps\rar341.exe /s

echo.

echo install Irfanview 3.95...
@start /wait %cdrom%\Apps\i_view.exe /verysilent /sp-

echo.

echo install EmEditor 4.09 ...
@start /wait %cdrom%\Apps\emeditor.exe /verysilent /sp-

echo.

echo install UltraISO v7.25 ME Build 923 ..
@start /wait %cdrom%\Apps\ISO.exe /verysilent /sp-

echo.

echo install NfoDiz 5.0 Final ...
@start /wait %cdrom%\Apps\NfoDiz.exe /verysilent /sp-

echo.

echo install FLASH PLAYER 7.0...
@start /wait %cdrom%\Apps\flash7.exe /verysilent /sp-

echo.

echo installAcrobat reader 6.0 ...
@start /wait %cdrom%\Apps\ar60sc\setup.exe /s /v/qn

echo.

echo installTweakui Ver 1.33...
@start /wait rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 %CDROM%\apps\tweakui\tweakui.inf

echo.

echo install Windows cmdcons to hard disk...
@start /wait %cdrom%\i386\winnt32 /cmdcons /unattend

echo.


echo install KB823980...
@start /wait %cdrom%\update\823980.exe /q /n /o /z

echo.

echo install Internet Explorer 6 SP1 update KB834707...
@start /wait %cdrom%\update\834707.exe /quiet /n /o /norestart

echo.

echo install Outlook Express 6 SP1 update KB823353...
@start /wait %cdrom%\update\823353.exe /Q:A /R:N

echo.

echo installInternet Explorer 6 SP1 update KB833989...
@start /wait %cdrom%\update\833989.exe /Q:A /R:N

echo.

echo install Windows Media Player  update KB828026...
@start /wait %cdrom%\update\828026.exe /quiet /n /o /norestart

echo.

echo set Microsoft GDI+ installed ...
REGEDIT /S %cdrom%\update\gditool.reg

echo.

echo install ADODB.stream KB870669...
@start /wait %cdrom%\update\870669.exe /Q:A /R:N

echo.

echo install KB840315...
@start /wait %cdrom%\update\840315.exe /quiet /n /o /norestart

echo.

echo install KB842526...
@start /wait %cdrom%\update\842526.exe /quiet /n /o /norestart

echo.

echo install KB841873...
@start /wait %cdrom%\update\841873.exe /quiet /n /o /norestart

echo.

echo install KB841356...
@start /wait %cdrom%\update\841356.exe /quiet /n /o /norestart

echo.

echo install KB840987...
@start /wait %cdrom%\update\840987.exe /quiet /n /o /norestart

echo.

echo install KB841872...
@start /wait %cdrom%\update\841872.exe /quiet /n /o /norestart

echo.

echo install KB841533...
@start /wait %cdrom%\update\841533.exe /quiet /n /o /norestart

echo.

echo install KB839645...
@start /wait %cdrom%\update\839645.exe /quiet /n /o /norestart

echo.

echo install KB837001...
@start /wait %cdrom%\update\837001.exe /quiet /n /o /norestart

echo.

echo install KB828741...
@start /wait %cdrom%\update\828741.exe /quiet /n /o /norestart

echo.

echo install KB835732...
@start /wait %cdrom%\update\835732.exe /quiet /n /o /norestart

echo.

echo install MDAC update KB832483...
@start /wait %cdrom%\update\832483.exe /C:"dahotfix.exe /q /n" /q

echo.

echo install KB828749...
@start /wait %cdrom%\update\828749.exe /quiet /n /o /norestart

echo.

echo install KB329115...
@start /wait %cdrom%\update\329115.exe /quiet /n /o /norestart

echo.

echo install KB828035...
@start /wait %cdrom%\update\828035.exe /quiet /n /o /norestart

echo.

echo install KB825119...
@start /wait %cdrom%\update\825119.exe /q /n /o /z

echo.

echo install KB826232...
@start /wait %cdrom%\update\826232.exe /quiet /n /o /norestart

echo.

echo install  KB824105...
@start /wait %cdrom%\update\824105.exe /q /n /o /z

echo.

echo install KB823182...
@start /wait %cdrom%\update\823182.exe /q /n /o /z

echo.

echo install KB823559...
@start /wait %cdrom%\update\823559.exe /q /n /o /z

echo.

echo installWindows Media Player update KB819639...
@start /wait %cdrom%\update\819639.exe /Q:A /R:N

echo.

echo install Jscript?iver5.6?j...
@start /wait %cdrom%\update\js56nchs.exe /Q:A /R:N

echo.

echo install (Surrogate)...
@start /wait %cdrom%\update\surreg.exe /Q:A /R:N

echo.



echo install KB818043...
@start /wait %cdrom%\update\818043.exe /q /n /o /z

echo.

echo install KB820888...
@start /wait %cdrom%\update\820888.exe /q /n /o /z

echo.

echo install KB822831...
@start /wait %cdrom%\update\822831.exe /q /n /o /z

echo.

echo install Windows Media Player 9 update KB837272...
@start /wait %cdrom%\update\837272.exe /quiet /n /o /norestart

echo.

echo install rootsup...
@start /wait %cdrom%\update\rootsupd.exe /Q:A /R:N

echo.

echo installMicrosoft .NET Framework 1.1...
@start /wait %cdrom%\update\netfxsp1.exe

echo.

echo installMicrosoft .NET Framework 1.1 lang pack...
@start /wait %cdrom%\update\langpack.msi /qn

echo.


echo.

echo.
echo finaly?Cinstall Windows Installer 3.0 KB884016...
echo.
echo after installation system will restart !
@start /wait %cdrom%\update\884016.exe /quiet /n /o /forcerestart

echo.

exit

Link to comment
Share on other sites


hi!

  question:

  1.is there any better method to unattend it ?

  2.can i install all of prog. (dx9.0c .IE6SP1 .WMP9 .hotfixes . updates. the other applications) by a app.cmd file in [GuiRunOnce] ?

  • 1. XPCREATE will do all the hard part of integrating Windows recommended and critical updates.
    Windows 2K Security Updates for use with XPCreate
  • 2. keep your app.cmd for installing applications. Remove all Recommended updates and hotfixes from M$

Surrogate is specific to your language but can be added in SVC-HF2 in XPCreate (silent switch /Q:A /R:N)

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