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.
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..."
来源:https://stackoverflow.com/questions/12807/how-to-register-com-from-vs-setup-project