Fehler bei CreateAndProcessScript: Range check error

Antworten
Hamsta
Beiträge: 7
Registriert: 26 Mär 2015, 17:47

Fehler bei CreateAndProcessScript: Range check error

Beitrag von Hamsta »

Moin Moin,

ich habe mir ein IrfanView OPSI-Packet in Anlehnung an wiki/doku.php?id=userspace:irfanview_4.x gebaut.

Dieses bricht direkt am Anfang der delsub.ins ab, mit einer Fehlermeldung, die mir noch nie untergekommen ist:
Exception in CreateAndProcessScript: Handling Aktionsliste: Range check error

Code: Alles auswählen

(290)     [1] [Feb 20 15:47:53:072] [iview] Prog: force_min_loglevel: 0
(291)     [1] [Feb 20 15:47:53:072] [iview] Prog: default_loglevel: 7
(292)     [1] [Feb 20 15:47:53:072] [iview] Prog: debug_prog: False
(293)     [1] [Feb 20 15:47:53:072] [iview] Prog: debug_lib: False
(294)     [1] [Feb 20 15:47:53:072] [iview] Prog: ScriptErrorMessages: False
(295)     [1] [Feb 20 15:47:53:072] [iview] Prog: AutoActivityDisplay: False
(297)     [1] [Feb 20 15:47:53:119] [iview] 
(298)     [1] [Feb 20 15:47:53:119] [iview] ============ Version 4.12.0.25 script "p:\iview\setup.ins"
(299)     [1] [Feb 20 15:47:53:119] [iview]              used script encoding: cp1252
(300)     [1] [Feb 20 15:47:53:119] [iview]              used system encoding: cp1252
(301)     [1] [Feb 20 15:47:53:119] [iview]              start: 2019-02-20  15:47:53 
(302)     [1] [Feb 20 15:47:53:119] [iview]              installing product: iview_4.52-0.12
(305)     [1] [Feb 20 15:47:53:121] [iview]              opsi-script running as    "SYSTEM"
(306)     [1] [Feb 20 15:47:53:121] [iview]              opsi-script running with admin privileges
(307)     [1] [Feb 20 15:47:53:121] [iview]              opsi-script running in standard script mode
(308)     [1] [Feb 20 15:47:53:121] [iview] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
(309)     [1] [Feb 20 15:47:53:121] [iview] system infos:
(313)     [1] [Feb 20 15:47:53:122] [iview] DEU  -  System default locale 
(319)     [1] [Feb 20 15:47:53:122] [iview] MS Windows 10.0 64 Bit, Release: 1809, Edition: PRODUCT_PROFESSIONAL
(320)     [1] [Feb 20 15:47:53:122] [iview] opsi service version : 4
(321)     [1] [Feb 20 15:47:53:122] [iview] 
(326)     [4] [Feb 20 15:47:53:171] [iview] Warning: depricated: <LogLevel=> please use <setLogLevel=> 
(327)     [1] [Feb 20 15:47:53:171] [iview] LogLevel was 7
(328)     [1] [Feb 20 15:47:53:171] [iview] LogLevel set to 13
(399)     [4] [Feb 20 15:47:53:180] [iview] Property not existing in GetProductProperty - using default
(485)     [5] [Feb 20 15:47:53:183] [iview]   comment: Show product picture
(496)     [5] [Feb 20 15:47:53:196] [iview]     comment: Deinstalliere alte Versionen
(499)     [5] [Feb 20 15:47:53:196] [iview]     message Deinstalliere alte Versionen
(508)     [5] [Feb 20 15:47:53:200] [iview]       comment: Start uninstall sub section
(545)     [5] [Feb 20 15:47:53:227] [iview]       comment: uninstall sub section [1]
(549)     [3] [Feb 20 15:47:53:228] [iview]       Exception in CreateAndProcessScript: Handling Aktionsliste: Range check error
(550)     [1] [Feb 20 15:47:53:228] [iview] ___________________
(551)     [1] [Feb 20 15:47:53:228] [iview] script finished: failed
(552)     [1] [Feb 20 15:47:53:228] [iview] 0 errors
(553)     [1] [Feb 20 15:47:53:228] [iview] 0 warnings
(554)     [1] [Feb 20 15:47:53:228] [iview] 
(555)     [1] [Feb 20 15:47:53:228] [iview] installed product: iview Version: 4.52-0.12
(556)     [1] [Feb 20 15:47:53:228] [iview] 
Die delsub fängt wie folgt an:

Code: Alles auswählen

comment "uninstall sub section [1]"
Set $UninstallProgram32$ = $InstallDir32$ + "\" + $Inst_Prg$
Set $UninstallProgram64$ = $InstallDir64$ + "\" + $Inst_Prg$
 
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
        Message "Uninstalling " + $ProductName$ + " 32 Bit..."
 
        if FileExists($UninstallProgram32$)
                comment "Uninstall program found, starting uninstall"
                Winbatch_uninstall_32
                comment "Removing "+$InstallDir32$
                Files_uninstall_32
                sub_check_exitcode
        endif
endif
 
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
        Message "Uninstalling " + $ProductName$ + " 64 Bit..."
 
        if FileExists($UninstallProgram64$)
                comment "Uninstall program found, starting uninstall"
                Winbatch_uninstall_64
                comment "Removing "+$InstallDir64$
                Files_uninstall_64
                sub_check_exitcode
        endif
endif

comment "uninstall sub section [4]"
Habe dies nun an zwei unterschiedlichen Clients ausprobiert, beide werfen denselben Fehler...?
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Fehler bei CreateAndProcessScript: Range check error

Beitrag von n.wenselowski »

Hi,

bitte sicherstellen, dass opsi-winst aktuell ist und wenn es mit einer neueren Version nicht geht bitte mal das Loglevel hochschrauben.


Gruß

Niko

Code: Alles auswählen

import OPSI
Antworten