DLL registration failures - 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!

bob30
Posts: 3
Joined: Wed Mar 18, 2009 5:43 pm

DLL registration failures

I have an ActiveX dll in my installation project. In AI dll file properties tab the "Auto register file (DLL, OCX, etc)" checkbox is set, "Extract registration info from native library" and "Enabled" options are selected.

Recently we noticed that installed dll is not registered properly, it starts to work only after registering it manually with regsvr32. It seems like installer writes wrong dll registration info into registry. I've done a screenshot showing registry information that is added by manually called regsvr32:
Image

I also extracted dll registration info with WiX tool heat.exe and compared it with dll reg info in aip file. Info is different!!! AIP does not contain essential info.

AIP fragment related to my dll:

Code: Select all

  <COMPONENT cid="caphyon.advinst.msicomp.MsiRegsComponent">
    <ROW Registry="AppID_1" Root="0" Key="AppID\MyActiveX.DLL" Name="AppID" Value="[\{]6866632B-EC45-41BF-B680-63BDA9AA1B72[\}]" Component_="MyActiveX.dll"/>
    <ROW Registry="AppID_2" Root="0" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}" Name="AppID" Value="[\{]6866632B-EC45-41BF-B680-63BDA9AA1B72[\}]" Component_="MyActiveX.dll"/>
    <ROW Registry="Control" Root="0" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\Control" Name="+" Component_="MyActiveX.dll"/>
    <ROW Registry="DD95801_9882_11CF_9FA9_00AA006C42C4" Root="0" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\Implemented Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}" Name="+" Component_="MyActiveX.dll"/>
    <ROW Registry="DD95802_9882_11CF_9FA9_00AA006C42C4" Root="0" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\Implemented Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}" Name="+" Component_="MyActiveX.dll"/>
    <ROW Registry="ThreadingModel" Root="0" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\InprocServer32" Name="ThreadingModel" Value="apartment" Component_="MyActiveX.dll"/>
    <ROW Registry="_" Root="0" Key="AppID\{6866632B-EC45-41BF-B680-63BDA9AA1B72}" Value="MyActiveX" Component_="MyActiveX.dll"/>
    <ROW Registry="__1" Root="0" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}" Value="CMyActiveXControl Object" Component_="MyActiveX.dll"/>
    <ROW Registry="__10" Root="0" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\VersionIndependentProgID" Value="MyActiveX.MyActiveXControl" Component_="MyActiveX.dll"/>
    <ROW Registry="__11" Root="0" Key="MyActiveX.MyActiveXControl" Value="CMyActiveXControl Object" Component_="MyActiveX.dll"/>
    <ROW Registry="__12" Root="0" Key="MyActiveX.MyActiveXControl\CLSID" Value="[\{]7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30[\}]" Component_="MyActiveX.dll"/>
    <ROW Registry="__13" Root="0" Key="MyActiveX.MyActiveXControl\CurVer" Value="MyActiveX.MyActiveXControl.1" Component_="MyActiveX.dll"/>
    <ROW Registry="__14" Root="0" Key="MyActiveX.MyActiveXControl.1" Value="CMyActiveXControl Object" Component_="MyActiveX.dll"/>
    <ROW Registry="__15" Root="0" Key="MyActiveX.MyActiveXControl.1\CLSID" Value="[\{]7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30[\}]" Component_="MyActiveX.dll"/>
    <ROW Registry="__2" Root="0" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\InprocServer32" Value="[#MyActiveX.dll]" Component_="MyActiveX.dll"/>
    <ROW Registry="__3" Root="0" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\MiscStatus" Value="0" Component_="MyActiveX.dll"/>
    <ROW Registry="__5" Root="0" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\MiscStatus\1" Value="131473" Component_="MyActiveX.dll"/>
    <ROW Registry="__6" Root="0" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\ProgID" Value="MyActiveX.MyActiveXControl.1" Component_="MyActiveX.dll"/>
    <ROW Registry="__7" Root="0" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\ToolboxBitmap32" Value="[#MyActiveX.dll], 1" Component_="MyActiveX.dll"/>
    <ROW Registry="__8" Root="0" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\TypeLib" Value="[\{]6866632B-EC45-41BF-B680-63BDA9AA1B72[\}]" Component_="MyActiveX.dll"/>
    <ROW Registry="__9" Root="0" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\Version" Value="1.0" Component_="MyActiveX.dll"/>
  </COMPONENT>
WiX extracted:

Code: Select all

<RegistryValue Root="HKCR" Key="AppID\MyActiveX.DLL" Name="AppID" Value="{6866632B-EC45-41BF-B680-63BDA9AA1B72}" Type="string" Action="write" />
<RegistryValue Root="HKCR" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\Control" Value="" Type="string" Action="write" />
<RegistryValue Root="HKCR" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\Implemented Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}" Value="" Type="string" Action="write" />
<RegistryValue Root="HKCR" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\Implemented Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}" Value="" Type="string" Action="write" />
<RegistryValue Root="HKCR" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\MiscStatus\1" Value="131473" Type="string" Action="write" />
<RegistryValue Root="HKCR" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\MiscStatus" Value="0" Type="string" Action="write" />
<RegistryValue Root="HKCR" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\ToolboxBitmap32" Value="[!MyActiveX.dll], 1" Type="string" Action="write" />
<RegistryValue Root="HKCR" Key="CLSID\{7674AD78-C0D8-4C58-AC90-7CD8A6A3AF30}\TypeLib" Value="{6866632B-EC45-41BF-B680-63BDA9AA1B72}" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="Software\Classes\Interface\{DE12B43D-A6C8-4390-A23A-FA2159C17773}\ProxyStubClsid" Value="{00020424-0000-0000-C000-000000000046}" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="Software\Classes\Interface\{DE12B43D-A6C8-4390-A23A-FA2159C17773}\ProxyStubClsid32" Value="{00020424-0000-0000-C000-000000000046}" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="Software\Classes\Interface\{DE12B43D-A6C8-4390-A23A-FA2159C17773}\TypeLib" Value="{6866632B-EC45-41BF-B680-63BDA9AA1B72}" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="Software\Classes\Interface\{DE12B43D-A6C8-4390-A23A-FA2159C17773}\TypeLib" Name="Version" Value="1.0" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="Software\Classes\Interface\{DE12B43D-A6C8-4390-A23A-FA2159C17773}" Value="IMyActiveXControl" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="Software\Classes\Interface\{DEAB4672-760C-4B51-8D16-908D2B32DD88}\ProxyStubClsid" Value="{00020420-0000-0000-C000-000000000046}" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="Software\Classes\Interface\{DEAB4672-760C-4B51-8D16-908D2B32DD88}\ProxyStubClsid32" Value="{00020420-0000-0000-C000-000000000046}" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="Software\Classes\Interface\{DEAB4672-760C-4B51-8D16-908D2B32DD88}\TypeLib" Value="{6866632B-EC45-41BF-B680-63BDA9AA1B72}" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="Software\Classes\Interface\{DEAB4672-760C-4B51-8D16-908D2B32DD88}\TypeLib" Name="Version" Value="1.0" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="Software\Classes\Interface\{DEAB4672-760C-4B51-8D16-908D2B32DD88}" Value="_IMyActiveXControlEvents" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="Software\Classes\TypeLib\{6866632B-EC45-41BF-B680-63BDA9AA1B72}\1.0\0\win32" Value="[!MyActiveX.dll]" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="Software\Classes\TypeLib\{6866632B-EC45-41BF-B680-63BDA9AA1B72}\1.0\FLAGS" Value="0" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="Software\Classes\TypeLib\{6866632B-EC45-41BF-B680-63BDA9AA1B72}\1.0\HELPDIR" Value="" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="Software\Classes\TypeLib\{6866632B-EC45-41BF-B680-63BDA9AA1B72}\1.0" Value="MyActiveX 1.0 Type Library" Type="string" Action="write" />
Where is the problem? How do I fix it? Thanks in advance.
Last edited by bob30 on Mon Oct 05, 2009 3:00 pm, edited 1 time in total.
bob30
Posts: 3
Joined: Wed Mar 18, 2009 5:43 pm

Re: DLL registration failures

It seems I found cause. Installer is built on Vista machine and registration fails on XP SP3 machine. Using registry monitor tool I figured out that on XP regsvr32 tool writes more info into registry than regsvr32 run on Vista. So, registration info extracted by AI on Vista is not sufficient to register a dll on XP. The solution is to create aip file on XP, set dll registration synchronization to "Disabled" and after that use this file to build installer on Vista. Pretty weird workaround i think.

Would support comment this?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: DLL registration failures

Hello,

We have found the cause of this behavior. An improvement will be released with a future version of Advanced Installer. Thank you for bringing this to our attention. In the mean time you can use regsvr32 as a "Launch File or Open URL" custom action to properly register your DLL.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: DLL registration failures

Hello,

This bug has been fixed now, with the release of Advanced Installer 7.3.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”