How to register COM from VS Setup project?
Question
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.
Solution
Well, I have found a solution:
- Run RegAsm.exe with the /regfile option to generate the registry entries.
- Manually import the .reg file into the VS Setup project by viewing the registry, right clicking, and choosing "Import..."
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow