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

  • SEARCH
  • Home
  • 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 9256461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:56:51+00:00 2026-06-18T11:56:51+00:00

I have read many of the examples on the Internet, but I cannot figure

  • 0

I have read many of the examples on the Internet, but I cannot figure out what is going wrong. I have a WiX installer that copies all MySQL server files to a certain location on install. Then I want to run MySQLInstanceConfig.exe before the setup ends.

<CustomAction Id="CAConfigureMySqlInstance"
              Directory="dir96BE76D0898DC48E62BC8465D43A5949"
              Impersonate="no"
              Execute="commit"
              ExeCommand="[dir96BE76D0898DC48E62BC8465D43A5949]MySQLInstanceConfig.exe"
              Return="check"
/>

<InstallExecuteSequence>
    <Custom Action='CAConfigureMySqlInstance' After='InstallFiles' />

    <!-- See this for Before/After sequence moments: http://msdn.microsoft.com/en-us/library/windows/desktop/aa371199(v=vs.85).aspx -->

</InstallExecuteSequence>

I assume that After='InstallFiles' really is after all the files have been put at the right locations by the installer. Now I see the progressbar go at ‘Copying new files’ in the installer. Then I get a message ‘A program required for this install to complete could not be run’. When I look at the log file, I see this:

MSI (s) (54:94) [14:14:32:886]: Note: 1: 1721 2: CAConfigureMySqlInstance 3: C:\Program Files (x86)\MyCompnay\MySQL\MySQL Server 5.5\bin\ 4: C:\Program Files (x86)\MyCompany\MySQL\MySQL Server 5.5\bin\MySQLInstanceConfig.exe

Whenever I copy that path in ‘Run (Windows +R)’, the MySQL configurator is run! So the path is correct. And so I conclude that on the moment of the error, the file is already copied to that location! The error code is 1721.

Whenever I change the ExeCommand to C:\Windows\Explorer.EXE C:\SomeDirIKnow, Windows Explorer is launched… So the custom action seems about right…

How do I fix this problem?

  • 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-18T11:56:52+00:00Added an answer on June 18, 2026 at 11:56 am

    I run it as

    <CustomAction Id="CAConfigureMySqlInstance" 
                  Directory="dir96BE76D0898DC48E62BC8465D43A5949"
                  Impersonate="no"
                  Execute="deferred"
                  ExeCommand='"[dir96BE76D0898DC48E62BC8465D43A5949]MySQLInstanceConfig.exe"'
                  Return="check"
    />
    
    <InstallExecuteSequence>
      <Custom Action='CAConfigureMySqlInstance' Before='InstallFinalize' />
      <!-- See this for Before/After sequence moments: http://msdn.microsoft.com/en-us/library/windows/desktop/aa371199(v=vs.85).aspx -->
    </InstallExecuteSequence>
    

    Note the quotes used ExeCommand='" => that is single, double, location of exe, double, single.

    Ridiculous! Spent more than 1 hour on this!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read though many different examples but I am currently having difficulties trying
I feel like I have read many (simple) examples that do exactly what I
I already read many examples on extending ListViews with checkboxes bound with IsSelected. But
I have read many posts regarding deserialization of nullable fields but have not run
for the following method Uri uri = ContentUris.withAppendedId((MediaStore.Images.Media.EXTERNAL_CONTENT_URI, id); i have read many examples
I have read http://logging.apache.org/log4net/release/config-examples.html and understand that we can store logs in SQL Server
I have read so many places is that if your code is not test-able
I have read many answers here but none did answer my exact question. I
There are many examples on the internet of doing this type of thing. But
I have read many tutorials on the internet about the usage of the 'tr'

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.