You're working way too hard at this, there is an attribute on the <File> element that takes care of this for you. Here is an example:
<File Id='SOME_DLL' Name=Some.dll' KeyPath='yes' Assembly='.net' Source='C:\Some\Some.dll' /> Julie Campbell [EMAIL PROTECTED] -- Message: 7 Date: Mon, 19 Nov 2007 22:57:12 -0800 (PST) From: chandan Koushik <[EMAIL PROTECTED]> Subject: [WiX-users] re gistering a dll in global assembly cache To: wix-users@lists.sourceforge.net Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=us-ascii Hi All, I wanted to register OFFICE.dll in the global assembly cache . Normally we do this using the command C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe -i "C:\OFFICE.DLL" and this dll gets registered in the cache . I tried the following code out to achieve this in wix but this doesn't work. <CustomAction Id="InstallOffice" FileKey="gacutil.exe" ExeCommand="-i "C:\OFFICE.DLL"" Return="ignore"/> <InstallExecuteSequence> <Custom Action="InstallOffice" After="InstallFinalize"> NOT Installed</Custom> </InstallExecuteSequence> And also the other approach did not work out. <Property Id="gacutilexe">gacutil</Property> <CustomAction Id="InstallOffice" Property="gacutilexe" ExeCommand="/i "C:\OFFICE.DLL"" Return="check"/> <InstallExecuteSequence> <Custom Action="InstallOffice" After="InstallFinalize"> NOT Installed</Custom> </InstallExecuteSequence> can anyone help me as to how can this be achieved using custom action in wix3.0 . Plz Help..... Regards Chandan -- View this message in context: http://www.nabble.com/registering-a-dll-in-global-assembly-cache-tf4841578.h tml#a13851851 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users End of WiX-users Digest, Vol 18, Issue 100 ****************************************** ____________________________________________________________________________ _ Scanned by IBM Email Security Management Services powered by MessageLabs. For more information please visit http://www.ers.ibm.com ____________________________________________________________________________ _ _____________________________________________________________________________ Scanned by IBM Email Security Management Services powered by MessageLabs. For more information please visit http://www.ers.ibm.com _____________________________________________________________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users