Skip to content
⌘ NSIS Forum Archive

Quit upon abortion of external installer

3 posts

Guest#

Quit upon abortion of external installer

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#
You can check out app' exit code (second ExecWait parameter). If it retirnes (for example) 0 on success
ExecWait ext_install.exe $0
IntCmp $0 0 OK
Abort "InstSh failed"
OK: ...