nickp
Posts: 8
Joined: Tue Jan 10, 2006 12:08 pm

DLL Registration

Hi there,

I am slightly confused as to why AdvancedInstaller attempts to install an OCX after instructing that the file requires registration? What is the benefit of this?

Unfortunately I have an OCX that registers perfectly using regsvr32.exe, but AdvancedIntaller does not allow me to proceed past the "Edit File" dialog, I am instructed that certain dependencies cannot be located, even though they reside in the same folder as the OCX.

Is there any other way I can register / unregister an OCX using AdvancedInstaller? obviously with the correct user priviledges. At current I am using a secondary exe being used as a custom action, but in some rare cases regsvr32.exe is failing (reason unknown). The only reason I can think of is down to the priviledges of the application, at current I have it set to Commit, with executions options set to Commit.

Thanks loads in advance!

Nick.
Mihai
Posts: 38
Joined: Wed Mar 23, 2005 12:19 pm

Hi,

You can try to copy the dependencies into a folder that resides in PATH, or in AdvancedInstaller folder. In this way you may be able to register the OCX file using "Extract Registration Info" from the "Edit File" dialog.

If that don't works, you can try the "Self Regisration" option.

If you can't register the OCX even with that option then it means that it does not exports the "DllRegisterServer" method and you must register it using a custom action (as you actually do).

Regards,

Mihai
Mihai Udrea
Advenced Installer Team

Return to “Common Problems”