WiX: register .NET COM component both x86 x64 -


i have c# com .dll. install .dll once, have registered both x86 , x64.

here's wix have registering x64:

<component id="netdll.dll" directory="installdir">   <file id="netdll.dll" name="netdll.dll" keypath="yes" source="..\netdll.dll" />   <class id="{78be...}" context="inprocserver32" description="netdll" threadingmodel="both" foreignserver="mscoree.dll">     <progid id="netdll" description="netdll" />   </class>   <registryvalue root="hkcr" key="clsid\{78be...}\implemented categories\{62c8fe65-4ebb-45e7-b440-6e39b2cdbf29}" value="" type="string" action="write" />   <registryvalue root="hkcr" key="clsid\{78be...}\inprocserver32\1.0.1.0" name="class" value="netdll" type="string" action="write" />   <registryvalue root="hkcr" key="clsid\{78be...}\inprocserver32\1.0.1.0" name="assembly" value="netdll, version=1.0.1.0, culture=neutral" type="string" action="write" />   <registryvalue root="hkcr" key="clsid\{78be...}\inprocserver32\1.0.1.0" name="runtimeversion" value="v4.0.30319" type="string" action="write" />   <registryvalue root="hkcr" key="clsid\{78be...}\inprocserver32\1.0.1.0" name="codebase" value="file:///[#netdll.dll]" type="string" action="write" />   <registryvalue root="hkcr" key="clsid\{78be...}\inprocserver32" name="class" value="netdll" type="string" action="write" />   <registryvalue root="hkcr" key="clsid\{78be...}\inprocserver32" name="assembly" value="netdll, version=1.0.1.0, culture=neutral" type="string" action="write" />   <registryvalue root="hkcr" key="clsid\{78be...}\inprocserver32" name="runtimeversion" value="v4.0.30319" type="string" action="write" />   <registryvalue root="hkcr" key="clsid\{78be...}\inprocserver32" name="codebase" value="file:///[#netdll.dll]" type="string" action="write" />   <registryvalue root="hkcr" key="component categories\{62c8fe65-4ebb-45e7-b440-6e39b2cdbf29}" name="0" value=".net category" type="string" action="write" />   <registrykey root='hklm' key='software\netdll'>     <registryvalue name='description' type='string' value='netdll'/>   </registrykey> </component> 

how can write in hkcr\clsid, hkcr\wow6432node\clsid, hklm\software, , hklm\software\wow6432node @ once?

try regasm.exe switches /x86 , /x64.

you have 32-bit , 64-bit versions of regasm.exe , 1 in c:\windows\microsoft .net\<version>\framework , in framework64, see if helps.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -