Thanks Rob, your suggestion was very helpful. I have to add InstallFiles element in InstallExecuteSequence to fix my problem, otherwise it will register the dll before it copy to the target machine.
<InstallExecuteSequence> <InstallFiles /> <SelfRegModules /> <SelfUnregModules /> </InstallExecuteSequence> Thank you very much ________________________________ From: Rob Mensching <rob.mensch...@microsoft.com> To: General discussion for Windows Installer XML toolset. <wix-users@lists.sourceforge.net> Sent: Friday, 16 January, 2009 2:59:42 AM Subject: Re: [WiX-users] Unable to register COM dll in Merge Module 1. SelfReg is bad. If possible, I'd highly recommend using the built in tables instead. 2. If you didn't create the Merge Module, it's possible it does not include its required actions. In this case, you'd need to add the <SelfRegModules/> and <SelfUnRegModules/> elements (no attributes necessary) to your <InstallExecuteSequence/> element. -----Original Message----- From: puyo puy [mailto:puyo...@yahoo.com] Sent: Wednesday, January 14, 2009 17:18 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Unable to register COM dll in Merge Module Hello everyone, I'm try to compile a msm(Merge Module) into my existing MSI installer. In this msm file only got two files(1 xml and 1 dll COM). This msm suppose to install the files in the target machine and registr(regsvr32) the COM dll. I used the following scripts to create the msi. The files get installed in target machine but the COM dll not get register. I try to use the same msm file to create another MSI installer in VS 2005, all files get installed and the COM dll get registered. Am I missed something? <?xml version="1.0"?> <!-- Original contributed by Marc Borgers. --> <!-- Paths and filenames changed by Gabor Deak Jahn. --> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="65379C73-E385-41CA-88AC-18BD8785F7C2" Name="Testing" Language="1033" Version="1.0.0.0" Manufacturer="CompanyName" UpgradeCode="153DC494-047E-4D60-9EDF-DE20C52F5DA1"> <Package Manufacturer="CompanyName" InstallerVersion="200" Compressed="yes" /> <Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" /> <Property Id='DiskPrompt' Value="Testing" /> <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='ProgramFilesFolder' Name='PFiles'> <Merge Id="Testing" Language="1033" SourceFile="Test.msm" DiskId="1" /> <Directory Id='CompanyName' Name='CompanyName'> <Directory Id='INSTALLDIR' Name='Testing' > </Directory> </Directory> </Directory> </Directory> <Feature Id="Msm" Title="Msm" Level="1"> <MergeRef Id="Testing" /> </Feature> </Product> </Wix> Thank you in advance. Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarterinbox ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarterinbox ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users