PDA

View Full Version : Quit upon abortion of external installer


PatrickW
4th April 2006, 12:29
Hi,

I'm looking for a way to terminate NSIS installer if an external installation wizard I called using execWait is aborted.

in some pseudo code:

If Successful(execWait "ext_install.exe")
continue
Else
quit

The external install wizard is Install Shield. Is there any way to read the return value or can it be done in a completely different way?

Thanks in advance for your support

Patrick

Takhir
4th April 2006, 12:56
You can check out app' exit code (second ExecWait parameter). If it retirnes (for example) 0 on successExecWait ext_install.exe $0
IntCmp $0 0 OK
Abort "InstSh failed"
OK: ...

PatrickW
4th April 2006, 14:18
THX a lot for your reply.
I'll check it out as soon as I get back to my desk :)