stevo.zilik
Posts: 42
Joined: Thu Jul 19, 2007 1:39 pm

register COM. What am I doing wrong?

Hi,

I want to register a COM dll Local Server created in VS6 C++ during installation.

I add the .dll file to COM as New Class , set Context as LocalServer32. After installation, COM is NOT registered. What's wrong?

So i've solved it by creating custom action, where regsvr32.exe /s file.dll is run and this works.

But now when Vista comes, there is some issue with regsvr32.exe, so I suppose u guys have figured out how to do this under Vista, so using 'your way' is more comfortable for me :)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that the "COM" page can be used by advanced users who need to configure in detail the COM file.

In order to register a COM dll you can add it in the "Files and Folders" page, double-click it, check the "Auto register file (DLL, OCX, etc.)" option and select the "Extract Registration Info From Native Library" sub-option.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevo.zilik
Posts: 42
Joined: Thu Jul 19, 2007 1:39 pm

thanx.

however, it seems that your are facing same issue under Vista like me. It's not working because of some security setting that does not allow to register that .dll .
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please test this with a Per-machine installation and administrative rights. Also, you can try to use the "Self register native library" option instead of "Extract Registration Info From Native Library".

If the problem persists then please send us a working test case (the AIP, the DLL and it's dependencies and the resulted MSI) to support at advancedinstaller dot com so we can investigate this issue.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevo.zilik
Posts: 42
Joined: Thu Jul 19, 2007 1:39 pm

Hi,

"Self register native library" worked perfectly, thank you :) .

Return to “Common Problems”