Skip to content
⌘ NSIS Forum Archive

ExecWait help...

3 posts

dt1028#

ExecWait help...

I am trying to pass a number of varibles to batch file I have wrote.

With it runs but the installer closes it before its done...


ExecShell "open" "$INSTDIR\vi\install.bat" "$TFCD $XWAD $HD $INSD $INSTDIR" "SW_SHOWMINIMIZED"

What I am trying to do is basicly


ExecWait "open" "$INSTDIR\vi\install.bat" "$TFCD $XWAD $HD $INSD $INSTDIR" "SW_SHOWMINIMIZED"

Problem is it wont compile becuase i must have the syntax wrong...i have also tried the following with no luck...

ExecWait '"$INSTDIR\vi\install.bat $TFCD $XWAD $HD $INSD $INSTDIR"'
e_orz#
You should use the ExecWait on the executable itself and not on the batch file. The batch file runs progrmas simultaneously.
Afrow UK#
Should be:
ExecWait '"$INSTDIR\vi\install.bat" "$TFCD" "$XWAD" "$HD" "$INSD" "$INSTDIR"'

Plus you should use nsExec::Exec instead which runs it hidden.

-Stu