Register Library sometimes fails

Got a problem you cannot solve? Try here.
Post Reply
dmostert2
Posts: 23
Joined: Fri May 11, 2007 6:09 am

Register Library sometimes fails

Post by dmostert2 »

Hi,

I've stumbled upon a funny problem.

Some of my Register Library Commands fail. But the same file works with regsvr32?

Any help / ideas?

Thanks,
D.
swarovski
Posts: 109
Joined: Mon Apr 16, 2007 8:32 pm

Re: Register Library sometimes fails

Post by swarovski »

dmostert2 wrote:Hi,

I've stumbled upon a funny problem.

Some of my Register Library Commands fail. But the same file works with regsvr32?

Any help / ideas?

Thanks,
D.
Me 2. I have to use regsvr32 for some of my components. too,
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Do you think maybe your libraries need their current folder set correctly? You may want to change the current directory to the library folder before calling Register Library.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
dmostert2
Posts: 23
Joined: Fri May 11, 2007 6:09 am

Post by dmostert2 »

I used SetCurrentDirectoryA in kernel32.dll, but to no avail :(

Anything else I can try??

Thanks,
D
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Not really...you do have two other options available - check the self registering option, or simply capture the registration data into your own setup in the registry view (use the import option).
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
SteveX
Posts: 22
Joined: Fri Apr 13, 2007 2:17 pm

Registration Fails

Post by SteveX »

@dmostert2

I've had very bad luck using the self registration option. This also happens with other installers I have tried so I believe it has something to do with the specific OCX/DLL and it's use with the Windows Installer - not Installaware. I have since given up on using it all together and am using the Import Option with solid results.

...that was one of the reasons I migrated from Wise to Installaware, because with Wise there is no easy work around to this problem.
Just wish I could nail down the exact cause, but the problem is more predominent on Vista and seems to be related to COM objects that contain no UI elements, at least in my case that has been the common factors.
Post Reply