Page 1 of 1
Register Library sometimes fails
Posted: Wed May 16, 2007 7:48 am
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.
Re: Register Library sometimes fails
Posted: Wed May 16, 2007 11:37 am
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,
Posted: Wed May 16, 2007 12:27 pm
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.
Posted: Wed May 16, 2007 3:19 pm
by dmostert2
I used SetCurrentDirectoryA in kernel32.dll, but to no avail
Anything else I can try??
Thanks,
D
Posted: Thu May 17, 2007 7:08 am
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).
Registration Fails
Posted: Thu May 17, 2007 2:28 pm
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.