<CustomAction Id="RegisterEXE" Directory="INSTALLDIR" ExeCommand=""INSTALLDIR]MyApp.exe" /Register" Execute="immediate" Return="ignore" />
<InstallExecuteSequence>
<Custom Action='RegisterEXE' After='InstallFinalize' />
</InstallExecuteSequence>
I have used this code But it does not execute the exe. Exe register itself as ole server and perform few other tasks.