The recommended way now is typically to run heat.exe to "harvest" the com registration information out of your DLL. This way it won't actually run the code from the DLL at install-time (which is more likely to fail, won't handle all of MSI's transactionality appropriately, and is generally a non-recommended solution) and instead will figure out what exactly what registry keys your DLL needs, and put that information into the MSI (the recommended, more robust way).
Generally you run the tool something like this: Heat file -template:fragment file.dll -out fragment.wxs This should generate some registry, etc. fragments which you can reference from the rest of your authoring via ComponentRef or ComponentGroupRef elements. -----Original Message----- From: s...@pacaccess.com [mailto:s...@pacaccess.com] Sent: Tuesday, March 23, 2010 2:49 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Registering a COM DLL I'm moving from a Visual Studio Deployment Project to WiX. In my old visual studio deployment project I'm installing a DLL and registering it via setting the Register property to vsdrfCOMSelfReg, and I wish to do the same thing with WiX. I didn't see anything about registering COM DLLs in the WiX documents, but after searching I found a page on registering a COM DLL: http://blogs.msdn.com/robmen/archive/2004/04/28/122491.aspx Within the blog the author says to use a AssemblyRegisterComInterop property in a file node: <File Id='TestAssemblyProductFile' Name='assembly.dll' Assembly='.net' AssemblyRegisterComInterop='yes' KeyPath='yes' DiskId='1' /> This must have been for an older version of WiX because WiX3 doesn't seem to have this. Are there any tutorials on how to have WiX register a COM DLL? Thanks, Jeff ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users