自動重灌光碟2009V3

--->AUTO.CMD<---
CLS
@ECHO OFF
TITLE AUTO
COLOR 0A
MODE CON COLS=45 LINES=25
FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO (IF EXIST %%i:\mnitcc.txt SET CDROM=%%i:)
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO %time:~0,8% 開始安裝程式,請不要動滑鼠及鍵盤

ECHO.
ECHO %time:~0,8% 匯入登錄檔...
FOR %%e in (%CDROM%\regedit\*.reg) do (regedit /s %%e)
REGSVR32 /U /S ZIPFLDR.DLL
REGSVR32 /U /S SHMEDIA.DLL
ECHO %time:~0,8% 登錄檔匯入完成!

ECHO.
ECHO %time:~0,8% 開始安裝程式...
IF EXIST %systemdrive%\Install\Install.cmd (start /wait %systemdrive%\Install\Install.cmd)
ECHO %time:~0,8% 程式安裝完成!

ECHO.
ECHO %time:~0,8% 開始安裝Office2003...
IF EXIST %CDROM%\office\AutoOffice.cmd (start /wait %CDROM%\office\AutoOffice.cmd)
ECHO %time:~0,8% Office安裝完成!

ECHO.
ECHO %time:~0,8% 開始安裝SP3後至2009/03月更新
IF EXIST %systemdrive%\wxp_sp4\hotfix.cmd (start /wait %systemdrive%\wxp_sp4\hotfix.cmd)
ECHO %time:~0,8% 更新完成!

ECHO.
ECHO %time:~0,8% 刪除暫存資料夾...
RD /s /q %systemdrive%\Install
RD /s /q %systemdrive%\regedit
RD /s /q %systemdrive%\wxp_sp4
RD /S /Q "%ProgramFiles%\Adobe\Reader 8.0\Setup Files\"

ECHO.
ECHO %time:~0,8% 清除捷徑...
del /f/q "%ALLUSERSPROFILE%\「開始」功能表\*.lnk"
del /f/q "%UserProfile%\「開始」功能表\程式集\遠端協助.lnk"
del /f/q "%ALLUSERSPROFILE%\「開始」功能表\程式集\Windows Movie Maker.lnk"

ECHO.
ECHO 重啟電腦...
shutdown -r -f -t 120 -c "重新啟動"

ECHO.
ECHO 刪除資料夾..
RD /s /q %systemdrive%\auto

EXIT

--->INSTALL.CMD<---
CLS
@ECHO OFF
title 軟體自動安裝
COLOR 0B
MODE CON COLS=45 LINES=3
ECHO.
ECHO 解壓縮中...
for %%i in (%systemdrive%\install\*.7z) do (%systemdrive%\install\7z.exe x -y %%i -o%systemdrive%\install\) >nul
for %%i in (%systemdrive%\install\*.7z) do (del /q %%i) >nul
ECHO.
ECHO 移除Windows Messenger...
RunDll32 advpack.dll,LaunchINFSection %windir%\INF\msmsgs.inf,BLC.Remove
ECHO.
ECHO 安裝 MSN8.5
start /wait %systemdrive%\Install\msn85.msi /qb
ECHO.
ECHO 安裝 Windows Media Player 11
start /wait %systemdrive%\Install\wmp11.exe /Q:A /C:"setup_wm.exe /Q /R:N"
ECHO.
ECHO 安裝 PDF Reader 9.1
start /wait %systemdrive%\Install\PDFREADER91\PDFREADER91.msi /qb /norestart
ECHO.
ECHO 安裝 FlashGet
start /wait %systemdrive%\Install\flashget.exe /s
ECHO.
ECHO 安裝 yahoo messenger 8.1
start /wait %systemdrive%\Install\ymsgr8.exe /s
taskkill.exe /F /IM YahooMessenger.exe
ECHO.
ECHO 安裝 unlocker1.8.7
start /wait %systemdrive%\Install\unlocker187.exe /S
ping -n 2 127.0.0.1 > nul
DEL /F /Q "%ProgramFiles%\Unlocker\eBay_shortcuts_1016.exe" >nul
DEL /F /Q "%UserProfile%\Application Data\Desktopicon\eBayShortcuts.exe" >nul
DEL /F /Q "%UserProfile%\Application Data\Desktopicon\eBay.lnk" >nul
DEL /F /Q "%UserProfile%\桌面\eBay.lnk" >nul
DEL /F /Q "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\eBay.lnk" >nul
DEL /F /Q "%UserProfile%\「開始」功能表\eBay.lnk" >nul
ECHO.
ECHO 安裝 PAPAGO R12
start /wait %systemdrive%\Install\papagor12\papago12.msi /qb
ECHO.
ECHO 安裝 WINRAR 3.71
start /wait %systemdrive%\Install\winrar\wrar371.exe /s
ECHO.
ECHO 安裝 NERO 6.6.1.15
start /wait %systemdrive%\Install\NERO\Nero_Installer.cmd
ECHO.
ECHO 中文化 NERO 6.6.1.15
start /wait %systemdrive%\Install\NEROCHT\Setup.exe /SILENT /NOREBOOT /NOLICENSE /NOCANCEL
del /f/q "%ALLUSERSPROFILE%\「開始」功能表\程式集\Nero\Nero Online Upgrade.lnk" >nul
rd /s/q "%ALLUSERSPROFILE%\「開始」功能表\程式集\Nero\用戶指南" >nul
del /f/q "%ALLUSERSPROFILE%\桌面\Nero Online Upgrade.lnk" >nul
ECHO.
ECHO.
ECHO 安裝 JAVA 6 UPDATE 12
start /wait %systemdrive%\Install\JAVA6u12.exe /s AgreeToLicense=YES IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0
ECHO.
ECHO 安裝 FLASH PLAYER 10
start /wait %systemdrive%\Install\FlashPlayer10\flash10withIE.msi /qb
start /wait %systemdrive%\Install\FlashPlayer10\flashplayer10.exe /s
ECHO.
ECHO 安裝 uTorrent 1.8
start /wait %systemdrive%\Install\utorrent\utorrent.exe /PERFORMINSTALL 4 "%programfiles%\uTorrent"
xcopy "%systemdrive%\Install\utorrent\utorrent.lng" "%programfiles%\uTorrent" /y >nul
ECHO.
ECHO 安裝 K-LITE Mega Codec Pack 4.7.0
start /wait %systemdrive%\Install\Klite\klmcodec470.exe /verysilent /norestart /LoadInf="%systemdrive%\Install\Klite\klmcp.ini"
xcopy "%systemdrive%\Install\Klite\mplayerc.ini" "%PROGRAMFILES%\K-Lite Codec Pack\Media Player Classic" /y >nul
ECHO.
ECHO 安裝 Firefox 3.0.7
start /wait %systemdrive%\Install\firefox\firefox307.exe -ms
ECHO.
ECHO 安裝 TeamViewer
xcopy "%systemdrive%\Install\teamviewer" "%programfiles%\TeamViewer" /e/y/i >nul
xcopy "%systemdrive%\Install\teamviewer\teamviewer.lnk" "%ALLUSERSPROFILE%\「開始」功能表\程式集\Tool\遠端遙控\" /y/e/i >nul
ECHO.
ECHO 安裝 PCMAN2007
xcopy "%systemdrive%\Install\PCMAN" "%programfiles%\PCMAN" /e/y/i >nul
xcopy "%systemdrive%\Install\PCMAN\PCMAN.lnk" "%ALLUSERSPROFILE%\桌面\" /y >nul
ECHO.
ECHO 安裝 EVEREST 4.60.1509
xcopy "%systemdrive%\Install\EVEREST" "%programfiles%\EVEREST" /e/y/i >nul
xcopy "%systemdrive%\Install\EVEREST\EVEREST.lnk" "%ALLUSERSPROFILE%\「開始」功能表\程式集\Tool\系統資訊\" /y/e/i >nul
ECHO.
ECHO 安裝 HDTUNE 3.50
xcopy "%systemdrive%\Install\HDTUNE" "%programfiles%\HDTune" /e/y/i >nul
xcopy "%systemdrive%\Install\HDTUNE\HDTune.lnk" "%ALLUSERSPROFILE%\「開始」功能表\程式集\Tool\系統資訊\" /y/e/i >nul
ECHO.
ECHO 安裝 MagicISO Maker 5.4
xcopy "%systemdrive%\Install\MagicISO" "%programfiles%\MagicISO" /e/y/i >nul
rundll32 setupapi,InstallHinfSection DefaultInstall 128 %programfiles%\MagicISO\setup.inf
xcopy "%systemdrive%\Install\MagicISO\MagicISO.lnk" "%ALLUSERSPROFILE%\「開始」功能表\程式集\Tool\光碟工具\" /y/e/i >nul
ECHO.
ECHO 安裝 Net Framework 1.1 SP1
start /wait %systemdrive%\Install\dotnet11\dotnetfx.exe /Q:U /C:"install /L /QB"
start /wait %systemdrive%\Install\dotnet11\langpack.exe /Q:U /C:"inst /L /QB"
start /wait %systemdrive%\Install\dotnet11\KB867460.exe /Q
start /wait %systemdrive%\Install\dotnet11\KB928366.exe /Q
ECHO.
ECHO 安裝 Net Framework 3.5 SP1
md %TEMP%\dotnetfx3530729.01\1033\dotnetfx35\x86 >nul
xcopy /y %systemdrive%\Install\dotnet35\dotnetfx35langpack_x86zh-cht.exe %TEMP%\dotnetfx3530729.01\1033\dotnetfx35\x86\ >nul
start /wait %systemdrive%\Install\dotnet35\dotNetFx35setup.exe /QB /NORESTART
start /wait %systemdrive%\Install\dotnet35\Hotfix\KB958481.exe /Q /passive /norestart
start /wait %systemdrive%\Install\dotnet35\Hotfix\KB958483.exe /Q /passive /norestart
start /wait %systemdrive%\Install\dotnet35\Hotfix\KB958484.exe /Q /passive /norestart
ECHO.
ECHO 安裝 ALCHOL 1.9.7.6221
start /wait %systemdrive%\install\Alcohol\Alcohol1976221.exe
xcopy "%systemdrive%\install\Alcohol\CREAK\*" "%programfiles%\Alcohol Soft\Alcohol 120\" /y/e/i >nul


EXIT

--
改寫CDROM尋找方法
REGEDIT.CMD取消
更新KLITE 4.7.0
更新JAVA6U12
更新HD TUNE 3.5
加入dotNET1.1
加入dotNET3.5

0 回應: