Skip to content
⌘ NSIS Forum Archive

Pause installation process and wait for user

4 posts

hobbes487#

Pause installation process and wait for user

I am embedding a mySql install in my NSIS installer and I am doing it with the following:

ExecWait '"msiexec" /i "$INSTDIR\mysql-essential-5.1.50-win32.msi"'
The problem is when it is finished installing it closes and opens a separate exe used to configure the mysql instance. When this happens the NSIS installer resumes it's installation. I need it to wait until after the user is done configuring mySql and closes that exe. Anyone have any ideas how I can accomplish this? Is there a way to pause the install and wait until the user clicks a 'resume' button?
MSG#
Originally Posted by hobbes487 View Post
Is there a way to pause the install and wait until the user clicks a 'resume' button?
Try MessageBox. :-)

You can also try to check for the existence of the SQL configuration file, like:
loop:
sleep 1000
IfFileExists "YourConfigFile" break
goto loop
break:

Or wait until you find the configuration process finishes (search the forums).