Class not registered - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bvelke
Posts: 67
Joined: Fri Jun 10, 2011 6:36 am

Class not registered

I'm having a lot of occurrences of this error when running my application. Thousands of people have successfully installed without any error -- but hundreds have gotten this error with respect to one OCX/DLL or another. At least six OCX/DLLs have triggered the error for different users but there is no discernible pattern based on OS or other environmental factors. In almost every case, my OCX/DLLs are autoregistered with "self register native library".

In almost every case, manually unregistering the OCX/DLL and registering it again (with regsvr32 and a command window) fixes the problem -- but that's a lot of tech support for hundreds of users!

Why is this registration process so unreliable and what can I do to fix it? Again, the current process has worked for thousands of installations but roughly 5% are getting registration failures.

In one case, I'm running a custom action to register an EXE with /regserver and I don't have any reports of that processing failing. Should I be doing the same thing with every other OCX/DLL that needs to be registered? Is that process more reliable across XP->Vista and 32/64bit?

Very frustrating.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Class not registered

Hi,

I'm afraid we also could not establish the source of the problem, as we have talked to other users that complained about this problem. The workaround suggested by us was exactly the one you are using for registering the EXE, and it has worked without any problems, here we explain how to configure the custom action:
http://www.advancedinstaller.com/forums ... 924#p20611

We shall continue investigating on this problem an hopefully be able to establish a pattern that will allow us to reproduce it, thus being able to debug it and see what fails.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”