d1ck3n
Goto Top

Exit Code 259?

Hallo zusammen,

ich verteile über die Software OPSI die Standard-Software für meine User. Jetzt ist bei der Installation der neuesten Putty Version (0.66), bei einem User, der "Exit Code 259" aufgetreten. Natürlich habe ich erst mal Google angeschmissen und den Fehlercode gesucht und der Code steht für "No more data is available."

Meine Frage: Verstehe ich das richtig, dass zu wenig Speicherplatz zur verfügung steht oder bedeutet das was anderes?

Gruß
D1Ck3n

Content-Key: 289854

Url: https://administrator.de/contentid/289854

Printed on: April 18, 2024 at 15:04 o'clock

Member: StefanKittel
StefanKittel Dec 02, 2015 at 08:51:36 (UTC)
Goto Top
Moin,

ich habe dies dazu gefunden
If a thread returns STILL_ACTIVE (259) as an error code, applications that test for this value could interpret it to mean that the thread is still running and continue to test for the completion of the thread after the thread has terminated, which could put the application into an infinite loop.

Scheint so, als ob sich das Setup einfach nicht zurückmeldet.
Es wartet vieleicht auf eine Eingabe?

Viele Grüße

Stefan
Member: D1Ck3n
D1Ck3n Dec 02, 2015 at 08:57:15 (UTC)
Goto Top
Hallo Stefan,

die Installation verläuft eigentlich komplett ohne Eingabe. Auf anderen Rechnern funktioniert die Installation auch reibungslos.

Gruß
D1Ck3n
Mitglied: 122990
122990 Dec 02, 2015 updated at 09:01:41 (UTC)
Goto Top
Was muss man bei Putty "installieren" ?? Da reicht doch ein einfaches "kopieren" face-wink

Gruß grexit
Member: Pjordorf
Pjordorf Dec 02, 2015 at 11:30:00 (UTC)
Goto Top
Hallo,

Zitat von @D1Ck3n:
der "Exit Code 259" aufgetreten.
Von OPSI generiert?
Von Putty generiert?
Vom OS generiert?

Und dein
No more data is available.
besagt doch nur das "Keine weiteren Daten zur Verfügung stehen".

Gruß,
Peter
Member: D1Ck3n
D1Ck3n Dec 02, 2015 updated at 12:03:45 (UTC)
Goto Top
Zitat von @122990:

Was muss man bei Putty "installieren" ?? Da reicht doch ein einfaches "kopieren" face-wink

Gruß grexit

Was installiert ist, kann schlechter "ausversehen" von den Usern gelöscht werden ;)


Zitat von @Pjordorf:

Hallo,

Zitat von @D1Ck3n:
der "Exit Code 259" aufgetreten.
Von OPSI generiert?
Von Putty generiert?
Vom OS generiert?

Und dein
No more data is available.
besagt doch nur das "Keine weiteren Daten zur Verfügung stehen".

Gruß,
Peter

Das ist die Fehlermeldung, die ich in den OPSI-Install Logs vom Client gefunden habe:
Error: Fatal: Setup program gives an unknown exitcode unequal zero: 259

Gruß
Mitglied: 122990
122990 Dec 02, 2015 updated at 12:08:31 (UTC)
Goto Top
Error: Fatal: Setup program gives an unknown exitcode unequal zero: 259
Aber das ist doch nur eine simple EXE, oder hast du einen eigenen "Setup-Wrapper" für Putty gebastelt der noch andere Sachen macht?
Member: D1Ck3n
D1Ck3n Dec 02, 2015 at 12:20:49 (UTC)
Goto Top
Ich habe ein kleines Setup Skript verwendet, aber das macht nichts großartiges als zu Prüfen ob genug Speicherplatz vorhanden ist und eventuell Error Codes aus zu geben.

; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/en/credits/

[Actions]
requiredWinstVersion >= "4.11.2.6"  

DefVar $UninstallProgram$
DefVar $UninstallProgramOld$
DefVar $IniFile$
DefVar $IniCfgFile$
DefVar $LogDir$
DefVar $ProductId$  
DefVar $MinimumSpace$
DefVar $InstallDir$
DefVar $ExitCode$
DefVar $OLD_VERSION$
DefVar $OLD_CREATOR_TAG$
DefVar $OLD_RELEASE$

Set $LogDir$ = "%SystemDrive%\tmp"  

; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
; and adds the following variables:
;   from builder-product.cfg :  all variables definded by attribute WINST[index]
;   from builder-product.cfg :  VENDOR PN VERSION RELEASE PRIORITY ADVICE TYPE   
;   from opsi-builder.cfg    :  CREATOR_TAG CREATOR_NAME CREATOR_EMAIL           
;   auto generated winst-variables
;         $IconFile$: path to product picture
;
; Opsi Builder Variables
DefVar $PackagePath$
Set    $PackagePath$ = "%ScriptPath%"  

DefVar $InstallExe$
Set    $InstallExe$ = $PackagePath$ + "\X86\putty-0.66-installer.exe"  
DefVar $VENDOR$
Set    $VENDOR$ = "www.putty.org"  
DefVar $PN$
Set    $PN$ = "bitvise.putty"  
DefVar $VERSION$
Set    $VERSION$ = "0.66"  
DefVar $RELEASE$
Set    $RELEASE$ = "1"  
DefVar $PRIORITY$
Set    $PRIORITY$ = "0"  
DefVar $NAME$
Set    $NAME$ = "PuTTY"  
DefVar $ADVICE$
Set    $ADVICE$ = ""  
DefVar $TYPE$
Set    $TYPE$ = "public"  
DefVar $CREATOR_TAG$
Set    $CREATOR_TAG$ = "go"  
DefVar $CREATOR_NAME$
Set    $CREATOR_NAME$ = "Name"  
DefVar $CREATOR_EMAIL$
Set    $CREATOR_EMAIL$ = "name@mail.com"  
DefVar $IconFile$
Set    $IconFile$ = "%ScriptPath%\bitvise.putty.png"  

; Opsi INI File Variables

DefVar $UninstallProg$
Set    $UninstallProg$ = "unins000.exe"  

;Hardcoded opsi vars
Set    $ProductId$ = "bitvise.putty"  

; ----------------------------------------------------------------
; - 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 $MinimumSpace$    = "20 MB"  
; the path were we find the product after the installation
Set $InstallDir$      = "%ProgramFiles32Dir%\PuTTY"  
; ----------------------------------------------------------------

Set $IniCfgFile$ = "%ScriptPath%\opsi-" + $ProductId$ + ".ini"  

if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))  
	LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$  
	isFatalError "No Space"  
	; Stop process and set installation status to failed
else
	comment "Show product picture"  
	ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $NAME$  
	
	if FileExists("%ScriptPath%\delsub32.ins")  
		comment "Start uninstall sub section"  
		Sub "%ScriptPath%\delsub32.ins"  
	endif
	
	Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " ..."  
	
	comment "Start setup program"  
	ChangeDirectory "%SCRIPTPATH%"  
	Winbatch_install
	Sub_check_exitcode
	
	comment "Copy files"  
	Files_install /32Bit
	
	comment "Patch Registry"  
	Registry_install /32Bit
	
	comment "Create shortcuts"  
	LinkFolder_install
	
endif

[Winbatch_install]
"$InstallExe$" /sp- /verysilent  

[Files_install]
; copy the ini file to the InstallDir
copy "$IniCfgFile$" "$InstallDir$"  

; Example of recursively copying some files into the installation directory:
;
; copy -s "%ScriptPath%\files\*.*" "$InstallDir$"  

[Registry_install]
; Example of setting some values of an registry key:
;
; openkey [HKEY_LOCAL_MACHINE\Software\$ProductId$]
; set "name1" = "some string value"  
; set "name2" = REG_DWORD:0001  
; set "name3" = REG_BINARY:00 af 99 cd  

[LinkFolder_install]
; Example of deleting a folder from AllUsers startmenu:
;
; set_basefolder common_programs
; delete_subfolder $ProductId$
;
; Example of creating an shortcut to the installed exe in AllUsers startmenu:
;
; set_basefolder common_programs
; set_subfolder $ProductId$
;
; set_link
; 	name: $ProductId$
; 	target: <path to the program>
; 	parameters:
; 	working_dir: $InstallDir$
; 	icon_file:
; 	icon_index:
; end_link
;
; Example of creating an shortcut to the installed exe on AllUsers desktop:
;
; set_basefolder common_desktopdirectory
; set_subfolder ""  
;
; set_link
; 	name: $ProductId$
; 	target: <path to the program>
; 	parameters: <some_param>
; 	working_dir: $InstallDir$
; 	icon_file: <path to icon file>
; 	icon_index: 2
; end_link

[Sub_check_exitcode]
comment "Test for installation success via exit code"  
set $ExitCode$ = getLastExitCode
; informations to exit codes see
; http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx
; http://msdn.microsoft.com/en-us/library/aa368542.aspx
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
Mitglied: 122990
122990 Dec 02, 2015 updated at 12:40:22 (UTC)
Goto Top
Ich habe ein kleines Setup Skript verwendet, aber das macht nichts großartiges als zu Prüfen ob genug Speicherplatz vorhanden ist und eventuell Error Codes aus zu geben.
Aha, gut das wir das jetzt auch schon erfahren, dann wird's wohl irgendwo einen Bug im Skript geben ...