Note the cmd.exe must be called only after the installation has taken place. I tried reading the WIX document and have implemented the same code but it still fails. Could some one tell me what the problem is?
<CustomAction Id="MyAction"
Property="INSTALLDIR"
Execute="commit"
ExeCommand='[SystemFolder]cmd.exe "c:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm" /codebase /tlb "[installdir]\[lib]\x64\xDotnet.dll"'
Return="check"
Impersonate ="yes" />
<InstallExecuteSequence>
<Custom Action="MyAction" Before="InstallFinalize" />
</InstallExecuteSequence>