Seite 1 von 2

[gelöst] Probleme bei Software-Installation

Verfasst: 21 Jun 2012, 12:22
von djspcworld
Mahlzeit !
Ich habe vor eine Software via OPSI zu verteilen. Leider bricht die Installation nach schon kurzer Zeit ab.
Die Parameter bzw. die gesamte Zeile (...setup.exe.../s..... usw) wird laut Log richtig übersetzt.
Gleiche Zeile in einer cmd (also manueller Versuch) funktioniert einwandfrei.
Was mache ich also nun falsch?
Hier ein paar Infos:
Win 7 x64 mit SP1
Setup.exe > währned der Installation werden zwei Ordner irgendwohin entpackt mit msi Dateien
Folgendes ist im Log der msi zu finden:
......... Exception happened during installation. Error#: -2147467259; Source: ; Description:
......... Installation aborted with failure.

Hoffe Jemand hatte schonmal ähnliche Problem und kann mir helfen.

Re: Probleme bei Software-Installation

Verfasst: 21 Jun 2012, 12:40
von Thomas_H
Moinsens...

einfach mal die setup.ins und die logfiles posten, dann wird es einfacher es zu analysieren.

Gruß

Thomas_H

Re: Probleme bei Software-Installation

Verfasst: 21 Jun 2012, 12:45
von djspcworld
Log:
[5] [6/20/2012 17:00:48] Execution of Winbatch_install_64
[6] [6/20/2012 17:00:48] Call "Y:\bpc-client\BPCCLIENT12_0-10009079.exe /s /z"C:\Program Files (x86)\SAP BusinessObjects\PC_NW&Y:\bpc-client\XceedZip.dll&EN&Office""
[6] [6/20/2012 17:00:48] Waiting until the called process is finished
[6] [6/20/2012 17:02:02] ExitCode 4294967293 Executed process "Y:\bpc-client\BPCCLIENT12_0-10009079.exe /s /z"C:\Program Files (x86)\SAP BusinessObjects\PC_NW&Y:\bpc-client\XceedZip.dll&EN&Office""
[6] [6/20/2012 17:02:02]
[6] [6/20/2012 17:02:02] ~~~~~~~ Start Sub ~~~~~~~ Sub_check_exitcode
[5] [6/20/2012 17:02:02] comment: Test for installation success via exit code
[5] [6/20/2012 17:02:02]
[5] [6/20/2012 17:02:02] Set $ExitCode$ = getLastExitCode
[6] [6/20/2012 17:02:02] The value of the variable "$ExitCode$" is now: "-3"
[5] [6/20/2012 17:02:02]
[5] [6/20/2012 17:02:02] If
[5] [6/20/2012 17:02:02] $ExitCode$ = "0" <<< result false
[5] [6/20/2012 17:02:02] ($ExitCode$ = "0") <<< result false
[5] [6/20/2012 17:02:02] Then
[5] [6/20/2012 17:02:02]
[5] [6/20/2012 17:02:02] Else
[5] [6/20/2012 17:02:02] comment: Setup program gives a exitcode unequal zero: -3
[5] [6/20/2012 17:02:02]
[5] [6/20/2012 17:02:02] If
[5] [6/20/2012 17:02:02] $ExitCode$ = "1605" <<< result false
[5] [6/20/2012 17:02:02] ($ExitCode$ = "1605") <<< result false
[5] [6/20/2012 17:02:02] Then
[5] [6/20/2012 17:02:02]
[5] [6/20/2012 17:02:02] Else
[5] [6/20/2012 17:02:02]
[5] [6/20/2012 17:02:02] If
[5] [6/20/2012 17:02:02] $ExitCode$ = "1641" <<< result false
[5] [6/20/2012 17:02:02] ($ExitCode$ = "1641") <<< result false
[5] [6/20/2012 17:02:02] Then
[5] [6/20/2012 17:02:02]
[5] [6/20/2012 17:02:02] Else
[5] [6/20/2012 17:02:02]
[5] [6/20/2012 17:02:02] If
[5] [6/20/2012 17:02:02] $ExitCode$ = "3010" <<< result false
[5] [6/20/2012 17:02:02] ($ExitCode$ = "3010") <<< result false
[5] [6/20/2012 17:02:02] Then
[5] [6/20/2012 17:02:02]
[5] [6/20/2012 17:02:02] Else
[3] [6/20/2012 17:02:02] Error: Fatal: Setup program gives an unknown exitcode unequal zero: -3
[5] [6/20/2012 17:02:02] Error level set to fatal
[5] [6/20/2012 17:02:02] Process aborted
[6] [6/20/2012 17:02:02]
[6] [6/20/2012 17:02:02] ~~~~~~~ End Sub ~~~~~~~ Sub_check_exitcode
[6] [6/20/2012 17:02:02]
[5] [6/20/2012 17:02:02] Process aborted


setup.ins:
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
Message "Installing " + $ProductId$ + " 64 Bit..."
comment "Start setup program"
Winbatch_install_64
Sub_check_exitcode
endif

[Winbatch_install_64]
%ScriptPath%\BPCCLIENT12_0-10009079.exe /s /z"$InstallDir64$&%ScriptPath%\XceedZip.dll&EN&Office"


Die Variablen-Übersetzung = die ausgeführte Zeile sieht richtig aus.

Re: Probleme bei Software-Installation

Verfasst: 21 Jun 2012, 12:47
von tobias
fuktioniert die installation wenn du deine setup.exe mit Silent schalter über die CMD aufrust?

Re: Probleme bei Software-Installation

Verfasst: 21 Jun 2012, 12:55
von djspcworld
Ja. Wenn ich die Zeile aus Winbatch_Install_64 kopiere
und die Variablen durch die richtigen Werte ersetze (so wie Sie ja auch im Log zu sehen sind)
und mit dem Admin in einer cmd ausführte, läuft die Installation ohne Fehler durch.
Habe auch schon probiert DosBatch, AutoIT (welches eine bat startet), leider alles ohne Erfolg.

Re: Probleme bei Software-Installation

Verfasst: 21 Jun 2012, 13:16
von tobias
"$InstallDir64$&%ScriptPath%\XceedZip.dll&EN&Office"

die stelle schaut seltsam aus ;) sicher das das %scriptpath% dort hingehört?

Re: Probleme bei Software-Installation

Verfasst: 21 Jun 2012, 13:17
von embl-structures
Vielleicht eine dumme Frage: Das Responsefile ist am richtigen Ort?.

Ansonsten wuerde ich mal schauen was passiert, wenn Du die /S-Option weglaesst und die interaktive (!) Installation ueber vom Agent ausfuehren laesst.

frank

Re: Probleme bei Software-Installation

Verfasst: 21 Jun 2012, 13:20
von embl-structures
tobias hat geschrieben:"$InstallDir64$&%ScriptPath%\XceedZip.dll&EN&Office"
die stelle schaut seltsam aus ;) sicher das das %scriptpath% dort hingehört?
Das scheint die korrekte Syntax fuer die /Z-Option dieses Installers (eines SAP clients) zu sein...
frank

Re: Probleme bei Software-Installation

Verfasst: 21 Jun 2012, 13:21
von djspcworld
Ja das muss genau so. Die Vorgaben, wie die Parameter anzugeben sind sind hier alle erfüllt.
Hier eine kurze Erklärung:
%ScriptPath%\BPCCLIENT12_0-10009079.exe /s /z"$InstallDir64$&%ScriptPath%\XceedZip.dll&EN&Office"

%ScriptPath% = Y:\produkt\ dort liegt selbstverständlich die Setup.exe
$InstallDir64$ = C:Program Files (x86)\produkt Dort soll das Programm hin installiert werden
%ScriptPath%\XceedZip.dll = Diese Datei / der Pfad zur Datei wird während der Installation (bei manueller Inst.) abgefragt und muss deswegen hier mit angegeben werden. Die Datei liegt ebenfalls unter %ScriptPath%
EN = Sprache
Die & Zeichen trennen die Paramter in dem gesamten String hinter /z



Und japp, es ist wirklich ein SAP Produkt ;-)

Re: Probleme bei Software-Installation

Verfasst: 21 Jun 2012, 13:26
von tobias
probier es mal so:


%ScriptPath%\BPCCLIENT12_0-10009079.exe /s /z"$InstallDir64$"&"%ScriptPath%\XceedZip.dll"&EN&Office
Mal ein wenig mit " und ' experimentieren.

Wir hatten es neulich das wir auch eine Pfadangabe falsch bzw. gar nicht drin hatten es lokal über cmd aber immer ging weil wir die software aus dem richtigen ordner gestartet haben. OPSI führt das (batch)script bei DosInAnIcon & Co allerdings nicht im Produktordner aus daher sind die korrekten Pfade sehr wichtig.

Exitcode 3 bedeutet so weit ich weis das er den Pfad nicht findet.