Ich befinde mich derzeit in der Evaluierungsphase zu einem Opsi-Rollout und versuche seit einigen Tagen Autocad 2010 64bit zu paketieren und habe eine Frage bezüglich der ExitCodes.
Es gibt in der 64bit-Version des AutoCAD-2010-Setup einen bereits seit der Version 2008 bekannten Bug, dass der Installer einen falschen ExitCode zurückgibt.
Siehe hierzu auch: hier oder hier
Die aufgerufene setup.exe ruft seinerseits eine weitere Instanz der setup.exe auf und terminiert mit dem ExitCode 259.
Ich habe den Aufruf der Winbatch-Section folgendermaßen umgebaut, das Setup läuft jetzt problemlos durch, aber wie man im instlog sehen kann,
glaubt opsi wegen dem ExitCode dass da etwas schiefgelaufen sein muss und versucht ein (in meinem Fall nicht existentes) produkt-update.
Auszug aus dem Install-Script:
Code: Alles auswählen
Winbatch_Install /WaitForProcessEnding "setup.exe" /TimeOutSeconds 900
[Winbatch_Install]
%SCRIPTPATH%\AdminImage\setup.exe /qb /l %SCRIPTPATH%\AdminImage\AI.ini /language de-de ACADSERVERFMTPATH="$LicServer$" ACADSERVERPATH="$LicServer$ 000000000000" ACADProfile_PrinterConfigDir="$Basepath$plotters" ACADProfile_PrinterDescDir="$Basepath$plotters\PMP Files" ACADProfile_PrinterStyleSheetDir="$Basepath$Plot Styles" ACADProfile_SupportPath="$BasePath$support;[INSTALLDIR]support;[INSTALLDIR]fonts;[INSTALLDIR]help;[INSTALLDIR]Express;[INSTALLDIR]support\color" ACADProfile_TemplatePath="$BasePath$Templates" ALLUSERS=2
Code: Alles auswählen
[5] [31.10.2012 15:58:57] message Installing AutoCad 2010 SP2 64bit
[5] [31.10.2012 15:58:57]
[5] [31.10.2012 15:58:57] Execution of Winbatch_Install
[6] [31.10.2012 15:58:57] Call "P:\acad2010\AdminImage\setup.exe /qb /l P:\acad2010\AdminImage\AI.ini /language de-de ACADSERVERFMTPATH="ATLICACAD101" ACADSERVERPATH="ATLICACAD101 000000000000" ACADProfile_PrinterConfigDir="I:\ACAD\Allgemein\plotters" ACADProfile_PrinterDescDir="I:\ACAD\Allgemein\plotters\PMP Files" ACADProfile_PrinterStyleSheetDir="I:\ACAD\Allgemein\Plot Styles" ACADProfile_SupportPath="I:\ACAD\Allgemein\support;[INSTALLDIR]support;[INSTALLDIR]fonts;[INSTALLDIR]help;[INSTALLDIR]Express;[INSTALLDIR]support\color" ACADProfile_TemplatePath="I:\ACAD\Allgemein\Templates" ALLUSERS=2"
[6] [31.10.2012 15:58:57] Waiting 900 seconds
[6] [31.10.2012 15:58:57] Waiting until process "setup.exe" started and has ended
[6] [31.10.2012 15:58:57] Waiting for start of "setup.exe"
[6] [31.10.2012 15:58:58] Waiting for process "setup.exe" ending
[6] [31.10.2012 16:02:09] Process "setup.exe" ended
[6] [31.10.2012 16:02:09] ExitCode 259 Executed process "P:\acad2010\AdminImage\setup.exe /qb /l P:\acad2010\AdminImage\AI.ini /language de-de ACADSERVERFMTPATH="ATLICACAD101" ACADSERVERPATH="ATLICACAD101 000000000000" ACADProfile_PrinterConfigDir="I:\ACAD\Allgemein\plotters" ACADProfile_PrinterDescDir="I:\ACAD\Allgemein\plotters\PMP Files" ACADProfile_PrinterStyleSheetDir="I:\ACAD\Allgemein\Plot Styles" ACADProfile_SupportPath="I:\ACAD\Allgemein\support;[INSTALLDIR]support;[INSTALLDIR]fonts;[INSTALLDIR]help;[INSTALLDIR]Express;[INSTALLDIR]support\color" ACADProfile_TemplatePath="I:\ACAD\Allgemein\Templates" ALLUSERS=2"
(...)
[1] [31.10.2012 16:02:18] script finished
[1] [31.10.2012 16:02:18] 0 errors
[1] [31.10.2012 16:02:18] 0 warnings
[1] [31.10.2012 16:02:18]
[1] [31.10.2012 16:02:18] installed Produkt: acad2010 Version: 2010-1
[1] [31.10.2012 16:02:18]
[6] [31.10.2012 16:02:18] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [31.10.2012 16:02:18] Search "c:\opsi.org\tmp\"
[6] [31.10.2012 16:02:18] JSON service request https://10.10.10.10:4447/rpc setProductActionRequest
[1] [31.10.2012 16:02:18] product "acad2010 set to update
[1] [31.10.2012 16:02:18] Update script name: p:\acad2010\update.ins
[4] [31.10.2012 16:02:18] Warning: file not found :p:\acad2010\update.ins -retrying
[4] [31.10.2012 16:02:19] Warning: file not found :p:\acad2010\update.ins -retrying
Alternativ kann ich mir vorstellen, das Ganze in eine DosBatch-Section zu verpacken, die die WaitForProcessEnding-Funktionalität nachbaut und einen "sauberen" ExitCode zurückgibt...
Ich habe bisher in der Doku dazu nichts gefunden - gibt es von eurer Seite Erfahrungen oder Empfehlungen für diesen Fall?
Danke & lg