CLS 
@echo off
ECHO.
call  %SystemDrive%\netinst\env_set.bat

if "%LANG_VER%" == "0804" goto wincn
if "%LANG_VER%" == "0411" goto winjp
if "%LANG_VER%" == "0412" goto winko

:wincn
::DEL "%systemdrive%\Documents and Settings\Administrator\「开始」菜单\程序\启动\ie6setup.bat"
echo  start /wait %WIN_SETUP%\win2k\IE6\IE6_cn\ie6setup.exe /Q:A /R:N >>  c:\netinst\install.txt
ECHO Setup IE6_cn 
start /wait %WIN_SETUP%\win2k\IE6\IE6_cn\ie6setup.exe /Q:A /R:N

@goto do_set

:winjp
::DEL "%systemdrive%\Documents and Settings\Administrator\僗僞乕僩 儊僯儏乕\僾儘僌儔儉\僗僞乕僩傾僢僾\ie6setup.bat"
echo  start /wait %WIN_SETUP%\win2k\IE6\IE6_jp\ie6setup.exe /Q:A /R:N >>  c:\netinst\install.txt
ECHO Setup IE6_jp 
start /wait %WIN_SETUP%\win2k\IE6\IE6_jp\ie6setup.exe /Q:A /R:N

@goto do_set

:winko
::DEL "%systemdrive%\Documents and Settings\Administrator\矫累 皋春\橇肺弊伐\矫累橇肺弊伐\ie6setup.bat"
echo  start /wait %WIN_SETUP%\win2k\IE6\IE6_ko\ie6setup.exe /Q:A /R:N >>  c:\netinst\install.txt
ECHO Setup IE6_ko 
start /wait %WIN_SETUP%\win2k\IE6\IE6_ko\ie6setup.exe /Q:A /R:N

:do_set

echo  Setup AutoHotkey >>  c:\netinst\install.txt
ECHO Setup AutoHotkey
"%SOFT_PATH%\win\AutoHotkey112301_Install.exe"  /U32 /S /D=C:\Program Files\AutoHotkey

echo  Setup TORTOISESVN_ahk.exe "1.6.10.19898" "1.6.12" >>  c:\netinst\install.txt
ECHO Setup TORTOISESVN_ahk.exe "1.6.10.19898" "1.6.12"
"%WIN_SETUP%\win2k\svn\TORTOISESVN_ahk.exe"  "TortoiseSVN-1.6.10.19898-win32-svn-1.6.12.msi"  "C"


::REGEDIT /S %BAT_PATH%\win2k_autoin1.reg

REG DELETE  "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v batch /f

if "%SYS_MODEL%" == "VMware,Inc.VMwareVirtualPlatform" goto vmware
if "%SYS_MODEL%" == "innotekGmbHVirtualBox" goto virtbox
goto ext

:vmware
echo  Copying VMware_Tools_ahk.exe to c:\netinst >>  c:\netinst\install.txt
ECHO Copying VMware_Tools_ahk.exe to c:\netinst
COPY "%BAT_PATH%\VMware_Tools_ahk.exe"  "c:\netinst"

ECHO do install VMware_Tools
echo install VMware_Tools >>  c:\netinst\install.txt
start /wait c:\netinst\VMware_Tools_ahk.exe

goto ext

:virtbox
echo  Copying VirtualBox_Tools_ahk.exe to c:\netinst >>  c:\netinst\install.txt
ECHO Copying VirtualBox_Tools_ahk.exe to c:\netinst
COPY "%BAT_PATH%\VirtualBox_Tools_ahk.exe"  "c:\netinst"


ECHO do install VirtualBox_Tools
echo install VirtualBox_Tools >>  c:\netinst\install.txt
start /wait c:\netinst\VirtualBox_Tools_ahk.exe "5.2.12" 

goto ext


::"D:\Program Files\AutoHotkey\AutoHotkeyU32.exe" /f   c:\netinst\VMware_Tools_ahk.ahk

rem REGEDIT /S %SOFT_PATH%\batch\win2k_autoin0.reg
ECHO Restarting the PC
shutdown.exe -r -f -t 1
EXIT

