建一个BAT文件,内容如下:echo "更改windows安装文件的路径"echo Windows Registry Editor Version 5.00 > c:/setupreg.regecho [HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Setup] >> c:/setupreg.regecho "ServicePackSourcePath"="E://BackUp//OS//WINXP//" >> c:/setupreg.regecho "SourcePath"="F://BackUp//OS//WINXP//" >> c:/setupreg.regregedit /S c:/setupreg.regdel c:/setupreg.regecho "生成IIS无人值守安装选项文件"echo [Components] > c:/iis.txtecho iis_common = ON >> c:/iis.txtecho iis_www = ON >> c:/iis.txtecho iis_asp = ON >> c:/iis.txtecho iis_inetmgr = ON >> c:/iis.txtecho aspnet= ON >> c:/iis.txtSysocmgr.exe /i:%windir%/inf/sysoc.inf /u:c:/iis.txtdel c:/iis.txtecho IIS安装完毕运行这个BAT就OK啦XP安装盘的位置,要修改一下。