Defer and ExitCode

Topics: Archive - Deployment Scripts, Archive - General
Dec 5, 2014 at 4:25 PM
Hi, I'm trying to use the toolkit to deploy a VBScript that install an application through SCCM package. The VBScript :
  1. exits with errorcode 1 if requirements are not met (and doesn't install the appl.)
  2. exits with errorcode 2 if installation fails
  3. exits with errorcode 0 if installation succeeds.
I would like to Allow Deferral for 3 times, Rerun the package only if the errorcode 2 (or error 5000) occurs, and finally be notified (at SCCM console) if the installation ends with errorcode different from 0.

How can I configure the script/SCCM ?

thanks