Unable to register DLL/OCX: LoadLibrary failed

BostjanK
07-19-2003, 01:59 AM
Hi!

I'm trying to install my application that uses database connections on Win98. To do so, I must include MSJRO.dll and MSADOX.dll in the setup package (I'm using Inno Setup 3)

This is a part of a script file (files section):
*******************************
Source: "msjro.dll"; DestDir: "{sys}"; Attribs: system; CopyMode: alwaysskipifsameorolder; Flags: regserver sharedfile
Source: "msadox.dll"; DestDir: "{sys}"; Attribs: system; CopyMode: alwaysskipifsameorolder; Flags: regserver sharedfile
********************************

The installation goes fine, until the setup tries to register those two files - the an error occurs (for each of the two files):

Unable to register DLL/OCX: LoadLibrary failed; code 1157.

Then I try to register the filed manually (with REGSVR32.EXE), but this error occurs:

LoadLibrary("C:\WINDOWS\...\MSJRO.DLL") failed. GetLastError returns 0x00000488


If I choose IGNORE in the setuo, I get TYPE MISMATCH error whenever I use

Set rs = conn.Execute(sSQL)
'rs = recordset
'conn = connection

I would really appreciate your help.

Thanks in advance.
Bostjan

Thinker
07-19-2003, 08:34 AM
These DLLs are dependent on others in the mdac package. Don't try to
include them alone in your setup. You need to include the complete
mdac_typ.exe data access components install.

BostjanK
07-19-2003, 09:23 AM
These DLLs are dependent on others in the mdac package. Don't try to
include them alone in your setup. You need to include the complete
mdac_typ.exe data access components install.
OK. But as the file is over 7 MB in size, I woul like to know which operating systems already have MDAC installed - I presume WinXP and Win 2000, maybe others?

And, how can my app detect, it MDAC is already installed on the machine?

Thanks,
Bostjan

Thinker
07-19-2003, 09:29 AM
Although I can't tell you how it works, I have been told that Inno is
capable of detecting if mdac has already been installed on the computer.
The only win version that I know automatically comes with MDAC installed
is XP (2.7). The problem with that is it doesn't include the jet/access
components and on XP they have to be installed by windows update
(there isn't a downloadable version of the jet sp3 for XP). MDAC versions
2.6/2.7 are smaller than 7mb because they took the jet components out.
(Still over 5mb though.) You will probably have to modify your script to
check out what version of windows it is installing on and act accordingly.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum