English 中文(简体)
第7号,安装的部件隐藏在安装上
原标题:delphi 7, installed component is hidden on installation

i 正在设计一个组成部分,用于<代码>delphi 7,并用于快速安装而无需触及。 IDE i 正在根据这一SO答案,通过,Marjan Venema

    procedure TForm1.Button1Click(Sender: TObject);
    var
      sDelphi7PackageName : string;
      sDelphi7Path,fileSource,fileDest : string;
      sDelphi7packBPL,sDelphi7PathMenuBPL  : string;
    begin
       sDelphi7Path:=ReadRegistryValues( SoftwareBorlandDelphi7.0 ,FALSE, RootDir ,1,TRUE);{<-- returns the  C:Program FilesBorlandDelphi7  }

      {#1. Install .bpl}
      sDelphi7BPL:=sDelphi7Path+ ProjectsBplPack.bpl ;
      WriteValueToRegisTry( SoftwareBorlandDelphi7.0Known   Packages ,FALSE,sDelphi7BPL, Delphi 7 compo Bpl File ); {<-- writes to the registry}

      fileSource:=ExtractFilePath(Application.ExeName)+ PackagescomPack.bpl ;
      fileDest:=sDelphi7BPL;
      CopyFile(PChar(fileSource), PChar(fileDest), False);
      end;

This works fine ![enter image description here][2] C:Program FilesBorlandDelphi7ProjectsBplPack.bpl. but the component installed id hidden

任何人都可以告诉我如何打上<条码>。 <代码>component关于安装?

http://www.ohchr.org。

may be useful:

(1) i 本构成部分的<编码>bpl文档,即直接拷贝至delphi 7目录>C:Program filesBorlandDelphi7 Projects Bpl和修改登记册HKEY_CURRENT_USERSoftwareBorlandDelphi7.0Known Packs

2) the register procedure of the component

 implementation
 procedure Register;
  begin
      RegisterComponents( comp , [Tcomp]);
  end;
最佳回答

In the registry, under HKEY_CURRENT_USERSoftwareBorlandDelphi7.0Palette, find the entry named comp.Hidden and edit it to remove the class name of your component (or delete the entry altogether).

问题回答

暂无回答




相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签