General Application Deployment 常规应用程序部署.docx
cc3260MT.D1.1.1. GeneralApplicationDeploymentC+Builder6applicationsdonotrequirearuntimeinterpreterD1.1.Allyouhavetoprovideisyour.EXEfileandanyD1.1.sorBP1.sthatitcalls.Forsimpleapplicationsyoucandistributeastandalone.EXEfile.Ifyouhaveusedruntimepackageswithyourapplication,besuretoincludeallrequiredBP1.swiththedistribution.IfyoubuildusingthedynamicRun-Time1.ibrary,youwillalsohavetodistributeoneormoreoftheRun-Time1.ibraryD1.1.sCC3260.D1.1.orCC3260MT.D1.1.andthememorymanagerDllsBOR1.NDMM.D1.1.,BCBMM.D1.1.orDE1.PHIMM.D1.1.ApplicationsthatuseMECmayalsoneedBFC42.D1.1.orBFC42D.D1.1.ThoseusingST1.PortwillrequireredistributionofST1.P45.D1.1.and/orST1.PMT45.D1.1.DeployingC+BuilderApplicationsPleasereadthisentirefilebeforedeployingC+Builder6applications,components,orlibraries.ThisfileisprovidedpursuanttotheBorland1.icenseStatementandprovidesinformationondeployingC+Builder6applications.TableofContents1. GeneralApplicationDeployment2. ComponentsandPackages2. 1DistributingCustomPackages2. 2BorlandRuntimePackages2. 3RuntimePackages:EnterpriseEdition2. 4RuntimePackages:ProfessionalEdition2. 5RuntimePackages:PersonalEdition3. 6RestrictionsonC1.XDisplayAPT(Qt.pas)Usage4. TheBorlandDatabaseEngine(BDE)5. ActiveXControls(OCXs)6. SampleImages7. InterBaseDeployment6 .1ApplicationsthatUsethe32-bit1.ocalInterBase7 .2The32-bitFive-userInterBaseServer8. DataSnapApplications(formerlyMTDAS)9. WebSnapApplicationsandInterBase10. VisiBroker11. SQ1.1.inksDeployment(Enterpriseeditiononly)12. JPEGCompressionSoftware13. DataCompression1.ibrary(zlib)14. WindowsCommonControls15. C+BuilderUtilities16. TranslationManagerDistribution17. RemovedorModified"Redistributable"Files1. GeneralApplicationDeploymentC+Builder6applicationsdonotrequirearuntimeinterpreterD1.1.Allyouhavetoprovideisyour.EXEfileandanyD1.1.sorBP1.sthatitcalls.Forsimpleapplicationsyoucandistributeastandalone.EXEfile.Ifyouhaveusedruntimepackageswithyourapplication,besuretoincludeallrequiredBP1.swiththedistribution.IfyoubuildusingthedynamicRun-Time1.ibrary,youwillalsohavetodistributeoneormoreoftheRun-Time1.ibraryD1.1.sCC3260.D1.1.orCC3260MT.D1.1.andthememorymanagerDllsBOR1.NDMM.D1.1.,BCBMM.D1.1.orDE1.PHIMM.D1.1.ApplicationsthatuseMFCmayalsoneedBFC42.D1.1.orBFC42D.D1.1.ThoseusingST1.PortwillrequireredistributionofST1.P45.D1.1.and/orST1.PMT45.D1.1.ForapplicationsthatusetheBorlandDatabaseEngine(BDE),youmustuseaBor1and-certifiedinstallation/deploymentutility,suchasInstallShieldExpress.IfyouuseInstallShield,treat.BP1.(package)filesjustlikeotherD1.1.s.FromtheSetupChecklist,openGroupsandFiles,thenclickAddGroup.Youcancreateagroupcalled“Packages“forBP1.s;toinstallpackagesintheWindowsSystemdirectory,choose<WINSYSDIR>asthedestinationdirectory.(Werecommendinstalling.D1.1.and.BP1.filesinthe<OperatingSystem>SystemorSystem32directory.)Thenclick1.aunchExplorertoselectthe.BP1.filesyouwanttodeploy.IfthelicenseforC+Builderthataccompaniedthisfilewasacquiredasaneducationalorforscholarlypurpose,distributionofanyfilesforanycommercialorinstitutionaluseisprohibited.Performingresearchinaneducationalsettingorproducingcourseworkrequiredinpursuitofadegreeorcertificateofcredentialataneducationalinstitutionispermitted.2. ComponentsandPackages2.1 DistributingCustomPackagesIfyoudistributeC+Builder6packagestootherdevelopers,besuretosupplyboth.BPIandany.1.IBfilestowhichyourpackageslink.Youwillprobablyalsowanttoinclude.OBJand.DCUfilesaswellasdocumentation.PackageCollection(.DPC)files,createdwiththePackageCollectionEditor,offeraconvenientwaytodistributeallthefilesassociatedwithapackageorgroupofpackages.2.2 BorlandRuntimePackagesInaccordancewiththeGeneralTermsThatApplytoCompiledProgramsandRedistributables,youmayredistributeBorland-suppliedruntimepackagesonlyforthepurposeofexecutingapplicationprogramscreatedwithC+Builder.Youmaynotmodifythesepackagesinanyway.Bydefaulttheredistributableruntimepackagesareinstalledinthesystem-filesdirectoryofthecomputer(commonlythisisthewindowssystemonWindows9x,WTNNTSystem32onWindowsNT,2000orXPcomputers).Althoughthissoftwaremayincludepackagesotherthanthoselistedbelow,onlythepackagesidentifiedbelowasredistributablemayberedistributedbyyou.Thepackagefilenamesidentifiedbelowshouldbeconsideredtobecase-insensitive.YoumayNOTredeployBorland-supplieddesign-time-onlypackages.YoumaynotrecompileorredistributeanyBorland-suppliedcomponentsorlibrariesforusebyotherdevelopers.PackagesthatyoudevelopmaynothavethesamenamesasBorland-suppliedpackages.Ifyoudistributecomponentlibrariesorotherpackages,itisrecommendedthatyouavoidusingthedefaultDC1.USR60packagename,sincethiswillcausenamingconflictswithotherdevelopers.2.3RuntimePackages:EnterpriseEditionIfyouarealicenseduserofC+Builder6Enterprise,redistributableruntimepackagesincludethefollowing:adortl60.bplbdecds60.bplbdert160.bplcds60.bpldbexpress60.bpldbrtl60.bpldbxcds60.bplbcb2kaxserver60.bplbcb97axserver60.bpldsnap60.bpldsnapcon60.bpldsnapcrba60.bpdsnapent60.bpldss60.bplibevnt60.bplibxpress60.bplindy60.bplinet60.bplinetdb60.bplinctdbbdc60.bplinetdbxpress60.bplnmfast60.bplmidas.dllqrpt60.bplqtintf.dllrtl60.bplsoaprt160.bplstdvcl40.dlltee60.bplteedb60.bplteeqr60.bplteeui60.bplvc160.bplvcldb60.bplvcldbx60.bplvclie60.bplvcljpg60.bplvcIshlCtrls60.bplvclsmp60.bplvc1x60.bplvisualc1x60.bplvisualdbc1x60.bplwebdsnap60.bplwebsnap61.bplxmlrtl60.bplcc3260.dl1cc3260mt.dllborlndmm.dllbcb11un.dlldelphimm.dllbfc42.dllbfc42d.dllTheruntimepackagesdsnap60.bpl,dsnapcon60.bpl,dsnapcrba60.bpl,dsnapent60.bpl,andwebdsnap60.bplareassociatedwithDataSnap.Assuch,distributionofthesepackagesissubjecttothesamerequirementsasdistributionofDataSnap.Seethefile1.ICENSE.TXTforspecificrightsandlimitationsregardingDataSnapandredistribution.2.4RuntimePackages:ProfessionalEditionIfyouarealicenseduserofC+Builder6Professional,redistributableruntimepackagesincludethefollowing:adort160.bplbdecds60.bplbdert160.bplcds60.bplbcb2kaxserver60.bplbcb97axserver60.bpldbexpress60.bpldbrtl60.bpldbxcds60.bplibevnt60.bplibxpress60.bplindy60.bplinet60.bplinetdb60.bplinetdbbde60.bpinetdbxpress60.bplmidas.dllnmfast60.bplqrpt60.bplqtintf.dllrtl60.bplsoaprt160.bplstdvc140.dl1tee60.bplteedb60.bplteeqr60.bplteeui60.bplvc160.bplvcldb60.bplvcldbx60.bplvc1ie60.bplvcljpg60.bplvclshlctrls60.bplvclsmp60.bplvc1x60.bplvisualclx60.bplvisualdbc1x60.bplxmlrtl60.bplcc3260.dllcc3260mt.dllborlndmm.dllbcbmm.dlldelphimm.dllbfc42.dllbfc42d.dll2. 5RuntimePackages:PersonalEditionIfyouarealicenseduserofC+Builder6Personal,redistributableruntimepackagesincludethefollowing:rt160.bplvc160.bplvcljpg60.bplvclshlctrls60.bplvclsmp60.bplvc1x60.bplcc3260.dllcc3260mt.dllborlndmm.dllbcbmm.dlldelphimm.dllbfc42.dllbfc42d.dll2.6RestrictionsonC1.XDisplayAPI(Qt.pas)UsageC1.XDisplayAPI,theQt.pasinterfacetotheQtruntime,isonlylicensedforuseinVisualC1.XapplicationsoracomponentthatderivesfromTControlintheQControlsunit.AVisualC1.Xapplicationisanapplicationthatusesthe!ApplicationobjectandusesatleastonecomponentderivedfromTControl.YouarenotlicensedtouseQt.pastocreateapplicationsorcomponentsthatexclusivelycalltheQt.pasinterfaces.AseparatecommercialdevelopmentlicensefromTrolltechisrequiredforuseofQt.pasinanymannerotherthanauthorizedabove.3. TheBorlandDatabaseEngine(BDE)C+Builder6applicationsthatusetheBorlandDatabaseEngine(BDE)toeffectdatabaseaccessrequirethatyoudistributetheBDEwiththeapplication.TnaccordancewiththeAdditional1.icenseTermsforBDE,youmaydistributetheBDEfileswithyourapplicationusinganBorland-CertifiedRedistributableInstallprogramsuchasInstallShieldExpressoranothercompliantinstal1program.YoumayredistributeonlythoseBDEfilesselectedbytheBorland-certifiedinstallationprogram.Additionally,BorlandsuppliesaBDEmergemodulethatisanapprovedmechanismfordeployingBDE.ThismodulemaybeusedwithanyWindowsInstaller(MSI)developmenttool(suchasTnstallShieldforWindowsInstaller,WiseforWindowsInstallerandothers).ThemergemoduleincludesthebaseBDEandSQ1.1.inksappropriatetotheversionofC+Builderpurchased.SeetheBDE1.inksdeploymentnotesinthefileBDEDEP1.OY.TXT(foundintheBDEdirectory)forspecificinformationregardingdeployingtheBDEwithdatabaseapplicationscreatedinC+Builder.4. ActiveXControls(OCXs)C+BuilderincludesActiveXControls(OCXs)foruseinyourapplications:oChartFX,copyrightSoftwareFXInc.oVisualSpellerControl,copyrightVisualComponents,Inc.oFormulaOne(spreadsheet),copyrightVisualComponents,Inc.oFirstImpression(VtChart),copyrightVisualComponents,Inc.TheversionofeachoftheseOCXsshippedwithC+BuildermayberedistributedincustomC+Builderapplications.SuchredistributionissubjecttotheGeneralTermsThatApplytoCompiledProgramsandRedistributables.5. SampleImagesC+Builderincludesalibraryofredistributablebitmapimagesnormallyinstalledinthesubdirectory:ProgramFilesCommonFilesBorlandSharedImagesC+BuilderalsoincludesadatabaseEVENTS.DBwithlicensedimagesfromPhotoDisc.TheimagesinthisdatabasearecopyrightPhotoDisc,Inc.1995andmaynotberedistributed.6. InterBaseDeployment6. 1ApplicationsthatUsethe32-bit1.ocalInterBaseC+BuilderEnterpriseandProfessionaleditionsincludeadevelopmentlicensefor1.ocalInterBase.Theydonot,however,includerightsfordeploymentorredistributionofanyInterBasecomponent.TodeployInterBaseapplications,youmustpurchaseDeploymentKits,availableseparatelyfromBorland.FormoreinformationonInterBase,seeBorland1sWorldWideWebsiteathttpww¼,orcontactyourlocalBorlandsalesoffice.6.2The32-bitFive-userInterBaseServerC+BuilderEnterprisecontainsadevelopmentlicenseforthe32-bitfive-userInterBaseServerforWindows.PurchaseofC+Builder,however,doesnotincludedeploymentorredistributionrightsforanyInterBaseServerfiles.CustomerswhowishtodeployInterBaseServerapplicationsmustseparatelypurchaseindividualcopiesoftheInterBaseServer,availableseparatelyfromBorland.FormoreinformationonInterBase,seeBorland*sWorldWideWebsiteathttp:WWW,orcontactyourlocalBorlandsalesoffice.7. DataSnapApplications(formerlyMIDAS)TheC+Builder6EnterpriseeditionincludesadevelopmentlicensefortheDataSnap.DataSnapcomprisestheBusinessObjectBroker,theRemoteDataBroker,andtheConstraintBrokerManager(SQ1.Explorer).PurchaseofC+BuilderEnterpriseedition,however,doesnotincludedeploymentrightsforthissoftware.CustomerswhowishtodeployapplicationsthatuseDataSnapmustpurchaseaseparatelicenseforeachserveronwhichDataSnapisinstalled.Handletheinstallationoftheexecutableandrelatedfilesforamulti-tierapplicationthesameasforgeneralapplications.SomeDataSnaPfilesmayneedtobeinstalledontheclientcomputerandothersontheservercomputer.FortheRemoteDataBrokerandConstraintBrokerportionsofDataSnap,thefileMIDAS.D1.1.mustbeinstalledontotheclientcomputerandregisteredwithWindows.Ontheservercomputer,thefilesMIDAS.D1.1.andSTDVC1.40.D1.1.mustbeinstalledandregisteredfortheRemoteDataBrokerandDBEXP1.OR.EXEfortheConstraintBroker.InstallationprogramssuchasInstallShieldExpressautomatetheprocessofregisteringtheseD1.1.s.TomanuallyregistertheD1.1.s,usetheTRegSvrdemoapplicationortheMicrosoftutilityREGSERV32.EXE(notincludedwithallWindowsversions).AserverdeploymentlicenseisnotrequiredfordeployingMIDAS.D1.1.andSTDVC1.40.D1.1.inanapplicationinwhichtheclientandserverresideonthesamemachine.ThesetwofilesaretheClientDatasetRedistributablesreferredtointhe1.icenseStatement.FormoreinformationonDataSnap,seeBorland,sWorldWideWebsiteattheUR1.below,orcontactyourlocalBorlandsalesoffice.http:WWdatasnap8. WebSnapApplicationDeploymentIfyoucreatedyourapplicationasaWebAppDebuggerexecutable,youwillfirsthavetoconvertittoanISAPID1.1.,CGIexecutable,orApacheSharedModule.TodeployyourD1.1.orEXEtoawebserver,youwillhavetoplaceyourapplicationinadirectorythathasexecutablerights.WithInternetInformationServices(IIS),thisistypicallyC:InetpubScripts.ForeachWebModuleinyourapplication,youmustcopytheassociatedHTM1.filetothesamedirectoryasyourEXE/D1.1.Bydefault,theassociatedHTM1.fileissimplytheWebModuleunit,snamewith.htmlastheextension.Additionally,youmustregisterbothWebBrokerScript.tlbandstdvcl40.dllonthewebserver.T1.BfilescannotberegisterdwiththeMicrosoftregsvr32program,butmustberegisterdwithtregsvr,locatedintheC+Builderbindirectory.Youcancopytregsvrtothewebserver,andregisterthefileswith:tregsvrWcbBrokerScript.tlbandtregsvrstdvcl40.dllFinally,WebSnapapplicationsrequiretheMicrosoftActiveScriptingEngineinordertowork.ItisincludedwithInternetExplorer5andlater,andisinstalledbydefaultonWindows2000orlatermachines.TodownloadtheScriptingEngine,visit:scripting9. VisiBrokerThisproductdoesnotincludedeploymentrightsfortheVisiBrokerCORBAORB.WhendeployinganapplicationrequiringCORBAservices,youmustfirstobtainVisiBrokerDeploymentlicenses,availableseparatelyfromBorland.FormoreinformationonVisiBroker,seeBorland5sWorldWideWebsiteattheUR1.below,orcontactyourlocalBorlandsalesoffice.htip:WWvisibroker10. SQ1.1.inksDeployment(Enterpriseeditiononly)SeetheBDE/SQ1.1.inksdeploymentnotesinthefileBDEDEP1.OY.TXT(foundintheBDEdirectory)forspecificinformationregardingredeployingtheSQ1.1.inkssoftware.(SQ1.1.inksisavailableonlywiththeC+Builder6Enterpriseedition.)11. JPEGCompressionSoftwareTheC+BuilderCDincludessoftwareforJPEGimagecompressionanddecompression.ThissoftwareanditssourcecodearedistributedbytheIndependentJPEGGroupandcopyrightedbyThomasG.1.ane.Forconditionsofdistributionanduse,seetheREADMEfilethataccompaniesthesoftware.12. DataCompression1.ibrary(zlib)TheC+Buildermediaincludeszlibdatacompressionsoftware.ThissoftwareanditssourcecodearecopyrightedbyMarkAdlerandothersandmaybeusedanddistributedsubjecttotheconditionsspecifiedinthefilezlib.h.13. WindowsCommonControlsTheWindowscommoncontrolsareprovidedinaMicrosoft-approvedinstallationfile,50comupd.exe.Thisfilecontainsthecommoncontrolslibrary,comctl32.dll.Theonlyapprovedmethodforupdatingend-usercomputersisbytheuseof50comupd.exe.ThisfilecanberedistributedwithapplicationsbuiltusingC+Builder.Noothermethodispermitted.14. C+BuilderUtilitiesTheutilityprogramsincludedwithC+Builder6mayNOTberedistributedwithdeployedapplications.Theseutilityprogramsinclude,butarenotlimitedto:SQ1.Explorer(Enterpriseonly)SQ1.Monitor(Enterpriseonly)DatabaseExplorer(ProfessionalandEnterpriseonly)DatabaseDesktop(ProfessionalandEnterpriseonly)Openhelp(ProfessionalandEnterpriseonly)PackageCollectionEditor(ProfessionalandEnterpriseonly)WinSight(ProfessionalandEnterpriseonly)DCC32GREPTDumpT1.ibImpImageEditorPleasecontactBorlandsalesforinformationregardingdistributionoftheTranslationManagerinexcessofthequantitygrantedintheC+Builderlicense.15. TranslationManagerDistributionSubjecttotherestrictionsbelow,andadditionalrestrictionsthatmayappearinthelicense,txtfileaccompanyingyourlicensedversionofC+Builder,theTransla