Archive: ExecWait help...


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"'


You should use the ExecWait on the executable itself and not on the batch file. The batch file runs progrmas simultaneously.


Should be:
ExecWait '"$INSTDIR\vi\install.bat" "$TFCD" "$XWAD" "$HD" "$INSD" "$INSTDIR"'

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

-Stu