简体   繁体   English

如何安装DWScript

[英]How to install DWScript

I am trying to install DWScript into Delphi XE4: (I did copy the package files into a DelphiXE4 folder and change the package suffix property to XE4...) 我正在尝试将DWScript安装到Delphi XE4中:(我确实将软件包文件复制到了DelphiXE4文件夹中,并将软件包后缀属性更改为XE4 ...)

In the packages folder there are 3 files: 在packages文件夹中,有3个文件:

dwsLibRuntime.dpk
dwsLib.dpk
dwsLibDesignOnly.dpk

I manage to install dwsLibRuntime and then dwsLib (although I get a few warnings which I ignore), but then have problems trying to install dwsLibDesignOnly. 我设法先安装dwsLibRuntime,然后再安装dwsLib(尽管我收到一些忽略的警告),但是尝试安装dwsLibDesignOnly时遇到问题。

Is one meant to install both dwsLib.dpk and dwsLibDesignOnly.dpk, or only one of them?? 是要同时安装dwsLib.dpk和dwsLibDesignOnly.dpk还是仅安装其中之一? (They both reference the same Register unit, so it would seem that only one should be installed). (它们都引用同一个寄存器单元,因此似乎应该只安装一个)。

I just installed dws in the following manner (after downloading using svn and creating a new project directory , \\DelphiX4 , copying the four files from \\DelphiXE3 ): 我只是按照以下方式安装了dws(使用svn下载并创建新的项目目录\\DelphiX4 ,然后从\\DelphiXE3复制四个文件\\DelphiXE3 ):
When you open dwsLib.dproj you should have (in Project Manager, under ProjectGroup1) dwsLibXE3.bpl as your project. 当您打开dwsLib.dproj时,您应该在项目管理器中的ProjectGroup1下将dwsLibXE3.bpl作为您的项目。
In Project Options - Description, Change LIB suffix to XE4 and under Usage options select 'DesignTime and Runtime'. 在“项目选项-描述”中,将LIB后缀更改为XE4,然后在“用法”选项下选择“ DesignTime和Runtime”。 Click OK and your project should now be dwsLibXE4.bpl. 单击确定,您的项目现在应该是dwsLibXE4.bpl。
Right click on dwsLibXE4.bpl and select Build. 右键单击dwsLibXE4.bpl,然后选择“生成”。 (I moved dwsWebUtils.pas from \\Libraries\\SimpleServer to \\Libraries\\SymbolsLib to succeed with the build, adding \\Libraries\\SimpleServer to the search path would be better). (我将dwsWebUtils.pas从\\Libraries\\SimpleServer移到\\Libraries\\SymbolsLib ,以使构建成功,将\\Libraries\\SimpleServer添加到搜索路径会更好)。
After a successful build right click on dwsLibXE4.bpl again and select 'Install'. 成功构建后,再次右键单击dwsLibXE4.bpl并选择“安装”。
The DWScript group should now be available on the Tool Palette. DWScript组现在应该在工具面板上可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM