Reputation: 85
<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.
Upvotes: 6
Views: 12836
Reputation: 3242
It's working like this way also:
<CustomAction Id="RegisterEXE"
Directory="INSTALLFOLDER"
ExeCommand=""[INSTALLFOLDER]DesktopAlertingClient.exe""
Execute="immediate"
Return="asyncNoWait"
Impersonate="no"
/>
<InstallExecuteSequence>
<Custom Action='RegisterEXE' After='InstallFinalize'></Custom>
</InstallExecuteSequence>
Upvotes: 0
Reputation: 2072
use this
<CustomAction Id="RegisterEXE"
Directory="INSTALLDIR"
ExeCommand=""[INSTALLDIR]TKW5.exe" /Register"
Execute="deferred"
Return="ignore"
Impersonate="no"
/>
<InstallExecuteSequence>
<Custom Action='RegisterEXE' After='InstallFiles' />
</InstallExecuteSequence>
Upvotes: 16