Installations- / Skript-Abbruch

Antworten
djspcworld
Beiträge: 68
Registriert: 06 Jul 2011, 08:34

Installations- / Skript-Abbruch

Beitrag 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???
dkoch
Beiträge: 309
Registriert: 25 Nov 2011, 14:03

Re: Installations- / Skript-Abbruch

Beitrag von dkoch »

Ja weil du in sub_check_exitcode definiert hast, dass der Errorlevel IsFatalError ausführt
Antworten