Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9315027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:16:57+00:00 2026-06-19T02:16:57+00:00

For installing MySQL silently, I tried following command in cmd and it works fine:

  • 0

For installing MySQL silently, I tried following command in cmd and it works fine:

msiexec /i "mysql-essential-6.0.11-alpha-winx64.msi" /qn

But, how can I run that command Before Installing in Inno Setup ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T02:16:58+00:00Added an answer on June 19, 2026 at 2:16 am

    You can execute it by calling Exec function from the CurStepChanged event method, when the step will be ssInstall. In the following script is shown, how to include that MySQL installer into your setup and how to extract and execute it right before the installation starts:

    #define MySQLInstaller "mysql-essential-6.0.11-alpha-winx64.msi"
    
    [Files]
    Source: "{#MySQLInstaller}"; Flags: dontcopy
    
    [Code]
    procedure CurStepChanged(CurStep: TSetupStep);
    var
      Params: string;
      ResultCode: Integer;
    begin
      if (CurStep = ssInstall) then
      begin
        ExtractTemporaryFile('{#MySQLInstaller}');
        Params := '/i ' + AddQuotes(ExpandConstant('{tmp}\{#MySQLInstaller}')) + ' /qn';
        if not Exec('msiexec', Params, '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then
          MsgBox('Installation of MySQL failed. Exit code: ' + IntToStr(ResultCode),
                 mbInformation, MB_OK);
      end;
    end;
    

    Utilize the unused progress bar:

    Since it takes some time before the installation of MySQL finishes, and you’ve decided to hide the user interface of the installer (what might also be quite unsafe anyway), you can extend the script to use the progress bar which is shown at its starting position during the installation and which is unused that time. The following code switches (on at least Windows XP systems) the Inno Setup’s installation progress bar to marquee style and shows a description in the status label. When MySQL installation is done, the progress bar is switched back to the normal mode and the actual Inno Setup installation starts:

    #define MySQLInstaller "mysql-essential-6.0.11-alpha-winx64.msi"
    
    [Files]
    Source: "{#MySQLInstaller}"; Flags: dontcopy
    
    [Code]
    procedure CurStepChanged(CurStep: TSetupStep);
    var
      Params: string;
      ResultCode: Integer;
    begin
      if (CurStep = ssInstall) then
      begin
        WizardForm.ProgressGauge.Style := npbstMarquee;
        WizardForm.StatusLabel.Caption := 'Installing MySQL. This may take a few minutes...';
    
        ExtractTemporaryFile('{#MySQLInstaller}');
        Params := '/i ' + AddQuotes(ExpandConstant('{tmp}\{#MySQLInstaller}')) + ' /qn';
        if not Exec('msiexec', Params, '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then
          MsgBox('Installation of MySQL failed. Exit code: ' + IntToStr(ResultCode),
                 mbInformation, MB_OK);
    
        WizardForm.ProgressGauge.Style := npbstNormal;
        WizardForm.StatusLabel.Caption := '';
      end;
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i downloaded mysql-installer-5.5.17.0 for installing MySQL in my system,but when i run this i
I am installing mysql-5.5.13.tar.gz in debian 6.0.4. I am following the steps from here
I am installing symfony 2 on server but i don't have sqlite but mysql.
Why is installing MySQL on Windows Vista such a bear? For someone who is
There are alot of questions on stackoverflow about installing mysql-python in virtualenv. However there
We use Windows for our development systems. I am installing PHP, Apache, MySQL manually.
Installing egit on indigo im given following options : I've just checked 'Eclipse Egit'
When installing git for windows, a user is asked to select from following 3
When installing Windows SDK v6.1, following the chromium instructions ( http://dev.chromium.org/developers/how-tos/build-instructions-windows ) I run
Installing QT plain is no problem, but when you've got to recompile QT with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.