cancel
Showing results for 
Search instead for 
Did you mean: 

For deploying embedded app - registering the datasource

Former Member
0 Kudos
2,124

I am attempting to deploy a Powerbuilder 11.5 Application using SQLAnywhere on the back end. In the AQL Anywhere documentation after the required file list is the instruction to run the followng command

regsvr32 install-dirbin32dbodbc11.dll

I subsitute my directory that actually contains dbodbc11.dll.

regsvr32 install-dirmydirdbodbc11.dll

I get a Load failure message. Specified module could not be found.

  1. can anyone give me the correct syntax?
  2. Do I really need this utility to register the datasource or can I make the registry entries directly?

I am developing on Windows 7, but currently deploying to Windows XP Service pack 3.

Thanks very much, Melvyn Polatchek

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member

While the documented syntax for regsvr32 is to use "regsvr32 /i dll", the /i argument is optional. I just tried it from the commandline without the argument and it works fine.

Sounds to me like there is still something wrong with your path or the set of included files, but you can skip the regsvr32 step altogether and create the registry entries yourself. Regsvr32 is just supposed to be a time saver for you. You can create the registry keys yourself instead.

Former Member
0 Kudos

Hi Tyson and Jeff, Thanks for responding. While I am developing on a 64 bit machine, the deployment target is the XP machine, so there is no conflict there. I do not have access to an installation program that will handle the registry for me and I would like to know how to do it even if I had such access.

I still think it is a matter of syntax. For instance, while the documented syntax is:

regsvr32 install-dirmydirdbodbc11.dll

When I type regsvr32 by itself, in the command window, I get a message indicating that switches are single letter as /i, /a, /u and they are preceded by a slash. I have tried various combinations, but have not found one that clicked. The /i, which is supposedly the install switch, tells me the dll was loaded, but the dll entry point cannot be found.

So my questions remain. 1. What is the proper syntax for this utility? 2. Can I simply make the entries in the registry directly?

The Powerbuildeer side of the documentation does not mention the regsvr utility and simply says to make the registry entries. However, the application does not find the database which is why I started looking into the SQL Anywhere documentation.

Thanks guys.

0 Kudos

Melvyn,

What are you using to deploy your application and database with?? We have the same environment. PowerBuilder application with a SQL Anywhere database.

We are currently using one of the old WISE installers and are working on moving over to InstallAware.

Either way, you select to register the file when its installed, so it's handled under the covers for you on install.

You may want to look at your access rights under the profile you're trying to install the product to. I believe you still need to have administrative rights if you're going to be registering files.

You also might want to look at Microsoft's Dependency Walker. You can select your DLL's and make sure that all the required files are available on the machine you're trying to register the file on.

Let me know if you need some more detail on this.

HTH

Jeff Gibson
Intercept Solutions - Sybase SQL Anywhere OEM Partner
Nashville, TN

Former Member
0 Kudos

Are you deploying on a 64-bit machine?

If so, it's entirely possible you are trying to launch the 64-bit version of regsvr32 when the dll you are trying to register is 32-bit. In this case, you need to use the appropriate executable from the 32-bit SysWOW64 directory under windows:

%WINDIR%\\SysWOW64\\regsvr32.exe