Trotz erfolgreicher Installation "non_installes"
Verfasst: 09 Jun 2009, 19:03
Hallo zusammen,
ich hoffe Ihr könnt mir weiterhelfen.....
Zur Zeit teste ich den Opsi 3.3.1 soweit ist alles erfolgreich installiert.
Doch sobald ich ein Software-Packet auf dem Client installiert habe, steht im opsi-config-editor "non_installed", obwohl die Programme auf dem Client installiert und funktionstüchtig sind.
ICh poste euch mal das Skript welches ich verwende:
; Copyright (c) uib gmbh (http://www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/credits/
[Initial]
LogLevel=2
; 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
[Aktionen]
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $NewExe$
DefVar $InstallDir$
DefVar $ExitCode$
; This should be edited
set $ProductId$ = "firefox"
set $MinimumSpace$ = "100 MB"
set $InstallDir$="/home/opsiproducts/firefox/CLIENT_DATA"
set $NewExe$=$InstallDir$+"/"+$ProductId$+".exe"
DefVar $TEMP$
Set $TEMP$ = EnvVar("TEMP")
; Message at install time:
Message "Installing "+$ProductId$+" ..."
if not(HasMinimumSpace ("%SYSTEMDRIVE%", $MinimumSpace$))
LogError "Not enough space on C: . "+$MinimumSpace$+" auf C: fuer "+$ProductId$+" erforderlich."
isFatalError
; stop process and set installation status to failed
else
comment "show product picture"
ShowBitmap /3 "%scriptpath%\"+$ProductId$+".bmp" $ProductId$
if FileExists("%ScriptPath%\delsub.ins")
comment "start uninstall sub section"
sub "%ScriptPath%\delsub.ins"
endif
;Message at install time:
Message "Installing "+$ProductId$+" ..."
comment "start setup program"
Winbatch_install
comment "test for installation success via exit code"
set $ExitCode$ = getLastExitCode
; informations to exit codes see
; http://msdn.microsoft.com/en-us/library ... S.85).aspx
; http://msdn.microsoft.com/en-us/library/aa368542.aspx
if not($ExitCode$ = "0")
logError "Fatal: Setup program gives exitcode unequal zero: "+$ExitCode$
isFatalError
else
comment "looks good: setup program gives exitcode zero"
endif
comment "copy files"
Files_install
comment "set Registry"
Registry_install
comment "set start menu"
LinkFolder_install
comment "test for installation success"
if not(FileExists($NewExe$))
logError "Fatal: After Installation "+$NewExe$+" not found"
isFatalError
endif
endif
[Winbatch_install]
; something like
"%SCRIPTPATH%\Setup.exe" /S
[Files_install]
; something like
copy -sv "%SCRIPTPATH%\files\*.*" "%ProgramFilesDir%\$ProductId$"
[Registry_install]
; something like
openkey [HKEY_LOCAL_MACHINE\Software\$ProductId$]
set "key"="value"
[LinkFolder_install]
; something like
set_basefolder common_programs
set_subfolder $ProductId$
;
; set_link
; name: $ProductId$
; target: $NewExe$
; parameters:
; working_dir: $InstallDir$
; icon_file:
; icon_index:
; end_link
Wäre super wenn Ihr mir helfen könnten.
Achja nochwas
Versuche zur Zeit msi-packete zu verschicken, jedoch bringt mich die Hilfe aus dem Handbuch nicht weiter......
Bleibe immer wieder am Skript hängen....
Wenn jemand ein Beispiel hätte würde mich das ein ganzes Stück weiterbringen....
Merci beaucoup
DerPue
ich hoffe Ihr könnt mir weiterhelfen.....
Zur Zeit teste ich den Opsi 3.3.1 soweit ist alles erfolgreich installiert.
Doch sobald ich ein Software-Packet auf dem Client installiert habe, steht im opsi-config-editor "non_installed", obwohl die Programme auf dem Client installiert und funktionstüchtig sind.
ICh poste euch mal das Skript welches ich verwende:
; Copyright (c) uib gmbh (http://www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/credits/
[Initial]
LogLevel=2
; 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
[Aktionen]
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $NewExe$
DefVar $InstallDir$
DefVar $ExitCode$
; This should be edited
set $ProductId$ = "firefox"
set $MinimumSpace$ = "100 MB"
set $InstallDir$="/home/opsiproducts/firefox/CLIENT_DATA"
set $NewExe$=$InstallDir$+"/"+$ProductId$+".exe"
DefVar $TEMP$
Set $TEMP$ = EnvVar("TEMP")
; Message at install time:
Message "Installing "+$ProductId$+" ..."
if not(HasMinimumSpace ("%SYSTEMDRIVE%", $MinimumSpace$))
LogError "Not enough space on C: . "+$MinimumSpace$+" auf C: fuer "+$ProductId$+" erforderlich."
isFatalError
; stop process and set installation status to failed
else
comment "show product picture"
ShowBitmap /3 "%scriptpath%\"+$ProductId$+".bmp" $ProductId$
if FileExists("%ScriptPath%\delsub.ins")
comment "start uninstall sub section"
sub "%ScriptPath%\delsub.ins"
endif
;Message at install time:
Message "Installing "+$ProductId$+" ..."
comment "start setup program"
Winbatch_install
comment "test for installation success via exit code"
set $ExitCode$ = getLastExitCode
; informations to exit codes see
; http://msdn.microsoft.com/en-us/library ... S.85).aspx
; http://msdn.microsoft.com/en-us/library/aa368542.aspx
if not($ExitCode$ = "0")
logError "Fatal: Setup program gives exitcode unequal zero: "+$ExitCode$
isFatalError
else
comment "looks good: setup program gives exitcode zero"
endif
comment "copy files"
Files_install
comment "set Registry"
Registry_install
comment "set start menu"
LinkFolder_install
comment "test for installation success"
if not(FileExists($NewExe$))
logError "Fatal: After Installation "+$NewExe$+" not found"
isFatalError
endif
endif
[Winbatch_install]
; something like
"%SCRIPTPATH%\Setup.exe" /S
[Files_install]
; something like
copy -sv "%SCRIPTPATH%\files\*.*" "%ProgramFilesDir%\$ProductId$"
[Registry_install]
; something like
openkey [HKEY_LOCAL_MACHINE\Software\$ProductId$]
set "key"="value"
[LinkFolder_install]
; something like
set_basefolder common_programs
set_subfolder $ProductId$
;
; set_link
; name: $ProductId$
; target: $NewExe$
; parameters:
; working_dir: $InstallDir$
; icon_file:
; icon_index:
; end_link
Wäre super wenn Ihr mir helfen könnten.
Achja nochwas

Versuche zur Zeit msi-packete zu verschicken, jedoch bringt mich die Hilfe aus dem Handbuch nicht weiter......
Bleibe immer wieder am Skript hängen....
Wenn jemand ein Beispiel hätte würde mich das ein ganzes Stück weiterbringen....
Merci beaucoup
DerPue