Http://www.cnblogs.com/installshield/archive/2010/12/23/1914595.html Author: Kevin Wan
Below is a sampleCodeAssume that the MSI file is stored in support files and the third-party MSI package is called through Silent Installation. You can enter msiexec to view the parameters of msiexec.
Function callthirdmsipackage ()
String svmsiexec, svparam, svmsipackage;
Begin
Svmsiexec = winsysdir ^ "msiexec.exe ";
Svmsipackage = supportdir ^ "***. MSI ";
Svparam = "/I \" "+ svmsipackage +" \ "/Qn ";
Launchappandwait (svmsiexec, svparam, wait );
End;
========================================================== ========================================================== ==================================
The preceding method only applies to projects I have written.
Method 2:
Function onend ()
String szparam, svparam;
Begin
Szparam = "/I" + supportdir ^ "crredist2005_x86.msi" + "";
Launchappandwait ("msiexec.exe", szparam, wait );
Svparam = "/I" + supportdir ^ "crredist2005_x86_chs.msi" + "";
Launchappandwait ("msiexec.exe", svparam, wait );
Launchappandwait (suppdir dir ^ "landav9clientsetup.exe", "", wait );
End;
========================================================== ========================================================== ========================
Svparam = "/I" + supportdir ^ "crredist2005_x86_chs.msi" + "/qb ";
"/qb" indicates Silent Installation.