Seite 1 von 1

Installations- / Skript-Abbruch

Verfasst: 13 Jun 2014, 10:57
von djspcworld
Hallo zusammen!

Folgender Ausschnitt aus meinem Skript zur Erklärung:
; Installation 1
if (($INST_SystemType$ = "64 Bit System") and ($INST_architecture$ = "system specific") and ($PROPERTY1$ = "yes"))
comment "Install PROPERTY1"
Winbatch_Install_64_PROPERTY1
Sub_check_exitcode
else
comment "PROPERTY1 not needed"
endif
; Installation 2
if (($INST_SystemType$ = "64 Bit System") and ($INST_architecture$ = "system specific") and ($PROPERTY2$ = "yes"))
comment "Install PROPERTY2"
Winbatch_Install_64_PROPERTY1
Sub_check_exitcode
else
comment "PROPERTY2 not needed"
endif
PROPERTY1 und PROPERTY2 sind in diesem Fall mal nur Platzhalter für die Originalwerte, aber für meine Frage dürfte das ausreichen:

Wenn Installation 1 mit einem ErrorCde z.B. 1603 endet, ist es dann üblich, dass Installation 2 gar nicht erst angefangen wird???

Re: Installations- / Skript-Abbruch

Verfasst: 14 Jun 2014, 20:07
von dkoch
Ja weil du in sub_check_exitcode definiert hast, dass der Errorlevel IsFatalError ausführt