Not all programs exit the way you would expect. Some call other exes and in fact do end the original process. You can try something like the following, but there is no guarantee it's going to work.

 Code:
shell "%comspec% /c start /wait setup.exe"