你是想手动来完成BDE注册的工作,也就是完成譬如 InstallShield 注册BDE的工作吗?为什么不用 InstallShield 等工具呢?当然,如果想搞懂具体实现除外。
Sorry,我帮不了你……

解决方案 »

  1.   

    installshield中可以设定安装时如何配置注册表的
      

  2.   

    如果希望要程序注册BDE的,也可以。代码可以提供给你,[email protected]
      

  3.   

    配置BDE注册的代码:
    procedure InitBde;
    var
       DataDirectory : string;
       ARegistry     : TRegistry;
    begin
      DataDirectory := ExtractFilePath( Application.ExeName );
      DataDirectory := DataDirectory+'bde\';
      ARegistry     := TRegistry.Create;
      with ARegistry do    {创建一个TRegistry对象实例  }
      begin
        RootKey := HKEY_LOCAL_MACHINE;{指定根键为HKEY_LOCAL_MACHINE}
        if not OpenKey( 'Software\Borland\BLW32', False ) then
        begin
    //      showmessage('key 1'); {写入BDE语言驱动程序所在的目录,即当前程序目录   }
          OpenKey( 'Software\Borland\BLW32', True );
          WriteString( 'BLAPIPATH', DataDirectory );
        end;
        CloseKey;    {关闭主键,同时将信息写入注册表}
        RootKey := HKEY_LOCAL_MACHINE;
        if not OpenKey('Software\Borland\Database Engine',False) then
        begin
    //      showmessage('key 2');
          OpenKey('Software\Borland\Database Engine',True);
          WriteString( 'DLLPATH', DataDirectory );
        end;
        CloseKey;    {关闭主键,同时将信息写入注册表}
        Destroy;     {释放内存  }
      end;
    end;
      

  4.   

    请问cobi:程序中使用别名在注册BDE时会有什么影响?谢谢!