Archive: execwait + silent


execwait + silent
Hi,

I use ExecWait to execute a script.bat, it works withou any problem.

Just I want having a silent execution, hide the windowµ.

Can I have that please?

Can you help me please.

thx.


Quick sanity check: Why not just put the code from the .bat file into your installer? NSIS can do anything a batch file can.


rew
I want doing that,

but in my .bat i have a condition if

it depend of the valu return from executed command, in NSIS, can doing that ?

my script is like :

for /F %%i in ('perl.exe -Version') do set ver=%%i


if "%ver%" EQU "perl not installed " goto install

:install
install perl


nsExec::Exec'"$EXEDIR\test.bat"'


You can get the printed text from a command with nsExec::ExecToStack (and skip batch file):

nsExec::ExecToStack '"perl.exe" -Version'
Pop $0 # return value/error/timeout
Pop $1 # printed text
StrCpy $1 "$1" "" -18 # only keep last 18 characters from the returned string
${If} $1 == "perl not installed"
goto install
${EndIf}