自動重灌光碟2009V2

>---AUTO.CMD---<
CLS
@ECHO OFF
TITLE AUTO
COLOR 0A
MODE CON COLS=45 LINES=25
IF EXIST D:\mnitcc.txt set CDROM=D:
IF EXIST E:\mnitcc.txt set CDROM=E:
IF EXIST F:\mnitcc.txt set CDROM=F:
IF EXIST G:\mnitcc.txt set CDROM=G:
IF EXIST H:\mnitcc.txt set CDROM=H:
IF EXIST I:\mnitcc.txt set CDROM=I:
IF EXIST J:\mnitcc.txt set CDROM=J:
IF EXIST K:\mnitcc.txt set CDROM=K:
IF EXIST L:\mnitcc.txt set CDROM=L:
IF EXIST M:\mnitcc.txt set CDROM=M:
IF EXIST N:\mnitcc.txt set CDROM=N:
IF EXIST O:\mnitcc.txt set CDROM=O:
IF EXIST P:\mnitcc.txt set CDROM=P:
IF EXIST Q:\mnitcc.txt set CDROM=Q:
IF EXIST R:\mnitcc.txt set CDROM=R:
IF EXIST S:\mnitcc.txt set CDROM=S:
IF EXIST T:\mnitcc.txt set CDROM=T:
IF EXIST U:\mnitcc.txt set CDROM=U:
IF EXIST V:\mnitcc.txt set CDROM=V:
IF EXIST W:\mnitcc.txt set CDROM=W:
IF EXIST X:\mnitcc.txt set CDROM=Y:
IF EXIST Y:\mnitcc.txt set CDROM=X:
IF EXIST Z:\mnitcc.txt set CDROM=Z:

ECHO.
ECHO.
ECHO.
ECHO.
ECHO %time:~0,8% 開始安裝程式,請不要動滑鼠及鍵盤

ECHO.
ECHO %time:~0,8% 匯入登錄檔...
IF EXIST %systemdrive%\regedit\regedit.cmd (
start /wait %systemdrive%\regedit\regedit.cmd
)
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後至2008/12月更新
IF EXIST %systemdrive%\wxp_sp4\hotfix.cmd (
start /wait %systemdrive%\wxp_sp4\hotfix.cmd
)
ECHO %time:~0,8% 更新完成!

ECHO.
ECHO 刪除資料夾...
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 清除捷徑...
del /f/q "%ALLUSERSPROFILE%\「開始」功能表\*.lnk"
del /f/q "%UserProfile%\「開始」功能表\程式集\遠端協助.lnk"
del /f/q "%ALLUSERSPROFILE%\「開始」功能表\程式集\Windows Movie Maker.lnk"

ECHO.
ECHO 重啟電腦...
shutdown -r -f -t 90 -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 正在安裝 WMP11
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 安裝即時通 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 安裝 PAPAGOR12
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 正在安裝 JAVA 6 UPDATE 7
start /wait %systemdrive%\Install\JAVA6u7.exe /s AgreeToLicense=YES IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0
ECHO.
ECHO 正在安裝 FLASH PLAYER 10 WITH IE
start /wait %systemdrive%\Install\flashplayer10.msi /qb
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.1.7
start /wait %systemdrive%\Install\Klite\klmcodec417.exe /verysilent /norestart /LoadInf="%systemdrive%\Install\Klite\klmcp.ini"
xcopy "%ALLUSERSPROFILE%\「開始」功能表\程式集\K-Lite Codec Pack\Media Player Classic.lnk" "%ALLUSERSPROFILE%\桌面\" /y >nul
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 安裝 HD TUNE
xcopy "%systemdrive%\Install\HDTUNE" "%programfiles%\HDTune" /e/y/i >nul
xcopy "%systemdrive%\Install\HDTUNE\HDTune.lnk" "%ALLUSERSPROFILE%\「開始」功能表\程式集\Tool\系統資訊\" /y/e/i >nul
ECHO.
ECHO 正在安裝 ALCHOL 1.9.7.6221
start /wait %systemdrive%\install\Alcohol\Alcohol1976221.exe

EXIT

--->REGEDIT.CMD<---
CLS
@ECHO OFF
TITLE regedit
COLOR 70
MODE CON COLS=45 LINES=3
ECHO.
ECHO 關閉系統還原
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\00.reg
ECHO.
ECHO 設定IE首頁
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\01.reg
ECHO.
ECHO 移除右健新增"聲音檔"
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\02.reg
ECHO.
ECHO 取消遇到嚴重問題時重開
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\03.reg
ECHO.
ECHO 取消資訊安全中心的監控警告
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\04.reg
ECHO.
ECHO 顯示音量控制圖示在工具列
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\05.reg
ECHO.
ECHO 開啟Num Lock...
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\06.reg
ECHO.
ECHO 開始選單不顯示 "我的最愛"
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\07.reg
ECHO.
ECHO 開始選單不顯示 "說明"
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\08.reg
ECHO.
ECHO 開始選單不顯示 "文件"
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\09.reg
ECHO.
ECHO 關閉XP內建燒錄功能
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\10.reg
ECHO.
ECHO 移除在音樂檔右鍵出現的"新增同步處理清單"和"新增燒錄清單"
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\11.reg
ECHO.
ECHO 禁止出現 "點擊這裡開始" 的提示
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\12.reg
ECHO.
ECHO 禁用錯誤報告
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\13.reg
ECHO.
ECHO 使用傳統方式檢視控制台
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\14.reg
ECHO.
ECHO 設定自動更新
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\15.reg
ECHO.
ECHO 取消桌面清除精靈
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\16.reg
ECHO.
ECHO 取消遠端協助
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\17.reg
ECHO.
ECHO 取消隱藏非使用中的圖示
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\18.reg
ECHO.
ECHO 關閉導覽Windows XP提示
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\19.reg
ECHO.
ECHO 取消 協助工具選項
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\20.reg
ECHO.
ECHO 關閉嗶聲
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\21.reg
ECHO.
ECHO 關閉快取縮圖
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\22.reg
ECHO.
ECHO 關閉自動執行
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\23.reg
ECHO.
ECHO 加快網路芳鄰
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\24.reg
ECHO.
ECHO 關閉WMP媒體導覽
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\25.reg
ECHO.
ECHO 使用傳統的搜尋檔案介面
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\26.reg
ECHO.
ECHO 取消螢幕保護程式
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\27.reg
ECHO.
ECHO 不使用工具列按鈕分組
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\28.reg
ECHO.
ECHO 顯示狀態列
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\29.reg
ECHO.
ECHO 不記住每個資料夾的檢視設定
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\30.reg
ECHO.
ECHO 移除右鍵新增
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\31.reg
ECHO.
ECHO 在我的電腦顯示控制台
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\32.reg
ECHO.
ECHO 關閉影像檔案預覽
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\33.reg
ECHO.
ECHO 停用IE偵錯
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\34.reg
ECHO.
ECHO 取消在資料夾提示中顯示大小資訊
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\35.reg
ECHO.
ECHO 顯示隱藏檔
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\36.reg
ECHO.
ECHO 取消用色彩顯示加密或壓縮的NTFS檔案
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\37.reg
ECHO.
ECHO 顯示系統夾內容
start /wait regedit.exe /s %SYSTEMDRIVE%\regedit\38.reg

ECHO.
ECHO 停用壓縮的資料夾...
regsvr32 /u /s zipfldr.dll
ECHO.
ECHO 取消多媒體預覽...
REGSVR32 /U /s SHMEDIA.DLL

EXIT

0 回應: