InstallShield: How to call MSI

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.