Skip to content
⌘ NSIS Forum Archive

Execwait does not wait until completing running setup.exe

5 posts

ReneAlpert#

Execwait does not wait until completing running setup.exe

Hello

I use execwait to start a mysql setup.exe, but if I do so the next instruction is startet immediately wihtout completing the installation. What did I wrong ?

Thank you in advance for help

Rene
kichik#
This thread should help you:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
Afrow UK#
It's to do with using ExecWait to run another installation program.

Do this,

In the Installation program that is executed...


Function .onInit
WriteINIStr "$TEMP\nsistemp1.tmp"
FunctionEnd

Function .onInstSuccess
Delete "$TEMP\nsistemp1.tmp"
FunctionEnd
In your main program (in the section)


Exec "x:\path\to\setup.exe"
loop:
Sleep 1000
IfFileExists "$TEMP\nsistemp1.tmp" loop
-Stuart
virtlink#
According to the thread KiCHiK pointed to, one can just use the /sms switch if ReneAlpert's installer is a Windows Installer Service installer (i.e. MSI-package).