Seite 1 von 1

Office 2010 - Exitcode -2147024873

Verfasst: 07 Mär 2012, 13:10
von gerrie1978
Hallo Allerseits

Ich spiele nun seit ca. 2 Wochen mit opsi herum und bin echt begeistert. Dank des Handbuchs, des Forums und Beispielen aus dem Wiki konnte ich auch schon so einige Programme verteilen und eigene zurecht basteln. Aber Office 2010 raubt mir wirklich den letzten Nerv :evil:

Ich habe das Script aus dem Wiki genommen und für meine Bedürfnisse angepasst (wir benutzen die Standard Version mit angepasster MSP):

Code: Alles auswählen

[Initial]
LogLevel=9
;  Log Errors in Logfile but don't abort:
ExitOnError=false
; Show syntax errors in the script:
ScriptErrorMessages=on
; Dont trace step by step through the script:
TraceMode=off
; let started programs run in front of the winst window
StayOnTop=false
 
 
[Actions]
requiredWinstVersion >= "4.10.8.6"
 
DefVar $MsiId32$
DefVar $UninstallProgram32$
DefVar $MsiId64$
DefVar $UninstallProgram64$
DefVar $LogDir$
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $InstallDir32$
DefVar $InstallDir64$
DefVar $ExitCode$
DefVar $LicenseRequired$
DefVar $LicenseKey$
DefVar $LicensePool$
DefVar $INST_SystemType$
DefVar $INST_architecture$
DefVar $Version$
DefVar $Inst_Cmd32$
DefVar $Inst_Cmd64$
DefVar $Inst_Prg$
DefVar $Uninst_Cmd$
DefVar $Uninst_Prg$
 
Set $INST_SystemType$ = GetSystemType
set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
 
 
Set $LogDir$ = "%SystemDrive%\tmp"
 
; ----------------------------------------------------------------
; - Please edit the following values                             -
; ----------------------------------------------------------------
;$ProductId$ should be the name of the product in opsi
; therefore please: only lower letters, no umlauts,
; no white space use '-' as a seperator
Set $ProductId$       = "office2010"
Set $Version$         = "2011"
Set $MinimumSpace$    = "30 MB"
; the path were we find the product after the installation
Set $InstallDir32$      = "%ProgramFiles32Dir%\Microsoft Office"
Set $InstallDir64$      = "%ProgramFiles64Dir%\Microsoft Office"
Set $LicenseRequired$ = "false"
Set $LicensePool$     = "p_" + $ProductId$
Set $Inst_Prg$ = "setup.exe"
Set $Inst_Cmd64$ = '/adminfile'
Set $Uninst_Cmd$ = ""
Set $Uninst_Prg$ = ""
; ----------------------------------------------------------------
 
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
        LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
        isFatalError
        ; Stop process and set installation status to failed
else
        comment "Show product picture"
        ShowBitmap "%ScriptPath%\" + $ProductId$ + ".jpg" $ProductId$
 
        if $LicenseRequired$ = "true"
                comment "Licensing required, reserve license and get license key"
                Sub_get_licensekey
        endif
 
        comment "Installiere Microsoft Office 2010 (64 Bit)..."
 
        if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
                Message "Dieses Produkt ist nur fuer 64 Bit OS!"
                comment "Fatal: for 64 Bit OS only!"
                isFatalError
                Sub_check_exitcode
        endif
 
        if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
                Message "Installiere " + $ProductId$ + ". Das kann etwas laenger dauern, bitte Geduld..."
                comment "Start setup program"
                Winbatch_install_64
                Files_delete_64
                Sub_check_exitcode
        endif
 
endif
 
[Winbatch_install_64]
; Choose one of the following examples as basis for your installation
; You can use $LicenseKey$ var to pass a license key to the installer
;
; === Nullsoft Scriptable Install System ================================================================
%ScriptPath%\$Inst_Prg$ $Inst_Cmd64$ "%Scriptpath%\Updates\opsi.MSP"
 
[Files_delete_64]
; Example of recursively copying some files into the installation directory:
;
delete /s "$InstallDir64$\*.*"
 
 
[Sub_check_exitcode]
comment "Test for installation success via exit code"
set $ExitCode$ = getLastExitCode
if ($ExitCode$ = "0")
        comment "Looks good: setup program gives exitcode zero"
else
        comment "Setup program gives a exitcode unequal zero: " + $ExitCode$
        if ($ExitCode$ = "1605")
                comment "ERROR_UNKNOWN_PRODUCT  1605    This action is only valid for products that are currently installed."
                comment "Uninstall of a not installed product failed - no problem"
        else
                if ($ExitCode$ = "1641")
                        comment "looks good: setup program gives exitcode 1641"
                        comment "ERROR_SUCCESS_REBOOT_INITIATED 1641    The installer has initiated a restart. This message is indicative of a success."
                else
                        if ($ExitCode$ = "3010")
                                comment "looks good: setup program gives exitcode 3010"
                                comment "ERROR_SUCCESS_REBOOT_REQUIRED  3010    A restart is required to complete the install. This message is indicative of a success."
                        else
                                logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$
                                isFatalError
                        endif
                endif
        endif
endif

Wenn ich die Installation on_demand starte kommt das opsi-Logo, anschliessen kurz das MS Fenster das Office installiert wird und dann wird im Hintergrund gearbeitet. Das Script läuft soweit durch, überprüft ob 32 oder 64 Bit etc, und irgendwann bricht die Installation jedoch ab, das Logfile siehtdann so aus:

Code: Alles auswählen

[5] [07.03.2012 12:27:02]     
[5] [07.03.2012 12:27:02]     Execution of Winbatch_install
[6] [07.03.2012 12:27:02]       Call ""P:\office2010\setup.exe""
[6] [07.03.2012 12:27:02]          Waiting until the called process is finished
[7] [07.03.2012 12:27:04]       Waiting for ending at 07.03.2012 12:27:04 exitcode is: 259
[7] [07.03.2012 12:27:05]       Waiting for ending at 07.03.2012 12:27:05 exitcode is: 259
[7] [07.03.2012 12:27:06]       Waiting for ending at 07.03.2012 12:27:06 exitcode is: 259
[7] [07.03.2012 12:27:07]       Waiting for ending at 07.03.2012 12:27:07 exitcode is: 259
[7] [07.03.2012 12:27:08]       Waiting for ending at 07.03.2012 12:27:08 exitcode is: 259
[7] [07.03.2012 12:27:09]       Waiting for ending at 07.03.2012 12:27:09 exitcode is: 259
[7] [07.03.2012 12:27:10]       Waiting for ending at 07.03.2012 12:27:10 exitcode is: 259
[7] [07.03.2012 12:27:11]       Waiting for ending at 07.03.2012 12:27:11 exitcode is: 259
[7] [07.03.2012 12:27:12]       Waiting for ending at 07.03.2012 12:27:12 exitcode is: 259
[7] [07.03.2012 12:27:13]       Waiting for ending at 07.03.2012 12:27:13 exitcode is: 259
[7] [07.03.2012 12:27:14]       Waiting for ending at 07.03.2012 12:27:14 exitcode is: 259
[7] [07.03.2012 12:27:15]       Waiting for ending at 07.03.2012 12:27:15 exitcode is: 259
[7] [07.03.2012 12:27:16]       Waiting for ending at 07.03.2012 12:27:16 exitcode is: 259
[7] [07.03.2012 12:27:17]       Waiting for ending at 07.03.2012 12:27:17 exitcode is: 259
[7] [07.03.2012 12:27:18]       Waiting for ending at 07.03.2012 12:27:18 exitcode is: 259
[7] [07.03.2012 12:27:19]       Waiting for ending at 07.03.2012 12:27:19 exitcode is: 259
[7] [07.03.2012 12:27:20]       Waiting for ending at 07.03.2012 12:27:20 exitcode is: 259
[7] [07.03.2012 12:27:21]       Waiting for ending at 07.03.2012 12:27:21 exitcode is: 259
[7] [07.03.2012 12:27:22]       Waiting for ending at 07.03.2012 12:27:22 exitcode is: 259
[7] [07.03.2012 12:27:23]       Waiting for ending at 07.03.2012 12:27:23 exitcode is: 259
[7] [07.03.2012 12:27:24]       Waiting for ending at 07.03.2012 12:27:24 exitcode is: 259
[7] [07.03.2012 12:27:25]       Waiting for ending at 07.03.2012 12:27:25 exitcode is: 259
[7] [07.03.2012 12:27:26]       Waiting for ending at 07.03.2012 12:27:26 exitcode is: 259
[7] [07.03.2012 12:27:27]       Waiting for ending at 07.03.2012 12:27:27 exitcode is: 259
[7] [07.03.2012 12:27:28]       Waiting for ending at 07.03.2012 12:27:28 exitcode is: 259
[7] [07.03.2012 12:27:29]       Waiting for ending at 07.03.2012 12:27:29 exitcode is: 259
[7] [07.03.2012 12:27:30]       Waiting for ending at 07.03.2012 12:27:30 exitcode is: 259
[7] [07.03.2012 12:27:31]       Waiting for ending at 07.03.2012 12:27:31 exitcode is: 259
[7] [07.03.2012 12:27:32]       Waiting for ending at 07.03.2012 12:27:32 exitcode is: 259
[7] [07.03.2012 12:27:33]       Waiting for ending at 07.03.2012 12:27:33 exitcode is: 259
[7] [07.03.2012 12:27:34]       Waiting for ending at 07.03.2012 12:27:34 exitcode is: 259
[7] [07.03.2012 12:27:35]       Waiting for ending at 07.03.2012 12:27:35 exitcode is: 259
[7] [07.03.2012 12:27:36]       Waiting for ending at 07.03.2012 12:27:36 exitcode is: 259
[7] [07.03.2012 12:27:37]       Waiting for ending at 07.03.2012 12:27:37 exitcode is: 259
[7] [07.03.2012 12:27:38]       Waiting for ending at 07.03.2012 12:27:38 exitcode is: 259
[7] [07.03.2012 12:27:40]       Waiting for ending at 07.03.2012 12:27:40 exitcode is: 259
[7] [07.03.2012 12:27:41]       Waiting for ending at 07.03.2012 12:27:41 exitcode is: 259
[7] [07.03.2012 12:27:42]       Waiting for ending at 07.03.2012 12:27:42 exitcode is: 259
[7] [07.03.2012 12:27:43]       Waiting for ending at 07.03.2012 12:27:43 exitcode is: 259
[7] [07.03.2012 12:27:44]       Waiting for ending at 07.03.2012 12:27:44 exitcode is: 259
[7] [07.03.2012 12:27:45]       Waiting for ending at 07.03.2012 12:27:45 exitcode is: 259
[7] [07.03.2012 12:27:46]       Waiting for ending at 07.03.2012 12:27:46 exitcode is: 259
[7] [07.03.2012 12:27:47]       Waiting for ending at 07.03.2012 12:27:47 exitcode is: 259
[7] [07.03.2012 12:27:48]       Waiting for ending at 07.03.2012 12:27:48 exitcode is: 259
[7] [07.03.2012 12:27:49]       Waiting for ending at 07.03.2012 12:27:49 exitcode is: 259
[7] [07.03.2012 12:27:50]       Waiting for ending at 07.03.2012 12:27:50 exitcode is: 259
[7] [07.03.2012 12:27:51]       Waiting for ending at 07.03.2012 12:27:51 exitcode is: 259
[7] [07.03.2012 12:27:52]       Waiting for ending at 07.03.2012 12:27:52 exitcode is: 259
[7] [07.03.2012 12:27:53]       Waiting for ending at 07.03.2012 12:27:53 exitcode is: 259
[7] [07.03.2012 12:27:54]       Waiting for ending at 07.03.2012 12:27:54 exitcode is: 259
[7] [07.03.2012 12:27:55]       Waiting for ending at 07.03.2012 12:27:55 exitcode is: 259
[7] [07.03.2012 12:27:56]       Waiting for ending at 07.03.2012 12:27:56 exitcode is: 259
[7] [07.03.2012 12:27:57]       Waiting for ending at 07.03.2012 12:27:57 exitcode is: 259
[7] [07.03.2012 12:27:58]       Waiting for ending at 07.03.2012 12:27:58 exitcode is: 259
[7] [07.03.2012 12:27:59]       Waiting for ending at 07.03.2012 12:27:59 exitcode is: 259
[7] [07.03.2012 12:28:00]       Waiting for ending at 07.03.2012 12:28:00 exitcode is: 259
[7] [07.03.2012 12:28:01]       Waiting for ending at 07.03.2012 12:28:01 exitcode is: 259
[7] [07.03.2012 12:28:02]       Waiting for ending at 07.03.2012 12:28:02 exitcode is: 259
[7] [07.03.2012 12:28:03]       Waiting for ending at 07.03.2012 12:28:03 exitcode is: 259
[7] [07.03.2012 12:28:04]       Waiting for ending at 07.03.2012 12:28:04 exitcode is: 259
[7] [07.03.2012 12:28:05]       Waiting for ending at 07.03.2012 12:28:05 exitcode is: 259
[7] [07.03.2012 12:28:06]       Waiting for ending at 07.03.2012 12:28:06 exitcode is: 259
[7] [07.03.2012 12:28:07]       Waiting for ending at 07.03.2012 12:28:07 exitcode is: 259
[7] [07.03.2012 12:28:08]       Waiting for ending at 07.03.2012 12:28:08 exitcode is: 259
[7] [07.03.2012 12:28:09]       Waiting for ending at 07.03.2012 12:28:09 exitcode is: 259
[7] [07.03.2012 12:28:10]       Waiting for ending at 07.03.2012 12:28:10 exitcode is: 259
[7] [07.03.2012 12:28:11]       Waiting for ending at 07.03.2012 12:28:11 exitcode is: 259
[7] [07.03.2012 12:28:12]       Waiting for ending at 07.03.2012 12:28:12 exitcode is: 259
[7] [07.03.2012 12:28:13]       Waiting for ending at 07.03.2012 12:28:13 exitcode is: 259
[7] [07.03.2012 12:28:14]       Waiting for ending at 07.03.2012 12:28:14 exitcode is: 259
[7] [07.03.2012 12:28:15]       Waiting for ending at 07.03.2012 12:28:15 exitcode is: 259
[7] [07.03.2012 12:28:16]       Waiting for ending at 07.03.2012 12:28:16 exitcode is: 259
[7] [07.03.2012 12:28:17]       Waiting for ending at 07.03.2012 12:28:17 exitcode is: 259
[7] [07.03.2012 12:28:18]       Waiting for ending at 07.03.2012 12:28:18 exitcode is: 259
[7] [07.03.2012 12:28:19]       Waiting for ending at 07.03.2012 12:28:19 exitcode is: 259
[7] [07.03.2012 12:28:20]       Waiting for ending at 07.03.2012 12:28:20 exitcode is: 259
[7] [07.03.2012 12:28:21]       Waiting for ending at 07.03.2012 12:28:21 exitcode is: 259
[7] [07.03.2012 12:28:22]       Waiting for ending at 07.03.2012 12:28:22 exitcode is: 259
[7] [07.03.2012 12:28:23]       Waiting for ending at 07.03.2012 12:28:23 exitcode is: 259
[7] [07.03.2012 12:28:24]       Waiting for ending at 07.03.2012 12:28:24 exitcode is: 259
[7] [07.03.2012 12:28:25]       Waiting for ending at 07.03.2012 12:28:25 exitcode is: 259
[7] [07.03.2012 12:28:26]       Waiting for ending at 07.03.2012 12:28:26 exitcode is: 259
[7] [07.03.2012 12:28:27]       Waiting for ending at 07.03.2012 12:28:27 exitcode is: 2147942423
[8] [07.03.2012 12:28:27]       Process terminated at: 07.03.2012 12:28:27 exitcode is: 2147942423
[6] [07.03.2012 12:28:27]       ExitCode -2147024873    Executed process ""P:\office2010\setup.exe""
[6] [07.03.2012 12:28:27]     
[6] [07.03.2012 12:28:27]     ~~~~~~~ Start Sub ~~~~~~~  Sub_check_exitcode
[5] [07.03.2012 12:28:27]     comment: Test for installation success via exit code
[5] [07.03.2012 12:28:27]     
[5] [07.03.2012 12:28:27]     Set  $ExitCode$ = getLastExitCode
[6] [07.03.2012 12:28:27]       The value of the variable "$ExitCode$" is now: "-2147024873"
[5] [07.03.2012 12:28:27]     
[5] [07.03.2012 12:28:27]     If
[5] [07.03.2012 12:28:27]       $ExitCode$ = "0"   <<< result false
[5] [07.03.2012 12:28:27]       ($ExitCode$ = "0")   <<< result false
[5] [07.03.2012 12:28:27]     Then
[5] [07.03.2012 12:28:27]     
[5] [07.03.2012 12:28:27]     Else
[5] [07.03.2012 12:28:27]       comment: Setup program gives a exitcode unequal zero: -2147024873
[5] [07.03.2012 12:28:27]       
[5] [07.03.2012 12:28:27]       If
[5] [07.03.2012 12:28:27]         $ExitCode$ = "1605"   <<< result false
[5] [07.03.2012 12:28:27]         ($ExitCode$ = "1605")   <<< result false
[5] [07.03.2012 12:28:27]       Then
[5] [07.03.2012 12:28:27]       
[5] [07.03.2012 12:28:27]       Else
[5] [07.03.2012 12:28:27]         
[5] [07.03.2012 12:28:27]         If
[5] [07.03.2012 12:28:27]           $ExitCode$ = "1641"   <<< result false
[5] [07.03.2012 12:28:27]           ($ExitCode$ = "1641")   <<< result false
[5] [07.03.2012 12:28:27]         Then
[5] [07.03.2012 12:28:27]         
[5] [07.03.2012 12:28:27]         Else
[5] [07.03.2012 12:28:27]           
[5] [07.03.2012 12:28:27]           If
[5] [07.03.2012 12:28:27]             $ExitCode$ = "3010"   <<< result false
[5] [07.03.2012 12:28:27]             ($ExitCode$ = "3010")   <<< result false
[5] [07.03.2012 12:28:27]           Then
[5] [07.03.2012 12:28:27]           
[5] [07.03.2012 12:28:27]           Else
[3] [07.03.2012 12:28:27]             Error: Fatal: Setup program gives an unknown exitcode unequal zero: -2147024873
[5] [07.03.2012 12:28:27]             Error level set to fatal
[5] [07.03.2012 12:28:27]             Process aborted
[6] [07.03.2012 12:28:27]     
[6] [07.03.2012 12:28:27]     ~~~~~~~ End Sub   ~~~~~~~  Sub_check_exitcode
[6] [07.03.2012 12:28:27]     
[5] [07.03.2012 12:28:27]     Process aborted
[1] [07.03.2012 12:28:27] ___________________
[1] [07.03.2012 12:28:27] script finished
[1] [07.03.2012 12:28:27] 1 error
[1] [07.03.2012 12:28:27] 1 warning
[1] [07.03.2012 12:28:27] 
Ich habe die Installations-Dateien schon mehrfach auf den opsi-Server kopiert, mir sogar die CD bei MS noch einmal heruntergeladen. Wenn ich die Setup.exe direkt von einem anderen Laufwerk aus starte läuft die Installation durch. Wenn ich aber den Share vom opsi-Server öffne und dort die Setup.exe ausführe klappt die Installation nicht. Es ist sicherlich ein Denkfehler, Berechtigungen oder so, aber ich weiss nicht recht, wo ich ansetzen soll. Andere Setups aus dem opsi-Share laufen durch.

Kann mir jemand einen Hint geben, wo ich noch suchen kann? Werde auch brav alles Configs und Logs posten, die es braucht.

Danke schon einmal und schöne Grüsse aus der Schweiz

Gerrie

Re: Office 2010 - Exitcode -2147024873

Verfasst: 07 Mär 2012, 13:19
von tobias
Hi,

funktioniert das denn wenn du den Installer mit den entsprechenden Parametern über die CMD aufrufst?
Bzgl. Berechtigungen kannst du einfach mal opsi-setup --set-rights <pfad> durchlaufen lassen am besten auf die Quelldateien welche du zu deinem OPSI-Paket geschnürt hast.

Re: Office 2010 - Exitcode -2147024873

Verfasst: 07 Mär 2012, 13:33
von gerrie1978
Hallo Tobias

Die set-rights hab ich durchlaufen lassen, sieht alles "grün" aus.

Wenn ich den Share vom opsi-Server nehme und das Setup über Command Line ausführe läuft es auch nicht durch, bricht ab, ich finde aber nirgends Logdateien dazu.

Danke und Gruss
Gerrie

Re: Office 2010 - Exitcode -2147024873

Verfasst: 07 Mär 2012, 13:53
von tobias
eventuell ist die verbindung zu lahm ? Probier mal die daten per WINST vorher auf die Festplatte zu schaufeln und dann das setup zu starten.

Re: Office 2010 - Exitcode -2147024873

Verfasst: 07 Mär 2012, 14:01
von gerrie1978
Danke für den Tip, werd ich mal versuchen. Wenn die Daten im Netz auf einem Windows Server liegen reicht die Verbindung, gibt es da samba-seitig etwas, das man aufbohren könnte?

Danke und Gruss
Gerrie

Re: Office 2010 - Exitcode -2147024873

Verfasst: 09 Mär 2012, 10:09
von gerrie1978
Hallo noch mal

Also, es scheint tatsächlich irgendwie am Samba Share bzw. an der Geschwindigkeit zu liegen.

Wenn ich die Installationsdateien, wie vorgeschlagen, erst auf den Client kopiere funktioniert die Installation. Wenn ich das ganze auf einen Windows-Server (gleiches Netz, gleiche Anbindung) ablege und die setuip.exe im setup.ins so aufrufe:

Code: Alles auswählen

net use W: \\server\install\APPS\office2010 password /user:domain\user /persistent:no
W:\setup.exe
klappt die Installation auch.

Hat jemand einen Tip, wie ich da etwas an der Geschwindigkeit drehen kann? Momentan kann ich mit der letzten Variante leben (ist doch schneller als alle Daten erst auf den Client zu kopieren), aber so auf Dauer irgendwie blöd. Zumal es ja auch durchaus grössere Programme als das Standard-Office gibt.

Danke und Gruss
Gerrie

Re: Office 2010 - Exitcode -2147024873

Verfasst: 27 Sep 2012, 10:39
von erwinr
Ich hatte ganz ähnliche Probleme.

Letztlich lag es an den File Permissions.
Die Installationsdateien müssen - ganz, wie auf der DVD - schreibgeschützt sein.

mit

Code: Alles auswählen

 chown -R opsiconfd:pcpatch .
 chmod -R 755 Admin/ Catalog/ Excel.de-de/ O* P* Rosebud.de-de/ Standard.WW/ Updates/ Word.de-de/
läuft die Installation schön durch.

Re: Office 2010 - Exitcode -2147024873

Verfasst: 07 Mär 2014, 09:32
von felix
Hey

Ich hatte die gleichen Probleme und bin im Forum auf folgenden Eintrag gestossen:

viewtopic.php?f=7&t=2078#p10939
;===========================================================================================
Hallo,

vielleicht noch ein allgemeiner Hinweis zum kopieren mit WinSCP. Wenn bei den Kopieroptionen Standard eingestellt ist, dann werden bestimmte Dateien u.a. xml Dateien im Textformat und nicht binär kopiert. Damit ändert sich die Größe und Kodierung der Datei. Der Officeinstaller prüft die Dateien und bemerkt diese Veränderung und bricht ab. Man kann also schon die Dateien mit WinSCP hochkopieren, ohne über die Sambashares zu gehen, muss allerdings beim Üertragungsmodus immer binär einstellen.
;===========================================================================================

Nach der Umstellung auf binär konnte ich Office Problemlos und ohne lokale Kopie installieren...

LG