|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Junior Member
Join Date: Jul 2017
Posts: 11
|
How to execute a msi file and wait
Hey Anders? how do I execute a .msi file and wait till it terminates?
I tried to use ExecWait '"msiExec.exe" /i "$INSTDIR\file.msi". It runs the file but does not wait. Any idea? |
![]() |
![]() |
![]() |
#2 |
Junior Member
Join Date: Jul 2017
Posts: 11
|
How to execute a msi file and wait
Hey?
I´m embedding .exe files into my installer and it´s working fine using ExecWait "$INSTDIR\file.exe". I install the first and the following waits till the first terminates. But now I need to execute a .msi file. I am using this command ExecWait '"msiExec.exe" /i "$INSTDIR\file.msi". It runs the applications I want but does not wait. execute all applications in the same time. Any Idea? please! |
![]() |
![]() |
![]() |
#3 |
Major Dude
Join Date: Feb 2007
Posts: 672
|
|
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Jul 2017
Posts: 11
|
jpderuiter Thanks for answering.
I followed the link, they say i need to use flags like start/wait installer.exe. Well, could I do this: ExecWait "$INSTDIR\ start /wait mysql-installer-community-5.7.18.1.exe"? |
![]() |
![]() |
![]() |
#5 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,701
|
Ask the author of the .MSI. NSIS will wait for msiexec, anything after that is out of our control...
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#6 |
Junior Member
Join Date: Jul 2017
Posts: 11
|
I did this:
ExecWait '"msiExec.exe" /qb /1* mysql.txt /i "$INSTDIR\file.msi"' DOES NOT WORK |
![]() |
![]() |
![]() |
#7 |
Junior Member
Join Date: Jul 2017
Posts: 11
|
What do u mean?
There's no way to solve it? |
![]() |
![]() |
![]() |
#8 |
Major Dude
Join Date: Feb 2007
Posts: 672
|
You should check with the the author of your msi.
There may be a commandline switch which will force msiExec to wait for the msi to finish. Using "start /wait" is supposed to work also (see https://blogs.msdn.microsoft.com/hea...exe-to-finish/), but I haven't tested this myself, and could not find a working NSIS example. |
![]() |
![]() |
![]() |
#9 |
Junior Member
Join Date: Sep 2016
Posts: 34
|
PHP Code:
|
![]() |
![]() |
![]() |
#10 |
Junior Member
Join Date: Jul 2017
Posts: 11
|
Guys I am trying these different ways but getting nothing!
Anyway thanks! If anyone get it solved, please let me know! |
![]() |
![]() |
![]() |
#11 |
Junior Member
Join Date: Jul 2017
Posts: 11
|
But the Author of "MySQL Installer Community.msi" is ORACLE!, Not?
|
![]() |
![]() |
![]() |
#12 |
Major Dude
Join Date: Feb 2007
Posts: 672
|
So you're trying to install MySQL community installer?
See https://noelherrick.com/books/mysql-...stalling-mysql Try de "/q" and "/i" commandline switches. |
![]() |
![]() |
![]() |
#13 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,701
|
nsExec is for console applications, a normal ExecWait is enough for MSIExec.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|