版主请看一下,怎么样才能全自动安装Win98?
[这个贴子最后由网上游在 2003/11/30 01:24pm 第 2 次编辑]
我做了一张98+Me+2000的三合一光盘,其中98和ME的安装引导IMG中的Autoexec.bat文件的安装命令如下:setup.exe /is /id /iw /ie /iv /p j,WinMe安装时是全自动的,但Win98却到如图的这一步就停了下来,要按几次回车键才能继续,各位高手看一下,是还有什么地方做得不对吗?
msbatch.inf文件已经放到win98文件夹下,autoexec.bat、config.sys和msbatch.inf的内容如下。
autoexec.bat:
@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%CDROM%:\
copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
copy readme.txt %RAMD%:\ > NUL
:ERROR
IF EXIST ebd.cab GOTO EXT
echo Please insert Windows 98 Startup Disk 2
echo.
pause
GOTO ERROR
:EXT
%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.
IF "%config%"=="NOCD" GOTO QUIT
IF "%config%"=="HELP" GOTO HELP
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
echo.
GOTO QUIT
:HELP
cls
call help.bat
echo Your computer will now restart and the startup menu will appear.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
restart.com
GOTO QUIT
:QUIT
echo To get help, type HELP and press ENTER.
echo.
rem clean up environment variables
format c:/q /autotest
%CDROM%:\win98\setup.exe /is /id /iw /ie /iv /p j
set CDROM=
set LglDrv=
config.sys:
[menu]
menuitem=CD, Setup windows 98 from CD-ROM.
menuitem=NOCD, Start computer without CD-ROM support.
menuitem=HELP, View the Help file.
menudefault=CD,0
menucolor=7,0
[CD]
device=himem.sys /testmem:off
device=oakcdrom.sys /D:mscd001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys /D:mscd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /D:mscd001
[NOCD]
device=himem.sys /testmem:off
[HELP]
device=himem.sys /testmem:off
[COMMON]
files=10
buffers=10
dos=high,umb
stacks=9,256
devicehigh=ramdrive.sys /E 2048
lastdrive=z
msbatch.inf:
; MSBATCH.INF
;
; Copyright (c) 1995-1998 Microsoft Corporation.
; All rights reserved.
;
[BatchSetup]
Version=3.0 (32-bit)
SaveDate=07-12-03
[Version]
Signature = "$CHICAGO$"
AdvancedINF=2.5
LayoutFile=layout.inf
[Setup]
Express=1
InstallDir="c:\windows"
InstallType=3
ProductKey="WHWGP-XDR8Y-GR9X3-863RP-67J2T"
EBD=0
ShowEula=0
ChangeDir=0
OptionalComponents=1
Network=1
System=0
CCP=0
CleanBoot=0
Display=0
DevicePath=0
NoDirWarn=1
TimeZone="China"
Uninstall=0
NoPrompt2Boot=1
[System]
Locale=L0804
SelectedKeyboard=KEYBOARD_00000409
[NameAndOrg]
Name="windows"
Org="microsoft"
Display=0
[Network]
ComputerName="L3Y2W4"
Workgroup="WORKGROUP"
Display=0
PrimaryLogon=Windows
Clients=VREDIR
Protocols=MSTCP
Security=SHARE
[MSTCP]
LMHOSTS=1
LMHOSTPath="C:\WINDOWS\lmhosts"
DHCP=1
DNS=0
WINS=D
[OptionalComponents]
"辅助选项"=1
"辅助工具"=0
"公文包"=0
"计算器"=1
"桌面墙纸"=0
"文档模板"=1
"游戏"=0
"映象"=1
"鼠标指针"=0
"画图"=1
"快速查看"=0
"Windows Scripting Host"=1
"写字板"=1
"造字程序"=1
"输入法生成器"=0
"通讯簿"=1
"拨号 ATM 支持"=0
"拨号网络"=1
"拨号网络服务器"=0
"直接电缆连接"=0
"超级终端"=0
"Microsoft Chat 2.5"=0
"NetMeeting"=1
"电话拨号程序"=0
"虚拟专用网络"=0
"棒球"=0
"危险动物"=0
"电脑探密"=0
"丛林"=0
"达芬奇"=0
"更多的 Windows"=0
"神秘之物"=0
"大自然"=0
"科学"=0
"太空"=0
"运动"=0
"六十年代的美国"=0
"黄金时代"=0
"旅行"=0
"水底世界"=0
"Windows 98"=0
"Internet 连接共享"=0
"Microsoft Wallet"=0
"Personal Web Server"=1
"Web 发布向导"=0
"Web-Based Enterprise Mgmt"=0
"Microsoft Outlook Express"=1
"波罗的海语"=0
"中欧"=0
"西里尔语"=0
"希腊语"=0
"土耳其语"=0
"音频压缩"=1
"CD 播放器"=1
"Macromedia Shockwave Director"=1
"Macromedia Shockwave Flash"=1
"多媒体配音方案"=0
"声音采样"=0
"录音机"=1
"视频压缩"=1
"音量控制"=1
"其他屏幕保护程序"=0
"飞行 Windows"=1
"OpenGL 屏幕保护程序"=1
"备份"=0
"字符映射表"=0
"剪贴板查看程序"=0
"磁盘压缩工具"=0
"驱动器转换器(FAT32)"=0
"组策略"=0
"网络监视器"=0
"系统监视器"=0
"系统资源状况"=0
[Printers]
[InstallLocationsMRU]
[Install]
AddReg=RunOnce.BatchDelay,Run.Installed.Components,Skip.PCMCIA.Wizard,Registry.WinUpdate
[RunOnce.BatchDelay]
HKLM,%KEY_RUNONCE%,BatchRun1,,"%25%\rundll.exe setupx.dll,InstallHinfSection Delete.MSN.Icon 4 %10%\msbatch.inf"
HKLM,%KEY_RUNONCE%,BatchRun2,,"%25%\rundll.exe setupx.dll,InstallHinfSection Delete.Welcome 4 %10%\msbatch.inf"
HKLM,%KEY_RUNONCE%,BatchRun3,,"%25%\rundll.exe setupx.dll,InstallHinfSection Delete.Regwiz 4 %10%\msbatch.inf"
[Run.Installed.Components]
HKLM,%KEY_INSTALLEDCOMPS%\>BatchSetupx,,,">Batch 98 - General Settings"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchSetupx,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%\>BatchSetupx,Version,,"3,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchSetupx,StubPath,,"%25%\rundll.exe setupx.dll,InstallHinfSection Installed.Components.General 4 %10%\msbatch.inf"
HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,,,"ICW"
HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,Version,,"3,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,StubPath,,"%24%\progra~1\intern~1\connec~1\icwconn1 /restoredesktop
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,,,">Batch 98 - Advanced Settings"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,Version,,"3,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,StubPath,,"%25%\rundll32.exe advpack.dll,LaunchINFSection %10%\msbatch.inf,Installed.Components.Advanced"
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,,,">Batch 98 - Windows Update"
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,Version,,"3,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,StubPath,,"wupdmgr.exe -shortcut"
[Installed.Components.General]
AddReg=Browser.Settings, Shell.Prep
BitReg=Shell.Settings
[Installed.Components.Advanced]
DelFiles=QuickLaunch.Icons
CustomDestination=Custom.Dest
[Custom.Dest]
49050=QuickLinksLDIDSection,5
[Delete.MSN.Icon]
DelReg=MSN.Icon
[MSN.Icon]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Desktop\NameSpace\{4B876A40-4EE8-11D1-811E-00C04FB98EEC},,,
[Delete.Welcome]
DelReg=Registry.Welcome
[Registry.Welcome]
HKLM,Software\Microsoft\Windows\CurrentVersion\Run,Welcome,,
[Delete.Regwiz]
AddReg=Registry.Regwiz
[Registry.Regwiz]
HKLM,Software\Microsoft\Windows\CurrentVersion\Welcome\Regwiz,@,1,01,00,00,00
HKLM,Software\Microsoft\Windows\CurrentVersion,RegDone,1,01,00,00,00
[Registry.WinUpdate]
HKLM,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoDevMgrUpdate,0x10001,0
HKLM,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoWindowsUpdate,0x10001,0
[Browser.Settings]
HKCU,%KEY_IEXPLORERMAIN%,"Start Page",,"http://www.gz163.cn"
HKCU,%KEY_IEXPLORERMAIN%,"First Home Page",,"http://home.microsoft.com/runonce.asp"
HKCU,%KEY_IEXPLORERMAIN%,"Search Page",,"http://www.microsoft.com/isapi/redir.dll?prd=ie&ar=iesearch"
HKLM,%KEY_IEXPLORERMAIN%,"Search Bar",,"http://www.microsoft.com/isapi/redir.dll?prd=ie&ar=iesearch"
HKCU, "SOFTWARE\Microsoft\Internet Explorer\Help_Menu_URLs","Online_Support",,"http://support.microsoft.com/support"
[Shell.Prep]
HKCU,"Software\Microsoft\Internet Explorer\Desktop\Components\0",Flags,01,00,00,00
HKCU,"Software\Microsoft\Internet Explorer\main",Show_ChannelBand,0,"no"
[Shell.Settings]
HKCU,"Software\Microsoft\Internet Explorer\Desktop\Components\0",Flags,0,20,1
[QuickLinksLDIDSection]
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders",AppData,QuickLaunch,"%25%\Application Data"
[QuickLaunch.Icons]
查看频道.scf
[Skip.PCMCIA.Wizard]
HKLM,System\CurrentControlSet\Services\Class\PCMCIA,SkipWizardForBatchSetup,,1
[DestinationDirs]
QuickLaunch.Icons=49050,Micros~1\Intern~1\QuickL~1
[Strings]
KEY_RUNONCE="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
KEY_INSTALLEDCOMPS="SOFTWARE\Microsoft\Active Setup\Installed Components"
KEY_IEXPLORERMAIN="Software\Microsoft\Internet Explorer\Main"
附件: 您所在的用户组无法下载或查看附件