Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help please with deploying BDE. 1

Status
Not open for further replies.

delphiman

Programmer
Dec 13, 2001
422
ZA
Having used script downloaded from and Inno 3.07 I get the following exception when I try to deploy the BDE to a target machine
running on W-ME.

"RTL60.BPL not found."

Can anyone please throw some light on this?
 
delphiman,

RTL60.BPL is a run-time package that supports the VCL. It needs to be deployed with the rest of your application and should be installed to a directory available to your application, e.g. the application's directory, WINDOWS\SYSTEM\, or something along those lines. It also needs to be installed before you install components that depend on it.

In short, make sure you install the runtime packages before trying to install BDE.

For more specific information, please see the DELPOY.TXT file in your Delphi install directory (typically C:\Program Files\Borland\Delphi6).

Hope this helps...

-- Lance
 
>RTL60.BPL .... needs to be ....installed to a directory
>available to your application, e.g. the application's
>directory, WINDOWS\SYSTEM\, or something along those lines.


I am using W2K and rtl60.bpl is in C:\WINNT\System32\.

I have tried adding the following line in my Inno 3.07 script

Source: "C:\WINNT\System32\rtl60.bpl"; DestDir: "{tmp}"

Which doesn't produce an exception. But also is of no consequence.
Even if I first manually create c:\WINNT\System32.
rtl60.bpl doesn't end up in it. And I still get "A required .dll rtl60.bpl was not found." exception when I run the Application.

In any event my application must be able to install into any OS.
Including w95, w98, W-ME and W-XP. Which immediately presents a problem if I
want to rely on c:\WINNT\System32.
being present. Because whilst W2K and w-XP have C:\WINNT\System32 this is not the case
with W-ME which has C:\WINDOWS. And if my memory
serves me rightly W95 and w98 have C:\WIN .

So I can't target rtl60.bpl to (necessarily) going into C:\WINNT\System32 anyway.

Added to which I can't expect the user to frigg around creating an approriate directory
manually.

Have you any idea how I can set about having rtl60.bpl installed somewhere
so as to eliminate this exception regardless of which w-OS is being used? And where it
will necessarily be "available to the application" as you say?

>For more specific information, please see the DELPOY.TXT

I have had a look at it but AFAICS there is nothing there
that means anything to a mere mortal.
 
Delphiman,

I haven't used Inno to deploy an application, so I can't give you an exact answer. However, I might be able to offer a few suggestions that might help:
1. By "available to the application," I mean placed in a location that the application can reference, typically somewhere on the path or in the application directory itself.

2. You're right, you can't expect WINNT\SYSTEM32, but this is a problem that nearly everyone who's created an installation script has faced. Indeed, a quick look at the Inno FAQ ( suggests that {sys} points to the SYSTEM (or SYSTEM32) directory. Thus, you should copy the BPL's to DestDir: "{sys}"; (I think).

The reason {tmp} didn't work is simple; %TEMP% is not a directory that Windows searches when looking for files. The details (and order) changes between Windows versions, but it usually searches the current directory, the {win} directory, {sys}, and then the %PATH%.

Hope this helps...

-- Lance
 
>Thus, you should copy the BPL's to DestDir: "{sys}"; (I >think).

Doesn't work unfortunately.

From Jordan Rusell's "Installing BDE (Borland Database Engine)" I read that (having followed the three preceding simple steps)

"Add these lines to your script:
[Files]
Source: "MiniReg.exe"; DestDir: "{tmp}"
Source: "BdeInst.dll"; DestDir: "{tmp}"
[Run]
Filename: "{tmp}\MiniReg.exe"; Parameters: """{tmp}\BdeInst.dll"""

That's it. Using this method, you get around the "certified installer" issue since Borland's own BdeInst.dll is doing the actual file installation and registry entry creation, not Inno Setup.
"

My resulting script appears to work in all other respects except that I get this exception "RTL60.BPL not found."

I have also tried adding the following as the very first line without any effect.

Source: "C:\WINNT\System32\rtl60.bpl"; DestDir: "{sys}"; Flags: ignoreversion





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top