Run second installer after completion of first -


i have created 2 windows-installer a.msi , b.msi. want b.msi should start after completion of a.msi. how can add functionality in a.msi start installer. using wix.

i add customaction in .wxs file

<customaction execommand="cmd.exe /k msiexec.exe /i "[sourcedir]b.msi"" return="asyncnowait" execute="immediate" id="runsecondmsi"  />  

and in installexecutesequence table

<installexecutesequence>  <custom action="runsecondmsi" before="installfinalize">not installed</custom> </installexecutesequence>  

thanks

try launching second msi through custom action scheduled after installfinalize (in installexecutesequence table). custom action should use msidbcustomactiontypeasync , msidbcustomactiontypecontinue flags (asynchronous execution, not wait return).

you cannot launch msi directly, can try using "cmd.exe /k". example:

cmd.exe /k msiexec.exe /i "[sourcedir]b.msi" 

sourcedir property automatically set package folder path (i assumed msi files in same folder).


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -