[Geloest] WinSCP uninstall /silent geht nicht

Antworten
brainy84
Beiträge: 167
Registriert: 24 Mär 2011, 22:58

[Geloest] WinSCP uninstall /silent geht nicht

Beitrag von brainy84 »

Hallo,

wenn ich WinSCP mit oben genanntem Parameter deinstallieren will geht das zwar wenn ich es lokal mache ohne Probleme. Opsi findet den Pfad und die Datei, aber steigt immer mit einem Exitcode -1 aus?

Kennst sich jemand damit aus?

Grüße
Zuletzt geändert von brainy84 am 07 Jan 2013, 11:40, insgesamt 1-mal geändert.
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: WinSCP uninstall /silent geht nicht

Beitrag von d.oertel »

Hi,

vielleicht gibst Du uns ein wenig von Deinem code und das log dazu ?

gruß
d.oertel


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


brainy84
Beiträge: 167
Registriert: 24 Mär 2011, 22:58

Re: WinSCP uninstall /silent geht nicht

Beitrag von brainy84 »

Hi,

ja klar. Sorry bin immer etwas spartanisch in der Hinsicht:

Code: Alles auswählen

[5] [Jan 07 11:08:26:359] --
[5] [Jan 07 11:08:26:359] --
[1] [Jan 07 11:08:26:359] opsi-winst 4.11.3.3 started at >>07.01.2013 11:08:25
[1] [Jan 07 11:08:26:359] startmessage opsi-winst created at CentralForm.FormCreate: 07.01.2013 11:08:25
[1] [Jan 07 11:08:26:359] startmessage StartProgramModes and create log: 07.01.2013 11:08:25
[1] [Jan 07 11:08:26:359] startmessage start opsi service connection: 07.01.2013 11:08:25
[1] [Jan 07 11:08:26:359] JSON Bench for backend_info "params":[],"id":1} Start: 11:08:25:609 Time: 00:00:00:750
[1] [Jan 07 11:08:26:359] startmessage create log: 07.01.2013 11:08:26
[6] [Jan 07 11:08:26:359] JSON service request https://192.168.5.155:4447/rpc getDepotId
[6] [Jan 07 11:08:26:468] JSON Bench for getDepotId "params":["nb14.tele-consulting.local"],"id":1} Start: 11:08:26:359 Time: 00:00:00:109
[6] [Jan 07 11:08:26:484] JSON service request https://192.168.5.155:4447/rpc backend_setOptions
[6] [Jan 07 11:08:26:546] JSON Bench for backend_setOptions "params":[{"processProductOnClientSequence":true}] Start: 11:08:26:484 Time: 00:00:00:062
[6] [Jan 07 11:08:26:562] JSON service request https://192.168.5.155:4447/rpc productOnClient_getObjects
[6] [Jan 07 11:08:27:015] JSON Bench for productOnClient_getObjects "params":["",{"clientId":"nb14.tele-consulting.loc Start: 11:08:26:562 Time: 00:00:00:453
[6] [Jan 07 11:08:27:062] JSON service request https://192.168.5.155:4447/rpc backend_setOptions
[6] [Jan 07 11:08:27:156] JSON Bench for backend_setOptions "params":[{"processProductOnClientSequence":false} Start: 11:08:27:062 Time: 00:00:00:094
[5] [Jan 07 11:08:27:171] Computername:nb14.tele-consulting.local
[5] [Jan 07 11:08:27:171] Computername according to Environment Variable :NB14
[5] [Jan 07 11:08:27:171] opsi service URL https://192.168.5.155:4447
[5] [Jan 07 11:08:27:171] Depot path:  p:\
[5] [Jan 07 11:08:27:171] 
[5] [Jan 07 11:08:27:187] bootmode BKSTD
[5] [Jan 07 11:08:27:187] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5] [Jan 07 11:08:27:187] Resolved sequence of products (07.01.2013 11:08:27): 
[5] [Jan 07 11:08:27:187] Product 16 	winscp : uninstall
[5] [Jan 07 11:08:27:187] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[6] [Jan 07 11:08:27:468] JSON service request https://192.168.5.155:4447/rpc getProductProperties_hash
[6] [Jan 07 11:08:27:593] JSON Bench for getProductProperties_hash "params":["winscp","nb14.tele-consulting.local"]," Start: 11:08:27:468 Time: 00:00:00:125
[6] [Jan 07 11:08:27:609] JSON service request https://192.168.5.155:4447/rpc getProduct_hash
[6] [Jan 07 11:08:27:703] JSON Bench for getProduct_hash "params":["winscp","tclanopsi01.tele-consulting.lo Start: 11:08:27:609 Time: 00:00:00:094
[6] [Jan 07 11:08:27:703] JSON service request https://192.168.5.155:4447/rpc productOnClient_getObjects
[6] [Jan 07 11:08:27:781] JSON Bench for productOnClient_getObjects "params":["",{"clientId":"nb14.tele-consulting.loc Start: 11:08:27:703 Time: 00:00:00:078
[5] [Jan 07 11:08:27:796] scriptname: "uninstall3264.ins", special path: "p:\winscp\"
[1] [Jan 07 11:08:27:968] 
[1] [Jan 07 11:08:27:968] ============ Version 4.11.3.3 WIN32 script "p:\winscp\uninstall3264.ins"
[1] [Jan 07 11:08:27:968]              start: 2013-01-07  11:08:27 
[1] [Jan 07 11:08:27:968]              installing product: winscp_5.12-1
[1] [Jan 07 11:08:27:968]              on client named    "nb14.tele-consulting.local"
[1] [Jan 07 11:08:27:968]              loggedin user    ""
[1] [Jan 07 11:08:27:968]              winst running as    "pcpatch"
[1] [Jan 07 11:08:27:968]              winst running with admin privileges
[1] [Jan 07 11:08:27:968]              winst running in standard script mode
[1] [Jan 07 11:08:27:968] [executing: "C:\Programme\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"]
[1] [Jan 07 11:08:27:968] system infos:
[1] [Jan 07 11:08:28:000] 00-0F-B0-C8-E0-C4  -  PC hardware address
[1] [Jan 07 11:08:28:000] nb14  -  IP name 
[1] [Jan 07 11:08:28:000] 192.168.5.65  -  IP address
[1] [Jan 07 11:08:28:000] DEU  -  System default locale 
[1] [Jan 07 11:08:28:000] MS Windowds 5.1 32 Bit
[1] [Jan 07 11:08:28:000] opsi service version : 4
[1] [Jan 07 11:08:28:000] 
[6] [Jan 07 11:08:28:000] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion]  opened
[6] [Jan 07 11:08:28:000] Key closed
[6] [Jan 07 11:08:28:218] opsi-winst has version  4.11.3.3, required is : >= 4.10.8.6
[5] [Jan 07 11:08:28:218] 
[5] [Jan 07 11:08:28:218] Set  $INST_SystemType$ = GetSystemType
[6] [Jan 07 11:08:28:218]   The value of the variable "$INST_SystemType$" is now: "x86 System"
[5] [Jan 07 11:08:28:218] 
[5] [Jan 07 11:08:28:218] Set  $INST_architecture$ = GetProductProperty("install_architecture","system specific")
[6] [Jan 07 11:08:28:218]   The value of the variable "$INST_architecture$" is now: "system specific"
[5] [Jan 07 11:08:28:218] 
[5] [Jan 07 11:08:28:218] Set  $LogDir$ = "C:\tmp"
[6] [Jan 07 11:08:28:218]   The value of the variable "$LogDir$" is now: "C:\tmp"
[5] [Jan 07 11:08:28:218] 
[5] [Jan 07 11:08:28:218] Set  $ProductId$       = "winscp"
[6] [Jan 07 11:08:28:218]   The value of the variable "$ProductId$" is now: "winscp"
[5] [Jan 07 11:08:28:218] 
[5] [Jan 07 11:08:28:218] Set  $InstallDir32$    = "C:\Programme\WinSCP"
[6] [Jan 07 11:08:28:218]   The value of the variable "$InstallDir32$" is now: "C:\Programme\WinSCP"
[5] [Jan 07 11:08:28:218] 
[5] [Jan 07 11:08:28:218] Set  $InstallDir64$    = "C:\Programme\WinSCP"
[6] [Jan 07 11:08:28:218]   The value of the variable "$InstallDir64$" is now: "C:\Programme\WinSCP"
[5] [Jan 07 11:08:28:218] 
[5] [Jan 07 11:08:28:218] Set  $LicenseRequired$ = "false"
[6] [Jan 07 11:08:28:218]   The value of the variable "$LicenseRequired$" is now: "false"
[5] [Jan 07 11:08:28:218] 
[5] [Jan 07 11:08:28:218] Set  $LicensePool$     = "p_" + $ProductId$
[6] [Jan 07 11:08:28:218]   The value of the variable "$LicensePool$" is now: "p_winscp"
[5] [Jan 07 11:08:28:218] comment: Show product picture
[5] [Jan 07 11:08:28:218] message Uninstalling winscp ...
[5] [Jan 07 11:08:28:234] 
[5] [Jan 07 11:08:28:234] If
[6] [Jan 07 11:08:28:234]     Starting query if file exist ...
[5] [Jan 07 11:08:28:234]   FileExists("P:\winscp\delsub3264.ins")   <<< result true
[5] [Jan 07 11:08:28:234] Then
[5] [Jan 07 11:08:28:234]   comment: Start uninstall sub section
[6] [Jan 07 11:08:28:406]   
[6] [Jan 07 11:08:28:406]   ~~~~~~~ Start Sub ~~~~~~~  Sub "P:\winscp\delsub3264.ins"
[5] [Jan 07 11:08:28:421]   
[5] [Jan 07 11:08:28:421]   Set  $MsiId32$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'
[6] [Jan 07 11:08:28:421]     The value of the variable "$MsiId32$" is now: "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"
[5] [Jan 07 11:08:28:421]   
[5] [Jan 07 11:08:28:421]   Set  $UninstallProgram32$ = $InstallDir32$ + "\unins000.exe"
[6] [Jan 07 11:08:28:421]     The value of the variable "$UninstallProgram32$" is now: "C:\Programme\WinSCP\unins000.exe"
[5] [Jan 07 11:08:28:421]   
[5] [Jan 07 11:08:28:421]   Set  $MsiId64$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'
[6] [Jan 07 11:08:28:421]     The value of the variable "$MsiId64$" is now: "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"
[5] [Jan 07 11:08:28:421]   
[5] [Jan 07 11:08:28:421]   Set  $UninstallProgram64$ = $InstallDir64$ + "\unins000.exe"
[6] [Jan 07 11:08:28:421]     The value of the variable "$UninstallProgram64$" is now: "C:\Programme\WinSCP\unins000.exe"
[5] [Jan 07 11:08:28:421]   
[5] [Jan 07 11:08:28:421]   If
[5] [Jan 07 11:08:28:421]     $INST_SystemType$ = "x86 System"   <<< result true
[5] [Jan 07 11:08:28:421]     $INST_architecture$ = "system specific"   <<< result true
[5] [Jan 07 11:08:28:421]     ($INST_architecture$ = "system specific")   <<< result true
[5] [Jan 07 11:08:28:421]     ($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")   <<< result true
[5] [Jan 07 11:08:28:421]     $INST_architecture$ = "both"   <<< result false
[5] [Jan 07 11:08:28:421]     $INST_architecture$ = "32 only"   <<< result false
[5] [Jan 07 11:08:28:421]     ($INST_architecture$ = "32 only")   <<< result false
[5] [Jan 07 11:08:28:421]     ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")   <<< result false
[5] [Jan 07 11:08:28:421]     (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")   <<< result true
[5] [Jan 07 11:08:28:421]   Then
[5] [Jan 07 11:08:28:421]     message Uninstalling winscp 32 Bit...
[5] [Jan 07 11:08:28:421]     
[5] [Jan 07 11:08:28:421]     If
[6] [Jan 07 11:08:28:437]         Starting query if file exist ...
[5] [Jan 07 11:08:28:437]       FileExists($UninstallProgram32$)   <<< result true
[5] [Jan 07 11:08:28:437]     Then
[5] [Jan 07 11:08:28:437]       comment: Uninstall program found, starting uninstall
[5] [Jan 07 11:08:28:437]       
[5] [Jan 07 11:08:28:437]       Execution of Winbatch_uninstall_32
[6] [Jan 07 11:08:28:437]         Call ""$UninstallProgram$" /silent"
[6] [Jan 07 11:08:28:437]            Waiting until the called process is finished
[6] [Jan 07 11:08:28:437]         Start process as invoker: pcpatch
[3] [Jan 07 11:08:28:437]         Exception in StartProcess_cp: Failed to execute "$UninstallProgram$" /silent : 2
[6] [Jan 07 11:08:28:437]         
[6] [Jan 07 11:08:28:437]       
[6] [Jan 07 11:08:28:437]       ~~~~~~~ Start Sub ~~~~~~~  sub_check_exitcode
[5] [Jan 07 11:08:28:437]       comment: Test for installation success via exit code
[5] [Jan 07 11:08:28:437]       
[5] [Jan 07 11:08:28:437]       Set  $ExitCode$ = getLastExitCode
[6] [Jan 07 11:08:28:437]         The value of the variable "$ExitCode$" is now: "-1"
[5] [Jan 07 11:08:28:437]       
[5] [Jan 07 11:08:28:437]       If
[5] [Jan 07 11:08:28:437]         $ExitCode$ = "0"   <<< result false
[5] [Jan 07 11:08:28:437]         ($ExitCode$ = "0")   <<< result false
[5] [Jan 07 11:08:28:437]       Then
[5] [Jan 07 11:08:28:437]       
[5] [Jan 07 11:08:28:437]       Else
[5] [Jan 07 11:08:28:437]         comment: Setup program gives a exitcode unequal zero: -1
[5] [Jan 07 11:08:28:437]         
[5] [Jan 07 11:08:28:437]         If
[5] [Jan 07 11:08:28:437]           $ExitCode$ = "1605"   <<< result false
[5] [Jan 07 11:08:28:437]           ($ExitCode$ = "1605")   <<< result false
[5] [Jan 07 11:08:28:437]         Then
[5] [Jan 07 11:08:28:437]         
[5] [Jan 07 11:08:28:437]         Else
[5] [Jan 07 11:08:28:437]           
[5] [Jan 07 11:08:28:437]           If
[5] [Jan 07 11:08:28:437]             $ExitCode$ = "1641"   <<< result false
[5] [Jan 07 11:08:28:437]             ($ExitCode$ = "1641")   <<< result false
[5] [Jan 07 11:08:28:437]           Then
[5] [Jan 07 11:08:28:437]           
[5] [Jan 07 11:08:28:437]           Else
[5] [Jan 07 11:08:28:437]             
[5] [Jan 07 11:08:28:437]             If
[5] [Jan 07 11:08:28:437]               $ExitCode$ = "3010"   <<< result false
[5] [Jan 07 11:08:28:437]               ($ExitCode$ = "3010")   <<< result false
[5] [Jan 07 11:08:28:437]             Then
[5] [Jan 07 11:08:28:437]             
[5] [Jan 07 11:08:28:437]             Else
[3] [Jan 07 11:08:28:437]               Error: Fatal: Setup program gives an unknown exitcode unequal zero: -1
[5] [Jan 07 11:08:28:437]               Error level set to fatal
[5] [Jan 07 11:08:28:437]               Process aborted
[6] [Jan 07 11:08:28:437]       
[6] [Jan 07 11:08:28:437]       ~~~~~~~ End Sub   ~~~~~~~  sub_check_exitcode
[6] [Jan 07 11:08:28:437]       
[5] [Jan 07 11:08:28:437]       Process aborted
[6] [Jan 07 11:08:28:437]   
[6] [Jan 07 11:08:28:437]   ~~~~~~~ End Sub   ~~~~~~~  Sub "P:\winscp\delsub3264.ins"
[6] [Jan 07 11:08:28:437]   
[5] [Jan 07 11:08:28:437]   Process aborted
[1] [Jan 07 11:08:28:437] ___________________
[1] [Jan 07 11:08:28:437] script finished
[1] [Jan 07 11:08:28:437] 2 errors
[1] [Jan 07 11:08:28:437] 0 warnings
[1] [Jan 07 11:08:28:437] 
[1] [Jan 07 11:08:28:437] installed product: winscp Version: 5.12-1
[1] [Jan 07 11:08:28:437] 
[6] [Jan 07 11:08:28:437] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Jan 07 11:08:28:437]   Search "c:\opsi.org\tmp\"
[6] [Jan 07 11:08:28:437] JSON service request https://192.168.5.155:4447/rpc productOnClient_updateObject
[6] [Jan 07 11:08:28:546] JSON Bench for productOnClient_updateObject "params":[{"clientId":"nb14.tele-consulting.local" Start: 11:08:28:437 Time: 00:00:00:109
[6] [Jan 07 11:08:28:562] Registry key [HKLM\SOFTWARE\opsi.org\winst]  opened
[6] [Jan 07 11:08:28:562]                 Variable "RebootRequested"  is keeping its value "0"
[6] [Jan 07 11:08:28:562]                 Variable "LastLogFilename"  is keeping its value "c:\tmp\instlog.txt"
[6] [Jan 07 11:08:28:562]                 Variable "ContinueLogFile"  is keeping its value "0"
[6] [Jan 07 11:08:28:562]                 Variable "NumberOfErrors"  is keeping its value "0"
[6] [Jan 07 11:08:28:781]                 Key flushed
[6] [Jan 07 11:08:28:781]                 Key closed
[5] [Jan 07 11:08:28:796] -------- submitted part of log file ends here, see the rest of log file on client ----------
Der Fehler kommt nur beim Uninstall von WinSCP und CDBurnerXP mittels dem Befehl "pfad zu unins000.exe /silent". Dabei kommt die Meldung:
Exception in StartProcess_cp: Failed to execute "$UninstallProgram$" /SILENT /SUPPRESSMSGBOXES /NORESTART : 2
mit der ich recht wenig anfangen kann. Exitcode ist dann -1

Grüße

brainy84
othiman
Beiträge: 126
Registriert: 09 Sep 2009, 14:15
Wohnort: Aachen, Germany

Re: WinSCP uninstall /silent geht nicht

Beitrag von othiman »

Hi,

also irgendwie sieht das im Log für mich so aus als würde $UninstallProgram$ gar nicht gesetzt werden, sondern nur $UninstallProgram32$ und $UninstallProgram64$...

Viele Grüße
Thomas
brainy84
Beiträge: 167
Registriert: 24 Mär 2011, 22:58

[Geloest] WinSCP uninstall /silent geht nicht

Beitrag von brainy84 »

Hi,

hm dummer Fehler, aber konnte mit der Fehlermeldung einfach nichts anfangen (vielleicht auch als Hinweis). Danke
Antworten