自已修改一下脚本中的路径和组件名称设置,就可以完成Delphi组件的自动安装。
rem first set environment library path set SOURCEDIR="D:\Components\ColorPB12";"D:\Components\Comport\source";"D:\Components\Dcpcrypt2";"D:\Components\Dcpcrypt2\Hashes";"D:\Components\Dcpcrypt2\Ciphers";"D:\Components\FastMM";"D:\Components\FastReports\FastReport 4\Source";"D:\Components\FastReports\FastReport 4\FastScript";"D:\Components\FastReports\FastReport 4\Source\ADO";"D:\Components\FastReports\FastReport 4\Source\BDE";"D:\Components\FastReports\FastReport 4\Source\ExportPack";"D:\Components\kbmMemTable\Source";"D:\Components\FatExpression";"D:\Components\ODAC\Source";"D:\Components\SynEdit\Source";"D:\Components\tdbf";"D:\Components\TeeChart7\Sources";"D:\Components\TMS\Component Pack";"D:\Components\TMS\Grid Pack";"D:\Components\TMS\Scripter Studio";"D:\Components\TopGrid\Source";"D:\Components\TxQuery";"D:\Components\DevExpress\ExpressCommon Library\Sources";"D:\Components\DevExpress\ExpressGDI+ Library\Sources";"D:\Components\DevExpress\ExpressLibrary\Sources";"D:\Components\DevExpress\XP Theme Manager\Sources";"D:\Components\DevExpress\ExpressDataController\Sources";"D:\Components\DevExpress\ExpressBars 6\Sources";"D:\Components\DevExpress\ExpressDBTree Suite\Sources";"D:\Components\DevExpress\ExpressDocking Library\Sources";"D:\Components\DevExpress\ExpressEditors Library 5\Sources";"D:\Components\DevExpress\ExpressExport Library\Sources";"D:\Components\DevExpress\ExpressFlowChart\Sources";"D:\Components\DevExpress\ExpressLayout Control\Sources";"D:\Components\DevExpress\ExpressMasterView\Sources";"D:\Components\DevExpress\ExpressMemData\Sources";"D:\Components\DevExpress\ExpressNavBar\Sources";"D:\Components\DevExpress\ExpressOrgChart\Sources";"D:\Components\DevExpress\ExpressPageControl 2\Sources";"D:\Components\DevExpress\ExpressPivotGrid\Sources";"D:\Components\DevExpress\ExpressQuantumGrid 6\Sources";"D:\Components\DevExpress\ExpressQuantumTreeList 4\Sources";"D:\Components\DevExpress\ExpressScheduler 2\Sources";"D:\Components\DevExpress\ExpressSideBar\Sources";"D:\Components\DevExpress\ExpressSpreadSheet\Sources";"D:\Components\DevExpress\ExpressVerticalGrid\Sources";"D:\Components\DevExpress\ExpressScript Engine\Sources";"D:\Components\DevExpress\ExpressWeb Framework\Sources";"D:\Components\DevExpress\ExpressPrinting System\Sources";"D:\Components\ODAC\Source\Design" set BDS="C:\Program Files\CodeGear\RAD Studio\5.0" set BPL="C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\Bpl" set DCP="C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\Dcp" set DCC32=dcc32.exe -Q -B -H -W -$C- -$J+ -$D- -$L- -$Y- -LE%BPL% -LN%DCP% -R;%SOURCEDIR% -U;%SOURCEDIR% -I;%SOURCEDIR% set SYSTEM32="C:\Windows\system32"
rem set REG32=REG ADD "HKCU\Software\Borland\BDS\5.0\Known Packages" /f /v $(BDSCOMMONDIR)\Bpl set REG32=REG ADD "HKCU\Software\Borland\BDS\5.0\Known Packages" /f /v %BPL% set COMPONENTDIR=D:\Components
rem BDS 4.0 later no longer required rem del %BPL%\*Tee*.* rem del %DCP%\*Tee*.* rem **********
rem intall TeeChart set TeeChart7=%COMPONENTDIR%\TeeChart7\Sources
%DCC32% %TeeChart7%\Tee711.dpk %DCC32% %TeeChart7%\TeeDB711.dpk %DCC32% %TeeChart7%\TeeGL711.dpk %DCC32% %TeeChart7%\TeeImage711.dpk %DCC32% %TeeChart7%\TeeLanguage711.dpk %DCC32% %TeeChart7%\TeePro711.dpk rem %DCC32% %TeeChart7%\TeeQR711.dpk %DCC32% %TeeChart7%\TeeUI711.dpk %DCC32% %TeeChart7%\DclTee711.dpk %DCC32% %TeeChart7%\DclTeePro711.dpk rem %DCC32% %TeeChart7%\DclTQR711.dpk
rem install FastReport 4 set FastScript="%COMPONENTDIR%\FastReports\FastReport 4\FastScript"
%DCC32% %FastScript%\fs11.dpk %DCC32% %FastScript%\fsDB11.dpk %DCC32% %FastScript%\fsADO11.dpk %DCC32% %FastScript%\fsBDE11.dpk %DCC32% %FastScript%\fsTee11.dpk rem %DCC32% %FastScript%\fsx.dpk
%DCC32% %FastScript%\dclfs11.dpk %DCC32% %FastScript%\dclfsDB11.dpk %DCC32% %FastScript%\dclfsADO11.dpk %DCC32% %FastScript%\dclfsBDE11.dpk %DCC32% %FastScript%\dclfsTee11.dpk
set FastReport="%COMPONENTDIR%\FastReports\FastReport 4\Source"
%DCC32% %FastReport%\frx11.dpk %DCC32% %FastReport%\frxDB11.dpk %DCC32% %FastReport%\frxTee11.dpk
%DCC32% %FastReport%\dclfrx11.dpk %DCC32% %FastReport%\dclfrxDB11.dpk %DCC32% %FastReport%\dclfrxTee11.dpk
set FastReportADO="%COMPONENTDIR%\FastReports\FastReport 4\Source\ADO" %DCC32% %FastReportADO%\frxADO11.dpk %DCC32% %FastReportADO%\dclfrxADO11.dpk
set FastReportBDE="%COMPONENTDIR%\FastReports\FastReport 4\Source\BDE" %DCC32% %FastReportBDE%\frxBDE11.dpk %DCC32% %FastReportBDE%\dclfrxBDE11.dpk
set FastReportExport="%COMPONENTDIR%\FastReports\FastReport 4\Source\ExportPack" %DCC32% %FastReportExport%\FRXE11.DPK %DCC32% %FastReportExport%\DCLFRXE11.DPK
rem install DevExpress
set ExpressCommon="%COMPONENTDIR%\DevExpress\ExpressCommon Library\Packages" %DCC32% %ExpressCommon%\dxComnD11.dpk
set ExpressGDIPlus="%COMPONENTDIR%\DevExpress\ExpressGDI+ Library\Packages" %DCC32% %ExpressGDIPlus%\dxGDIPlusD11.dpk
set ExpressTheme="%COMPONENTDIR%\DevExpress\XP Theme Manager\Packages" %DCC32% %ExpressTheme%\dxThemeD11.dpk
set ExpressLibrary="%COMPONENTDIR%\DevExpress\ExpressLibrary\Packages" %DCC32% %ExpressLibrary%\cxLibraryD11.dpk %DCC32% %ExpressLibrary%\dclcxLibraryD11.dpk
set ExpressDataController="%COMPONENTDIR%\DevExpress\ExpressDataController\Packages" %DCC32% %ExpressDataController%\cxDataD11.dpk %DCC32% %ExpressDataController%\cxADOAdaptersD11.dpk %DCC32% %ExpressDataController%\cxBDEAdaptersD11.dpk
set ExpressEditors="%COMPONENTDIR%\DevExpress\ExpressEditors Library 5\Packages" %DCC32% %ExpressEditors%\cxEditorsD11.dpk %DCC32% %ExpressEditors%\cxExtEditorsD11.dpk %DCC32% %ExpressEditors%\dclcxEditorsD11.dpk %DCC32% %ExpressEditors%\dclcxExtEditorsD11.dpk
set ExpressExport="%COMPONENTDIR%\DevExpress\ExpressExport Library\Packages" %DCC32% %ExpressExport%\cxExportD11.dpk
set ExpressBars="%COMPONENTDIR%\DevExpress\ExpressBars 6\Packages" %DCC32% %ExpressBars%\dxBarD11.dpk %DCC32% %ExpressBars%\dxBarDBNavD11.dpk %DCC32% %ExpressBars%\dxBarExtItemsD11.dpk %DCC32% %ExpressBars%\dxBarExtDBItemsD11.dpk %DCC32% %ExpressBars%\dxRibbonD11.dpk %DCC32% %ExpressBars%\cxBarEditItemD11.dpk
%DCC32% %ExpressBars%\dcldxBarD11.dpk %DCC32% %ExpressBars%\dcldxBarDBNavD11.dpk %DCC32% %ExpressBars%\dcldxBarExtItemsD11.dpk %DCC32% %ExpressBars%\dcldxBarExtDBItemsD11.dpk %DCC32% %ExpressBars%\dclcxBarEditItemD11.dpk %DCC32% %ExpressBars%\dcldxRibbonD11.dpk
set ExpressDBTree="%COMPONENTDIR%\DevExpress\ExpressDBTree Suite\Packages" %DCC32% %ExpressDBTree%\dxdbtrD11.dpk %DCC32% %ExpressDBTree%\dxtrmdD11.dpk %DCC32% %ExpressDBTree%\dcldxdbtrD11.dpk %DCC32% %ExpressDBTree%\dcldxtrmdD11.dpk
set ExpressDocking="%COMPONENTDIR%\DevExpress\ExpressDocking Library\Packages" %DCC32% %ExpressDocking%\dxDockingD11.dpk %DCC32% %ExpressDocking%\dcldxDockingD11.dpk
set ExpressFlowChart="%COMPONENTDIR%\DevExpress\ExpressFlowChart\Packages" %DCC32% %ExpressFlowChart%\dxFlowChartD11.dpk %DCC32% %ExpressFlowChart%\dcldxFlowChartD11.dpk
set ExpressLayout="%COMPONENTDIR%\DevExpress\ExpressLayout Control\Packages" %DCC32% %ExpressLayout%\dxLayoutControlD11.dpk %DCC32% %ExpressLayout%\dxLayoutControlcxEditAdaptersD11.dpk %DCC32% %ExpressLayout%\dcldxLayoutControlD11.dpk
set ExpressMasterView="%COMPONENTDIR%\DevExpress\ExpressMasterView\Packages" %DCC32% %ExpressMasterView%\dxMasterViewD11.dpk %DCC32% %ExpressMasterView%\dcldxMasterViewD11.dpk
set ExpressMemData="%COMPONENTDIR%\DevExpress\ExpressMemData\Packages" %DCC32% %ExpressMemData%\dxmdsD11.dpk %DCC32% %ExpressMemData%\dcldxmdsD11.dpk
set ExpressNavBar="%COMPONENTDIR%\DevExpress\ExpressNavBar\Packages" %DCC32% %ExpressNavBar%\dxNavBarD11.dpk %DCC32% %ExpressNavBar%\dcldxNavBarD11.dpk
set ExpressOrgChart="%COMPONENTDIR%\DevExpress\ExpressOrgChart\Packages" %DCC32% %ExpressOrgChart%\dxOrgCD11.dpk %DCC32% %ExpressOrgChart%\dxDBOrD11.dpk %DCC32% %ExpressOrgChart%\dcldxOrgCD11.dpk %DCC32% %ExpressOrgChart%\dcldxDBOrD11.dpk
set ExpressPageControl="%COMPONENTDIR%\DevExpress\ExpressPageControl 2\Packages" %DCC32% %ExpressPageControl%\cxPageControlD11.dpk %DCC32% %ExpressPageControl%\dclcxPageControlD11.dpk
set ExpressPivotGr
rem install completed.
|
请发表评论