http://msdn.microsoft.com/en-us/library/bb204770(VS.85).aspx#no_selfreg http://msdn.microsoft.com/en-us/library/aa371608.aspx
As Phil recommends, use heat.exe to extract the COM registration information from your DLL's and/or OCX's. It is very good at doing this & the generated code should need only a few paths fixed (if only it handled executable COM servers too it'd be perfect). You can then add the generated fragment to your project, build & it should be good to go. Good luck. Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Wilson, Phil [mailto:phil.wil...@wonderware.com] Sent: 16 April 2009 01:44 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Fails to register a dll that depends on VC9 runtime You can't guarantee the order in which files in your MSI file will get installed, so you can't be sure that the VC 9 runtime is installed before your COM Dlls try to self-register. So it's not really surprising that at the end of the install it will work (because now all the files are there). You *can* guarantee the order on Vista and later - the VC 9 runtime definitely *won't* be installed when your VC 9 tries to self-register. Somewhere in the archives here and elsewhere (the Windows Installer Team blog) you'll find remarks on the evil of self-registration, and now you see why. You should extract the COM registration and add it to your setup (Heat.exe). Other solutions that people have used are static links to the C runtime Dlls or making the VC redist a prerequisite to running the install. Phil Wilson -----Original Message----- From: Taresh Parekh [mailto:tpar...@nvidia.com] Sent: Wednesday, April 15, 2009 12:19 PM To: 'wix-users@lists.sourceforge.net' Subject: [WiX-users] Fails to register a dll that depends on VC9 runtime Hi there, We've created a Wix based installer that has a few COM dlls that use VC 9.0 runtime dlls. We've included the VC9 runtime merge modules in our product.wxs file & it even installs the merge modules. But it fails to self register the COM dlls. Surprisingly if we ignore the failure & complete the installation we are able to register the dll manually (using regsvr32). I've seen some posts where self registration is discouraged but I haven't been able to find a fix. http://n2.nabble.com/DLL-failing-to-register-on-a-SeflRegCost-file-td239 5700.html http://blogs.microsoft.co.il/blogs/yanush/archive/2008/09/22/howto-use-r egsvr32-exe-with-wix.aspx Already spent a few days to figure out a fix so any help would be appreciated. ------------------------------------------------------------------------ ----------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ------------------------------------------------------------------------ ----------- ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------ ------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users