[yunqa.de] Re: Install DIHTMLParser with DISQlite?

  • From: Artur Aschmoneit <ArturAschmoneit@xxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Sat, 26 Dec 2009 15:44:09 +0100

Ralf,
thank you very much!
Artur

Delphi Inspiration schrieb:
> At 18:21 22.12.2009, Artur Aschmoneit wrote:
>
>   
>> I cannot install DIHTMLParser because DISQLite contains unit DISystemCompat.
>>     
>
> Since Delphi 2009, DISystemCompat.pas is included in most of my products to 
> prodivde backward compatability routines (UTF-8 conversion, for example) and 
> types (UnicodeString, etc.) to older Delphi version. In gerneral, sharing 
> files between libraries is a good thing: It avoids redundancies, keeps the 
> footprint low, and propagates bug fixes.
>
> Following this concept, Delphi rejects multiple copies of the same units in 
> its IDE packages. After all, this is the purpose of packages: Include 
> everything once only! So Delphi is right in letting us know if a new package 
> contains a file already installed in another package. Unfortunately, this is 
> confusing to some users as they do not know how to resolve this conflict.
>
> The solution is to remove the explicitly needed duplicate unit from any 2nd 
> or 3rd packages: So if you have already installed DISQLite3, open the 
> DIHtmlParser package, select DISystemCompat.pas in the project manager and 
> remove it via the toolbar button or context menu. Next rebuild and install 
> the package. Delphi should now detect that DISystemCompat.pas is already 
> contained in the DISQLite3 package and suggest to add it to the DIHtmlParser 
> package. Confirm the notification dialog and DIHtmlParser should install 
> successfully. (Just tested again with DISQLite3 2.1.2 and DIHtmlParser 5.1.1 
> on Delphi 7 and Delphi 2010.)
>
> The above method does not care if the two products are extracted into 
> different directories. But if you do so, you are left with two copies of 
> DISystemCompat.pas. Instead, I recommend to extract both products into the 
> same, single directory. Start with the "oldest" product (DISQLite3 at the 
> time of this writing) and finish off with the most recent. This will 
> overwrite existing versions of duplicate files with newer ones, ensuring 
> single copies only which are always the latest version.
>
> Ralf  
>
> _______________________________________________
> Delphi Inspiration mailing list
> yunqa@xxxxxxxxxxxxx
> //www.freelists.org/list/yunqa
>
>
>
>   

Other related posts: