emel_kkkk
8th June 2006 15:42 UTC
ExecWait exe file problem
Hi;
i have a script which includes command below
ExecWait "DB2CMD.exe DB2SETCP.BAT DB2.EXE"
(i'm trying to open db2 command line proccessor)
when i try to test installer, 80 exes are opening.
i tried "DB2CMD.exe DB2SETCP.BAT DB2.EXE" command from cmd.it works well.
i also tried nsExec command but result is same.
can anyone help me about this?
Afrow UK
8th June 2006 17:23 UTC
Try:
ExecWait '"DB2CMD.exe" DB2SETCP.BAT DB2.EXE'
-Stu
emel_kkkk
9th June 2006 06:46 UTC
thanks
but the same result
when i try to test installer, (about) 80 exes are opening
Afrow UK
9th June 2006 10:29 UTC
Strange.
What is SetOutPath set to before you call ExecWait?
Also try:
ExecWait '"DB2CMD.exe" "DB2SETCP.BAT DB2.EXE"'
Edit: Also, are the 80 processes all multiple instances of DB2CMD.exe?
-Stu
emel_kkkk
9th June 2006 10:42 UTC
i just want to create database. there's no problem in installation. to create database, i must reach exe i defined.
i can do it with command line
i run cmd and write "DB2CMD.exe DB2SETCP.BAT DB2.EXE create db sampledb".it works fine.
but that doesn't work in nsis.
thanks for reply
i tried all combinations of ' and " with exec and execwait commands. that doesn't work.
Takhir
9th June 2006 11:22 UTC
What's the content of the batch file? IMHO this is the only looping point. OS stops repeating processes creation on some limit (may be 80). Can you simplify the situation by excluding bat and/or exe from command line? Or may be you can put this cmd line to (new) bat file wrapper?