Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to execute an exe during wix install

<CustomAction Id="RegisterEXE" Directory="INSTALLDIR" ExeCommand="&quot;INSTALLDIR]MyApp.exe&quot; /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.

like image 377
chetan Avatar asked Mar 20 '23 22:03

chetan


1 Answers

use this

<CustomAction Id="RegisterEXE"
                  Directory="INSTALLDIR"
                  ExeCommand="&quot;[INSTALLDIR]TKW5.exe&quot; /Register"
                  Execute="deferred"
                  Return="ignore"  
                  Impersonate="no"
                 />

<InstallExecuteSequence>
      <Custom Action='RegisterEXE' After='InstallFiles' />
</InstallExecuteSequence>
like image 165
Sarvesh Mishra Avatar answered Mar 28 '23 18:03

Sarvesh Mishra