Seite 1 von 1

Software-Paket wird nicht installiert

Verfasst: 17 Sep 2015, 16:29
von luckyman
Hallo allerseits,

ich versuche ein msi-Paket auszurollen aber es landet letztendlich nicht auf dem Test-Client. Ich stelle es im OPSI-configuration-editor auf >>setup<< und boote. Dann auch läuft alles wunderbar durch, ich kriege als Rückmeldung >>success<< und >>installed<< aber auf dem Client ist die Software dann nicht installiert. In den Logs kann ich keine Fehler finden und die Simulation des der Skripte mittels winst32 bringt auch keine Fehler.

Ich vermute aber trotzdem, dass der Fehler in der setup.ins liegt und daher hänge ich Sie mal an.

Code: Alles auswählen


[Actions]
requiredWinstVersion >= "4.10.8.6"
 
DefVar $MsiId$
DefVar $UninstallProgram$
DefVar $LogDir$
DefVar $ProductId$  
DefVar $MinimumSpace$
DefVar $InstallDir$
DefVar $InstallProg$
DefVar $ExitCode$
DefVar $UninstCMD$
DefVar $InstCMD$
DefVar $DisplayName$
DefVar $ProductName$
 
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
Message "Installiere softwarexyz ..."
;ShowBitmap "%ScriptPath%\GenericApp.png" "softwarexyz"
Set $ProductId$       = "softwarexyz"
Set $ProductName$	  = "softwarexyz"
Set $MinimumSpace$    = "60 MB"
 
Set $InstallDir$      = "%ProgramFiles32Dir%\softwarexyz"
Set $InstallProg$	  = "softwarexyz.msi"
Set $UninstallProgram$ = "softwarexyz.msi"
Set $UninstCMD$ = " /gb-! REBOOT=REALLYSUPPRES"
Set $InstCMD$ = " /gb-! REBOOT=REALLYSUPPRES"
Set $MsiId$ = "{xyz-xyz-xyz-xyz-xyz}"
 
; ----------------------------------------------------------------
 
;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
 
;		if FileExists("%ScriptPath%\delsub.ins")
;		comment "Start uninstall sub section"
;		Sub "%ScriptPath%\delsub.ins"
;		endif
 
;        Message "Installing " + $ProductName$
;        Winbatch_install
;        sub %scriptpath%\check_exitcode\check_msi-exitcode.ins
;endif
 
[Winbatch_install]
msiexec /qb! "%ScriptPath%\softwarexyz.msi" ALLUSERS=1 REBOOT=ReallySuppress

Ich hoffe ihr könnt mir helfen und vielen Dank im Voraus schon mal.

Grüße,

luckyman

Re: Software-Paket wird nicht installiert

Verfasst: 17 Sep 2015, 18:32
von tobias
Moin,

; Winbatch_install <== das ist auskommentiert, er kommt also gar nicht zur Installation

Re: Software-Paket wird nicht installiert

Verfasst: 22 Sep 2015, 17:23
von luckyman
Hallo allerseits,

ja das war es. Da hatte ich wohl Tomaten auf den Augen. :? :roll:

Vielen Dank für die Hilfe. Problem behoben.

Beste Grüße,

luckyman

Re: Software-Paket wird nicht installiert

Verfasst: 24 Sep 2015, 17:54
von ueluekmen
Kleiner Tip am rande... der opsi-setup-detector ist dein Freund und helfer. Es liegt auch eine neue Version unter testing. Wo... steht in der releasenotes. ;)