3

I have marked my DLL as vsdraCOM, and I can see it in the registry after installing, but my application does not see the COM interface until I call RegAsm on it manually. Why could this be?

The COM registration does not work on Vista (confirmed myself) and on XP (confirmed by a colleague). Using Visual Studio 2005 on XP.

Nick
  • 13,238
  • 17
  • 64
  • 100

1 Answers1

5

Well, I have found a solution:

  1. Run RegAsm.exe with the /regfile option to generate the registry entries.
  2. Manually import the .reg file into the VS Setup project by viewing the registry, right clicking, and choosing "Import..."
Nick
  • 13,238
  • 17
  • 64
  • 100
  • Nick.I used your method ,but still i have the same problem like guy who asked the question above.It appears in registry ,but the BHO plugin(IE add-on) is not added to the list of IE add-ons.Any idea? – Tady Dec 25 '11 at 16:18
  • @Tady If it appears as a registered CLSID, then you also need to tell IE about the BHO by adding a key with the CLSID to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects. – Nick Dec 27 '11 at 20:16