赞
踩
重做系统的话,有太多软件需要安装,但是如果管理得当,就可以做到批量安装软件。就像电脑管家那样批量打补丁,安装需要的软件。
尽可能把自己的软件放置在一个文件夹内。每个软件放置一个新的文件夹,方便存储多个版本,里面可以再新建一个文件夹类似KEY之类的文件夹存贮所购买软件的许可证书。
然后就可以编辑一个bat文件,内容是启动静默安装自己需要的软件。
比如 你需要安装Java 的jre,
start /wait %~dp0Prgramming\Java\jre-8u261-windows-i586.exe /s
文件后面加上 /s 就是静默安装,没有对话框,自动默认安装。
像Camtasia Studio 之类的软件都是支持自动静默安装的。
start /wait %~dp0TECHSMITH\camtasia.exe /sp- /silent /norestart
总结一下自己需要的软件,然后直接写出批处理,睡觉前让他们自动安装吧。
附赠一下CATIA V5 和 V6 的安装静默安装方法。
:B27G:\01_APPS\DASSAULT_SYSTEMES_MEDIA\V5-6R2017\01-GA\CATIA_P3.win_b64\1\WIN64\StartB -u "C:\Program Files\Dassault Systemes\B27" -newdir -D "C:\Program Files\Dassault Systemes\CATEnv" -all -v G:\01_APPS\DASSAULT_SYSTEMES_MEDIA\V5-6R2017\02-SP\SP2\SPK.win_b64\1\WIN64\StartSPKB -bC -killprocess -vG:\01_APPS\DASSAULT_SYSTEMES_MEDIA\V5-6R2017\02-SP\SP2\HOTFIXR30SP2\CDROM\B27.2.3.win_b64\1\WIN64\StartHFXB -killprocess -vG:\01_APPS\DASSAULT_SYSTEMES_MEDIA\V5-6R2017\01-GA\CAA_CATIA_P3.win_b64\1\WIN64\StartCAAB -code "C:\Program Files\Dassault Systemes\B27" -all -vG:\01_APPS\DASSAULT_SYSTEMES_MEDIA\V5-6R2017\02-SP\SP2\SPK_CAA.win_b64\1\WIN64\StartSPKB -u "C:\Program Files\Dassault Systemes\B27" -bC -killprocess -vG:\01_APPS\DASSAULT_SYSTEMES_MEDIA\V5-6R2017\01-GA\RADE.win_b64\1\WIN64\StartB.exe -u "C:\Program Files\Dassault Systemes\B27_RADE" -newdir -D "C:\Program Files\Dassault Systemes\CATEnv" -ident "RADE" -all -v::卸载HF"C:\Program Files\Dassault Systemes\B27\win_b64\code\bin\CATSoftwareMgtB" -hfxR:B421::GA"E:\R2019x\AM_3DEXP_NativeApps.AllOS\6\3DEXPERIENCE_NativeApps\1\StartTUI.exe" --silent %~dp0B421\UserIntentions_CODE.xml"E:\R2019x\AM_3DEXP_NativeApps.AllOS\6\3DEXPERIENCE_NativeApps\1\StartTUI.exe" --silent %~dp0B421\UserIntentions_CODE_421.14.xml"E:\R2019x\AM_3DEXP_NativeApps.AllOS\6\3DEXPERIENCE_NativeApps\1\StartTUI.exe" --silent %~dp0B421\UserIntentions_CAA_421.14.xml"E:\R2019x\AM_3DEXP_NativeApps.AllOS\6\3DEXPERIENCE_NativeApps\1\StartTUI.exe" --silent %~dp0B421\UserIntentions_CAA_Additional_421.xml::RADE"E:\R2019x\AM_3DEXP_NativeApps.AllOS\6\3DEXPERIENCE_NativeApps\1\StartTUI.exe" --silent %~dp0B421_RADE\UserIntentions_CODE.xml"E:\R2019x\AM_3DEXP_NativeApps.AllOS\6\3DEXPERIENCE_NativeApps\1\StartTUI.exe" --silent %~dp0B421_RADE\UserIntentions_CODE_421.14.xml:B422::GA"E:\R2020x\AM_3DEXP_NativeApps.AllOS\6\3DEXPERIENCE_NativeApps\1\StartTUI.exe" --silent %~dp0B422\UserIntentions_CODE.xml"E:\R2020x\AM_3DEXP_NativeApps.AllOS\6\3DEXPERIENCE_NativeApps\1\StartTUI.exe" --silent %~dp0B422\UserIntentions_CODE_421.14.xml"E:\R2020x\AM_3DEXP_NativeApps.AllOS\6\3DEXPERIENCE_NativeApps\1\StartTUI.exe" --silent %~dp0B422\UserIntentions_CAA_421.14.xml"E:\R2020x\AM_3DEXP_NativeApps.AllOS\6\3DEXPERIENCE_NativeApps\1\StartTUI.exe" --silent %~dp0B422\UserIntentions_CAA_Additional_421.xml::RADE"E:\R2020x\AM_3DEXP_NativeApps.AllOS\6\3DEXPERIENCE_NativeApps\1\StartTUI.exe" --silent %~dp0B422_RADE\UserIntentions_CODE.xml"E:\R2020x\AM_3DEXP_NativeApps.AllOS\6\3DEXPERIENCE_NativeApps\1\StartTUI.exe" --silent %~dp0B422_RADE\UserIntentions_CODE_421.14.xml
如果你有个专门的硬盘用于安装软件,那么你就可以把路径写成动态的,自动获得当前所在路径
set MyPath=%~dp0
有了以上代码,就可以不管插在哪个电脑上都能自动找到路径,
案例如下:
:B27%MyPath%CATIA_P3.win_b64\1\WIN64\StartB -u "C:\Program Files\Dassault Systemes\B27" -newdir -D "C:\Program Files\Dassault Systemes\CATEnv" -all -v %MyPath%SPK.win_b64\1\WIN64\StartSPKB -bC -killprocess -v%MyPath%HOTFIXR27SP7\CDROM\B27.6.38.win_b64\1\WIN64\StartHFXB -killprocess -v%MyPath%CAA_CATIA_P3.win_b64\1\WIN64\StartCAAB -code "C:\Program Files\Dassault Systemes\B27" -all -v%MyPath%SPK_CAA.win_b64\1\WIN64\StartSPKB -u "C:\Program Files\Dassault Systemes\B27" -bC -killprocess -v%MyPath%RADE.win_b64\1\WIN64\StartB.exe -u "C:\Program Files\Dassault Systemes\B27_RADE" -newdir -D "C:\Program Files\Dassault Systemes\CATEnv" -ident "RADE" -all -v
对于需要开发的CATIA v5 的朋友需要
GA版本软件
大版本补丁包
小版本补丁包
SDV组件包
SDV补丁包
RADE组件包
安装6个包,用以上批处理代码,可以一次性搞定所有工作,非常方便。
其他软件:
set MyPath=%~dp0rem javamd C:\Java\jdk(x64)md C:\Java\jdk(x86)md C:\Java\jre(x64)md C:\Java\jre(x86)start /wait %~dp0Prgramming\Java\jre-8u261-windows-i586.exe /srem Tencentstart /wait %~dp0TENCENT\TIM3.0.0.21315.exe /sp- /silent /norestartstart /wait %~dp0TENCENT\TencentDocsSetup.exe /sp- /silent /norestartstart /wait %~dp0ZIP\7z2000-x64.exe /sp- /silent /norestartstart /wait %~dp0MS_VS\VSCODE\VSCodeSetup-x64-1.47.2.exe /sp- /silent /norestartstart /wait %~dp0TENCENT\FoxmailSetup_7.2.17.58.exestart /wait %~dp0EMAIL\"Thunderbird Setup 68.8.0.exe"start /wait %~dp0MOZILLA\"Firefox Setup 79.0.exe"start /wait %~dp0BROWSER\"Firefox Setup 78.0.2.exe" /sstart /wait %~dp0ALL_REMOTE\SunloginClient_10.5.0.29613.exestart /wait %~dp0ALL_REMOTE\PgyVPN_4.3.0.27928.exestart /wait %~dp0MS\Teams_windows_x64.exestart /wait %~dp0TENCENT\WeiyunSyncInstall_Beta_1_3.0.0.456_20200616_172857_r0.exestart /wait %~dp0TENCENT\TencentMeeting_0300000000_1.7.0.483.publish.exestart /wait %~dp0TECHSMITH\camtasia.exe /sp- /silent /norestart
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。