Re: Installation Problems with COM Interop



pagates,

You said that you are using this "control" inside of VB6. By that, do
you mean an ActiveX control? If so, you should be warned that MS doesn't
support exporting ActiveX controls from .NET.

That being said, the registry settings are created when you run the
assembly through regasm, which will read the attributes and create the
assembly. That being said, you probably need to direct InstallShield to do
the same, assuming it doesn't have any facility to do it already.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"pagates" <pagates@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6B072D4C-2CF7-4840-8F89-FC330B3F7726@xxxxxxxxxxxxxxxx
> Hello All,
>
> I have created a C# project that sets "Register for COM Interop" to true,
> and sets the ProgId and Guid attributes for the class. I then use this
> control inside VB6.
>
> This all works correctly on my development machine (oh no, one of those!),
> creating a DLL and a tlb on each compile, and setting the entries in the
> registry. It also appears to work correctly on a separate Build machine,
> where the output then gets packaged for installation using InstallShield
> 11.
> The .NET output gets packaged in a merge module, which is then included in
> a
> number of installations (both .NET and COM).
>
> When it gets installed, there are no installation errors. However, the
> registry settings (ProgID and CLSID, for example) are not being set, and
> therefore the control cannot be seen from a COM-based project using late
> binding. It works fine for a .NET test container, but since that's not
> registry-dependant, I am not surprised.
>
> I am not sure if this is a problem with the way I am setting up
> InstallShield, if there is an InstallShield issue, or if it is in the .NET
> code itself.
>
> If anybody has any ideas or experience with this, I'd appreciate any
> ideas.
>
> Thanks,
> pagates


.



Relevant Pages

  • Re: Limited user and power options
    ... Export a copy of your Registry settings (or at least the parts you are ... "You may need to adjust the permissions in the Registry for this to ... give Full Control to REGISTERED ...
    (microsoft.public.windowsxp.general)
  • Re: Registration of a DLL - can I modify it from HKLM to HKCU?
    ... Installshield will read the registry settings for a dll and apply them to HKEY_CURRENT_USER itself, so the dll never self registers. ...
    (microsoft.public.vb.general.discussion)
  • RE: LPR Problems
    ... Important This article contains information about modifying the registry. ... Windows NT computer that is running the Line Printing Daemon (LPD) ... The LPD service can be reconfigured to ignore the format control command ... Configuring SimulatePassThrough for all printers in Windows XP Professional ...
    (microsoft.public.win2000.printing)
  • Re: Edit MSConfig "Services" menu
    ... Microsoft Windows XP - SC: ... retrieves and sets control information about services. ... To do this manually (registry editing), ... Registry Backup and Restore for Windows ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: Dolby Digital from a K8V X
    ... for my particular SoundMax AD1985 chip and found those options.) ... the volume control. ... There is an INF file in there. ... You might check your registry and see whether those variables appear ...
    (alt.comp.periphs.mainboard.asus)