最近常幫忙朋友安裝軟體,但是一直做電腦看著Installer慢慢跑,實在浪費生命,所以我寫了一支小小批次檔,把常用的軟體全自動依序安裝完畢,我就去做自己的其他事情,不需要坐在電腦前面等著點[下一步 NEXT]...........

 

[QuickInstallSoftware.CMD] 批次檔內文如下

 

 

@Echo 快速安裝所有試用版軟體

CD\
CD "KITS\_MICROSOFT\WINDOWS\Windows XP"
regedit.exe /s "AutoEndTask (讓「立即終止」視窗不再出現).reg"
regedit.exe /s "NoAutoRun.REG"
regedit.exe /s "啟用SuperNode.REG"
regedit.exe /s "關閉【自動啟動功能】.REG"
COPY /V /Y "清除垃圾檔 For Win XP.CMD" "C:\Documents and Settings\All Users\桌面"
CD\

@Echo 安裝 Microsoft 。NET FRAMEWORK 3.5 SP1

D:
CD "D:\KITS\_MICROSOFT\MIX\‧netFramework 3.5 sp1\‧netFramework 3.5 sp1"
"dotNetFx35setup.exe" /lang:eng /passive

@echo 安裝visio 2003/2007/2010 Viwer
CD\
CD "KITS\_MICROSOFT\OFFICE"
"Visio 2010 Visio Viewer -中文繁體.exe" /q

@echo 安裝 Office 2007/2010 OpenFile
CD\
CD "KITS\_MICROSOFT\OFFICE"
"Office 2007/2010 FileFormatConverters.exe" /q

@ECHO 安裝微軟輸入法2010
CD\
CD "KITS\_MICROSOFT\MIX\輸入法\微軟輸入法2010"
"IME2010_zh-tw.exe" /q

@ECHO 讓 XP底下可以直接看PSD縮圖檔
CD\
CD "KITS\ADOBE\ViewPSD"
MD "C:\Program Files\Common Files\Adobe"
MD "C:\Program Files\Common Files\Adobe\Shell"
copy /v /y *.dll "c:\Program Files\Common Files\Adobe\Shell"
regedit /s Adobe.reg
CD\

@ECHO 安裝 OpenOffice3.3
CD\
CD "KITS\OpenOffice.org 3.3 (zh-TW) Installation Files"
msiexec /qn /i "openofficeorg33.msi" ALLUSERS=1 ADDLOCAL=ALL REMOVE=gm_o_Quickstart,gm_o_Onlineupdate
CD\


D:

@Echo 延長Windows 7 使用期限30天 (Windows Software Licensing Management Tool)
REM slmgr -rearm

@echo 關閉 Windows 7 使用者存取控制安全提示警告視窗
reg import "關閉 Win7 UAC 提示訊息.REG"

@echo 安裝 WinRAR
winrar-x64-401tc.exe /s

@echo 安裝 Skype
"SkypeSetupFull 5.5.1.124.exe" ALLUSERS=1 /SILENT /nogoogle /noie /SP- /NOCANCEL /NORESTART

@echo 安裝 FOXIT Reader PDF Reader
"FoxitReader510.1021_enu_Setup.exe" /disallow /ql /fp /ebay /foxitbar /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
reg import "FOXIT_Readere 5 Disable_AutoUpdate For X64.reg"

@echo 安裝 微軟 Microsoft Security Essentials 防毒軟體
"mse2.0.657.0_x64.exe" /norestart  /s /runwgacheck

@echo 安裝 Adobe Flash Player
"install_flash_player 11.1 32bit /64bit For OtherBrowser.exe" -install
"install_flash_player 11.1 32bit /64bit For IE.exe" -install

@echo 安裝 Canon Digital Photo Professional (DPP)
reg import "Canon DPP 64位元 Windows Registry 更新HKEY.reg"
DPP3101EN.exe

@echo 安裝 FireFox
"Firefox Setup 8.0.exe" /s

@ECHO 安裝 PDF Creator
"PDFCreator-1_2_3_setup.exe" /LOADINF="D:\PDFCreatorSetup.inf" /DontUseYahooSearch  /VERYSILENT /NORESTART /SP-

@ECHO 安裝Silverlight
"D:\Silverlight.exe" /q

@echo 安裝 Oracle Java
"D:\jre-6u29-windows-i586-s.exe" /q /s

@echo 安裝 Adobe Photoshop CS 5.1 試用版
"D:\Adobe Photoshop CS5.1 中文試用版\Adobe CS5.1\Set-up.exe" /quiet

@echo 安裝 Adobe Photoshop Lightroom 3.5 試用版
"D:\Adobe Photoshop Lightroom 3.5\Adobe Photoshop Lightroom 3\Setup64.exe" /quiet

 

 

 

@ECHO ======全部安裝完畢=====清空拉機黨案=======================================================================================================

rem 這一行是清除個人特別設定目錄的暫存檔案
RD /S /Q C:\TEMP
MD       C:\TEMP
RD /S /Q D:\TEMP
MD       D:\TEMP


rem 這一行是清除系統環境暫存檔案
RD /S /Q %systemroot%\TEMP
MD       %systemroot%\TEMP


rem 這一行是清除Windows Update的暫存檔案
RD /S /Q %systemroot%\SoftwareDistribution\Download
MD       %systemroot%\SoftwareDistribution\Download

rem 這一行是清除個人環境暫存檔案
RD /S /Q  C:\users\%Username%\AppData\Local\TEMP
MD        C:\users\%Username%\AppData\Local\TEMP

rem 這一行是清除個人的Microsoft Internet Explorer瀏覽器暫存檔案
RD /S /Q  "C:\Users\%Username%\AppData\Local\Microsoft\Windows\Temporary Internet Files"
MD           "C:\Users\%Username%\AppData\Local\Microsoft\Windows\Temporary Internet Files"

rem 這一行是清除個人IE的瀏覽器Cookies暫存檔案
rd /s /q "C:\Documents and Settings\%username%\Cookies"

rem "C:\Documents and Settings\%username%\Cookies"rem 這一行是清除Java暫存檔案
RD /S /Q  C:\Users\%USERNAME%\AppData\LocalLow\Sun\Java\Deployment\cache



HarlemHsu 發表在 痞客邦 PIXNET 留言(1) 人氣()


留言列表 (1)

發表留言
  • 訪客
  • 可否請教,這三個reg檔要去那裡下載呢
    regedit.exe /s "啟用SuperNode.REG"
    regedit.exe /s "關閉【自動啟動功能】.REG"
    COPY /V /Y "清除垃圾檔 For Win XP.CMD" "C:\Documents and Settings\All Users\桌面"

    感謝