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-td2395700.html
http://blogs.microsoft.co.il/blogs/yanush/archive/2008/09/22/howto-use-regsvr32-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

Reply via email to