[GELÖST] LibreOffice 3.5.5.3 deinstallieren?
Re: LibreOffice 3.5.5.3 deinstallieren?
Leider hast du keine Angaben zum OS gemacht, zwecks WMIC Unterstützung.
Zudem muss dies als Dosbatch / DosInAnIcon erfolgen. poste mal den Logauszug. Am Ende gibt er dir nämlich auch ein return value. (nicht vom MSI-Checkexitcode, sondern vom Command selbst)
Zudem muss dies als Dosbatch / DosInAnIcon erfolgen. poste mal den Logauszug. Am Ende gibt er dir nämlich auch ein return value. (nicht vom MSI-Checkexitcode, sondern vom Command selbst)
Re: LibreOffice 3.5.5.3 deinstallieren?
Ach so, als Dosbatchmensch90 hat geschrieben:Leider hast du keine Angaben zum OS gemacht, zwecks WMIC Unterstützung.
Zudem muss dies als Dosbatch / DosInAnIcon erfolgen. poste mal den Logauszug. Am Ende gibt er dir nämlich auch ein return value. (nicht vom MSI-Checkexitcode, sondern vom Command selbst)

Code: Alles auswählen
[5] [Mrz 11 12:39:00:406] [libreoffice3.5.5] scriptname: "uninstall.ins", special path: "p:\install\libreoffice3.5.5\"
[1] [Mrz 11 12:39:00:419] [libreoffice3.5.5]
[1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] ============ Version 4.11.3.6 WIN32 script "p:\install\libreoffice3.5.5\uninstall.ins"
[1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] start: 2014-03-11 12:39:00
[1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] installing product: libreoffice3.5.5_3.5.5-1
[1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] on client named "firma57.office.bo"
[1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] loggedin user ""
[1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] winst running as "SYSTEM"
[1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] winst running with admin privileges
[1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] winst running in standard script mode
[1] [Mrz 11 12:39:00:420] [libreoffice3.5.5] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
[1] [Mrz 11 12:39:00:420] [libreoffice3.5.5] system infos:
[1] [Mrz 11 12:39:00:426] [libreoffice3.5.5] 18-A9-05-B5-BA-46 - PC hardware address
[1] [Mrz 11 12:39:00:426] [libreoffice3.5.5] firma57.firma - IP name
[1] [Mrz 11 12:39:00:426] [libreoffice3.5.5] 192.168.56.1 - IP address
[1] [Mrz 11 12:39:00:426] [libreoffice3.5.5] DEU - System default locale
[1] [Mrz 11 12:39:00:426] [libreoffice3.5.5] MS Windowds 6.1 64 Bit
[1] [Mrz 11 12:39:00:426] [libreoffice3.5.5] opsi service version : 4
[1] [Mrz 11 12:39:00:426] [libreoffice3.5.5]
[6] [Mrz 11 12:39:00:428] [libreoffice3.5.5] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion] opened
[6] [Mrz 11 12:39:00:428] [libreoffice3.5.5] Key closed
[1] [Mrz 11 12:39:00:511] [libreoffice3.5.5] LogLevel was 6
[1] [Mrz 11 12:39:00:511] [libreoffice3.5.5] LogLevel set to 8
[5] [Mrz 11 12:39:00:511] [libreoffice3.5.5] ExitOnError was True is set to false
[5] [Mrz 11 12:39:00:511] [libreoffice3.5.5] ReportMessages was True is set to false
[5] [Mrz 11 12:39:00:511] [libreoffice3.5.5]
[5] [Mrz 11 12:39:00:511] [libreoffice3.5.5] Set $ProductName$ = "libreoffice"
[6] [Mrz 11 12:39:00:511] [libreoffice3.5.5] The value of the variable "$ProductName$" is now: "libreoffice"
[5] [Mrz 11 12:39:00:511] [libreoffice3.5.5]
[5] [Mrz 11 12:39:00:511] [libreoffice3.5.5] Set $ProductPicture$ = ""
[6] [Mrz 11 12:39:00:511] [libreoffice3.5.5] The value of the variable "$ProductPicture$" is now: ""
[6] [Mrz 11 12:39:00:519] [libreoffice3.5.5]
[6] [Mrz 11 12:39:00:519] [libreoffice3.5.5] ~~~~~~~ Start Sub ~~~~~~~ sub "P:\install\libreoffice3.5.5\SubUninstall.ins"
[5] [Mrz 11 12:39:00:522] [libreoffice3.5.5]
[5] [Mrz 11 12:39:00:522] [libreoffice3.5.5] Set $local_wmic$ = "wmic.exe"
[6] [Mrz 11 12:39:00:522] [libreoffice3.5.5] The value of the variable "$local_wmic$" is now: "wmic.exe"
[5] [Mrz 11 12:39:00:522] [libreoffice3.5.5]
[5] [Mrz 11 12:39:00:522] [libreoffice3.5.5] Set $local_wmic_actionstring$ = EscapeString: product where "name like 'LibreOffice%%'" call uninstall /nointeractive
[6] [Mrz 11 12:39:00:522] [libreoffice3.5.5] The value of the variable "$local_wmic_actionstring$" is now: "product where "name like 'LibreOffice%%'" call uninstall /nointeractive"
[6] [Mrz 11 12:39:00:522] [libreoffice3.5.5] Section ending since next line is starting with "["
[6] [Mrz 11 12:39:00:522] [libreoffice3.5.5]
[6] [Mrz 11 12:39:00:522] [libreoffice3.5.5] ~~~~~~~ End Sub ~~~~~~~ sub "P:\install\libreoffice3.5.5\SubUninstall.ins"
[6] [Mrz 11 12:39:00:522] [libreoffice3.5.5]
[1] [Mrz 11 12:39:00:522] [libreoffice3.5.5] ___________________
[1] [Mrz 11 12:39:00:522] [libreoffice3.5.5] script finished
[1] [Mrz 11 12:39:00:522] [libreoffice3.5.5] 0 errors
[1] [Mrz 11 12:39:00:522] [libreoffice3.5.5] 0 warnings
[1] [Mrz 11 12:39:00:522] [libreoffice3.5.5]
[1] [Mrz 11 12:39:00:522] [libreoffice3.5.5] installed product: libreoffice3.5.5 Version: 3.5.5-1
[1] [Mrz 11 12:39:00:522] [libreoffice3.5.5]
[6] [Mrz 11 12:39:00:522] [libreoffice3.5.5] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Mrz 11 12:39:00:523] [libreoffice3.5.5] Search "c:\opsi.org\tmp\"
[8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] Temp bat files deleted, next: free script
[8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] End of CreateAndProcessScript
[8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] After CreateAndProcessScript
[8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] End ProcessNonZeroScript
[8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] First ProcessNonZeroScript finished
[8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] In opsi4data.UpdateSwitches, Actionstr: uninstall
[6] [Mrz 11 12:39:00:523] [libreoffice3.5.5] JSON service request https://192.168.0.109:4447/rpc productOnClient_updateObject
[8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] JSON service request Furlhttps://192.168.0.109:4447/rpc
[8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] JSON service request str{"method":"productOnClient_updateObject","params":[{"clientId":"firma57.office.bo","actionResult":"successful","installationStatus":"not_installed","actionRequest":"none","packageVersion":"1","ident":"libreoffice3.5.5;LocalbootProduct;firma57.office.bo","productType":"LocalbootProduct","lastAction":"uninstall","productVersion":"3.5.5","modificationTime":"2014-03-11 12:18:07","productId":"libreoffice3.5.5","actionProgress":"","type":"ProductOnClient","targetConfiguration":"forbidden","actionSequence":-1}],"id":1}
[6] [Mrz 11 12:39:00:835] [libreoffice3.5.5] JSON Bench for productOnClient_updateObject "params":[{"clientId":"firma57.office.bo","acti Start: 12:39:00:523 Time: 00:00:00:312
[8] [Mrz 11 12:39:00:835] [libreoffice3.5.5] JSON Call: {"method":"productOnClient_updateObject","params":[{"clientId":"firma57.office.bo","actionResult":"successful","installationStatus":"not_installed","actionRequest":"none","packageVersion":"1","ident":"libreoffice3.5.5;LocalbootProduct;firma57.office.bo","productType":"LocalbootProduct","lastAction":"uninstall","productVersion":"3.5.5","modificationTime":"2014-03-11 12:18:07","productId":"libreoffice3.5.5","actionProgress":"","type":"ProductOnClient","targetConfiguration":"forbidden","actionSequence":-1}],"id":1} Time: 00:00:00:312
[7] [Mrz 11 12:39:00:841] Registry started with redirection (32 Bit)
[6] [Mrz 11 12:39:00:841] Registry key [HKLM\SOFTWARE\opsi.org\winst] opened
[6] [Mrz 11 12:39:00:841] Variable "RebootRequested" is keeping its value "0"
[6] [Mrz 11 12:39:00:841] Variable "LastLogFilename" is keeping its value "c:\tmp\instlog.txt"
[6] [Mrz 11 12:39:00:841] Variable "ContinueLogFile" is keeping its value "0"
[6] [Mrz 11 12:39:00:841] Variable "NumberOfErrors" is keeping its value "0"
[6] [Mrz 11 12:39:03:192] Key flushed
[6] [Mrz 11 12:39:03:192] Key closed
[5] [Mrz 11 12:39:03:198] -------- submitted part of log file ends here, see the rest of log file on client ----------
Gruß
D1Ck3n
D1Ck3n
Re: LibreOffice 3.5.5.3 deinstallieren?
Als Registry ist das natürlich ein wenig... sinnfrei.D1Ck3n hat geschrieben:Ach so, als Dosbatchmensch90 hat geschrieben:Leider hast du keine Angaben zum OS gemacht, zwecks WMIC Unterstützung.
Zudem muss dies als Dosbatch / DosInAnIcon erfolgen. poste mal den Logauszug. Am Ende gibt er dir nämlich auch ein return value. (nicht vom MSI-Checkexitcode, sondern vom Command selbst)dann weiss ich, wie ich das zusammenbastle, ich habe damit schon Registry-Einträge gesetzt^^
Code: Alles auswählen
[5] [Mrz 11 12:39:00:406] [libreoffice3.5.5] scriptname: "uninstall.ins", special path: "p:\install\libreoffice3.5.5\" [1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] [1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] ============ Version 4.11.3.6 WIN32 script "p:\install\libreoffice3.5.5\uninstall.ins" [1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] start: 2014-03-11 12:39:00 [1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] installing product: libreoffice3.5.5_3.5.5-1 [1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] on client named "firma57.office.bo" [1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] loggedin user "" [1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] winst running as "SYSTEM" [1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] winst running with admin privileges [1] [Mrz 11 12:39:00:419] [libreoffice3.5.5] winst running in standard script mode [1] [Mrz 11 12:39:00:420] [libreoffice3.5.5] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe" [1] [Mrz 11 12:39:00:420] [libreoffice3.5.5] system infos: [1] [Mrz 11 12:39:00:426] [libreoffice3.5.5] 18-A9-05-B5-BA-46 - PC hardware address [1] [Mrz 11 12:39:00:426] [libreoffice3.5.5] firma57.firma - IP name [1] [Mrz 11 12:39:00:426] [libreoffice3.5.5] 192.168.56.1 - IP address [1] [Mrz 11 12:39:00:426] [libreoffice3.5.5] DEU - System default locale [1] [Mrz 11 12:39:00:426] [libreoffice3.5.5] MS Windowds 6.1 64 Bit [1] [Mrz 11 12:39:00:426] [libreoffice3.5.5] opsi service version : 4 [1] [Mrz 11 12:39:00:426] [libreoffice3.5.5] [6] [Mrz 11 12:39:00:428] [libreoffice3.5.5] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion] opened [6] [Mrz 11 12:39:00:428] [libreoffice3.5.5] Key closed [1] [Mrz 11 12:39:00:511] [libreoffice3.5.5] LogLevel was 6 [1] [Mrz 11 12:39:00:511] [libreoffice3.5.5] LogLevel set to 8 [5] [Mrz 11 12:39:00:511] [libreoffice3.5.5] ExitOnError was True is set to false [5] [Mrz 11 12:39:00:511] [libreoffice3.5.5] ReportMessages was True is set to false [5] [Mrz 11 12:39:00:511] [libreoffice3.5.5] [5] [Mrz 11 12:39:00:511] [libreoffice3.5.5] Set $ProductName$ = "libreoffice" [6] [Mrz 11 12:39:00:511] [libreoffice3.5.5] The value of the variable "$ProductName$" is now: "libreoffice" [5] [Mrz 11 12:39:00:511] [libreoffice3.5.5] [5] [Mrz 11 12:39:00:511] [libreoffice3.5.5] Set $ProductPicture$ = "" [6] [Mrz 11 12:39:00:511] [libreoffice3.5.5] The value of the variable "$ProductPicture$" is now: "" [6] [Mrz 11 12:39:00:519] [libreoffice3.5.5] [6] [Mrz 11 12:39:00:519] [libreoffice3.5.5] ~~~~~~~ Start Sub ~~~~~~~ sub "P:\install\libreoffice3.5.5\SubUninstall.ins" [5] [Mrz 11 12:39:00:522] [libreoffice3.5.5] [5] [Mrz 11 12:39:00:522] [libreoffice3.5.5] Set $local_wmic$ = "wmic.exe" [6] [Mrz 11 12:39:00:522] [libreoffice3.5.5] The value of the variable "$local_wmic$" is now: "wmic.exe" [5] [Mrz 11 12:39:00:522] [libreoffice3.5.5] [5] [Mrz 11 12:39:00:522] [libreoffice3.5.5] Set $local_wmic_actionstring$ = EscapeString: product where "name like 'LibreOffice%%'" call uninstall /nointeractive [6] [Mrz 11 12:39:00:522] [libreoffice3.5.5] The value of the variable "$local_wmic_actionstring$" is now: "product where "name like 'LibreOffice%%'" call uninstall /nointeractive" [6] [Mrz 11 12:39:00:522] [libreoffice3.5.5] Section ending since next line is starting with "[" [6] [Mrz 11 12:39:00:522] [libreoffice3.5.5] [6] [Mrz 11 12:39:00:522] [libreoffice3.5.5] ~~~~~~~ End Sub ~~~~~~~ sub "P:\install\libreoffice3.5.5\SubUninstall.ins" [6] [Mrz 11 12:39:00:522] [libreoffice3.5.5] [1] [Mrz 11 12:39:00:522] [libreoffice3.5.5] ___________________ [1] [Mrz 11 12:39:00:522] [libreoffice3.5.5] script finished [1] [Mrz 11 12:39:00:522] [libreoffice3.5.5] 0 errors [1] [Mrz 11 12:39:00:522] [libreoffice3.5.5] 0 warnings [1] [Mrz 11 12:39:00:522] [libreoffice3.5.5] [1] [Mrz 11 12:39:00:522] [libreoffice3.5.5] installed product: libreoffice3.5.5 Version: 3.5.5-1 [1] [Mrz 11 12:39:00:522] [libreoffice3.5.5] [6] [Mrz 11 12:39:00:522] [libreoffice3.5.5] Delete "c:\opsi.org\tmp\_winstbat_*" [6] [Mrz 11 12:39:00:523] [libreoffice3.5.5] Search "c:\opsi.org\tmp\" [8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] Temp bat files deleted, next: free script [8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] End of CreateAndProcessScript [8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] After CreateAndProcessScript [8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] End ProcessNonZeroScript [8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] First ProcessNonZeroScript finished [8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] In opsi4data.UpdateSwitches, Actionstr: uninstall [6] [Mrz 11 12:39:00:523] [libreoffice3.5.5] JSON service request https://192.168.0.109:4447/rpc productOnClient_updateObject [8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] JSON service request Furlhttps://192.168.0.109:4447/rpc [8] [Mrz 11 12:39:00:523] [libreoffice3.5.5] JSON service request str{"method":"productOnClient_updateObject","params":[{"clientId":"firma57.office.bo","actionResult":"successful","installationStatus":"not_installed","actionRequest":"none","packageVersion":"1","ident":"libreoffice3.5.5;LocalbootProduct;firma57.office.bo","productType":"LocalbootProduct","lastAction":"uninstall","productVersion":"3.5.5","modificationTime":"2014-03-11 12:18:07","productId":"libreoffice3.5.5","actionProgress":"","type":"ProductOnClient","targetConfiguration":"forbidden","actionSequence":-1}],"id":1} [6] [Mrz 11 12:39:00:835] [libreoffice3.5.5] JSON Bench for productOnClient_updateObject "params":[{"clientId":"firma57.office.bo","acti Start: 12:39:00:523 Time: 00:00:00:312 [8] [Mrz 11 12:39:00:835] [libreoffice3.5.5] JSON Call: {"method":"productOnClient_updateObject","params":[{"clientId":"firma57.office.bo","actionResult":"successful","installationStatus":"not_installed","actionRequest":"none","packageVersion":"1","ident":"libreoffice3.5.5;LocalbootProduct;firma57.office.bo","productType":"LocalbootProduct","lastAction":"uninstall","productVersion":"3.5.5","modificationTime":"2014-03-11 12:18:07","productId":"libreoffice3.5.5","actionProgress":"","type":"ProductOnClient","targetConfiguration":"forbidden","actionSequence":-1}],"id":1} Time: 00:00:00:312 [7] [Mrz 11 12:39:00:841] Registry started with redirection (32 Bit) [6] [Mrz 11 12:39:00:841] Registry key [HKLM\SOFTWARE\opsi.org\winst] opened [6] [Mrz 11 12:39:00:841] Variable "RebootRequested" is keeping its value "0" [6] [Mrz 11 12:39:00:841] Variable "LastLogFilename" is keeping its value "c:\tmp\instlog.txt" [6] [Mrz 11 12:39:00:841] Variable "ContinueLogFile" is keeping its value "0" [6] [Mrz 11 12:39:00:841] Variable "NumberOfErrors" is keeping its value "0" [6] [Mrz 11 12:39:03:192] Key flushed [6] [Mrz 11 12:39:03:192] Key closed [5] [Mrz 11 12:39:03:198] -------- submitted part of log file ends here, see the rest of log file on client ----------

Schick ruhig nochmal die Logdatei, sobald dus via DosBatch getriggert hast. Dort sollte via Value Return 0 der Erfolg bestätigt sein. Sofern du auch das Helppack installiert hast, so wird dir auch dies automatisch deinstalliert

Re: LibreOffice 3.5.5.3 deinstallieren?
So sieht mein Skript nun aus:
aber klappen tut es leider immernoch nicht
Was habe ich falsch gemacht?
Gruß
D1Ck3n
Code: Alles auswählen
[Initial]
Message= LibreOffice deinstallieren
SetLogLevel=6
ExitOnError=false
ScriptErrorMessages=true
TraceMode=off
[Aktionen]
DosInAnIcon_uninstall
[DosInAnIcon_uninstall]
DefVar $local_wmic$
DefVar $local_wmic_actionstring$
; Angabe der Deinstallationsroutine
Set $local_wmic$ = "wmic.exe"
; Angabe des WMIC-Actionsstrings
Set $local_wmic_actionstring$ = EscapeString: product where "name like 'LibreOffice%%'" call uninstall /nointeractive
"$local_wmic$" $local_wmic_actionstring$

Gruß
D1Ck3n
Gruß
D1Ck3n
D1Ck3n
Re: LibreOffice 3.5.5.3 deinstallieren?
Ich habe selten gesehen, dass def var und co in einer DosInAnIcon Section funktionieren...
Ich lege dir daher gerne das Handbuch von Opsi ans Herz
Ich lege dir daher gerne das Handbuch von Opsi ans Herz

Re: LibreOffice 3.5.5.3 deinstallieren?
Also ich finde zu dem Thema nichts im Handbuch. In welchem Kapitel wird das denn erklärt?mensch90 hat geschrieben:Ich habe selten gesehen, dass def var und co in einer DosInAnIcon Section funktionieren...
Ich lege dir daher gerne das Handbuch von Opsi ans Herz
Gruß
D1Ck3n
D1Ck3n
Re: LibreOffice 3.5.5.3 deinstallieren?
Ich möchte dir ja jetzt nicht alles vorkauen, daher poste ich mal einen gleichen Uninstallvorgang eines anderen Produktes, anhand dessen du verstehst & lernst.
Versuche erst OPSI zu verstehen, es ist nicht schwierig, und kopiere nicht wild Lösungen aus dem Forum - verstehen und anwenden ist die Devise - dann klapps auch mit dem Libre
Versuche erst OPSI zu verstehen, es ist nicht schwierig, und kopiere nicht wild Lösungen aus dem Forum - verstehen und anwenden ist die Devise - dann klapps auch mit dem Libre

Code: Alles auswählen
; Deinstallation von Sophos
; ----------------------------------------------------------------
[Actions]
requiredWinstVersion >= "4.11.2.6"
; Variablendefinition
; ----------------------------------------------------------------
; statisch, nicht verändern
DefVar $errorcode$
DefVar $logdir$
DefVar $productid$
; variabel, frei veränderbar
DefVar $local_wmic$
DefVar $local_wmic_actionstring$
; Variablenzuweisung
; ----------------------------------------------------------------
; statisch, nur den Gegebenheiten anpassen
Set $logdir$ = "%SystemDrive%\tmp"
Set $productid$ = "sophos"
; teilstatisch, nur den Gegebenheiten anpassen
; Angabe der Deinstallationsroutine
Set $local_wmic$ = "wmic.exe"
; Angabe des WMIC-Actionsstrings
Set $local_wmic_actionstring$ = EscapeString: product where "name like 'Sophos%%'" call uninstall /nointeractive
; Skriptbeginn
; ----------------------------------------------------------------
; Eigene Prozedurenaufrufe und Ablaufplanung
; ----------------------------------------------------------------
; variabel, frei veränderbar
Sub_preactions
Sub_uninstaller
Sub_postactions
; Skriptende
; Subprozeduren
; ----------------------------------------------------------------
; Installationsopener - statisch, nicht verändern
[Sub_preactions]
ShowBitmap "%ScriptPath%\resources\logo.png" $productid$
Message "Deinstallation von " + $productid$ + " wird ueberprueft..."
; variabel, frei veränderbar
[Sub_uninstaller]
Message "Der Sophos-Autoupdate-Service wird gestoppt..."
DOSInAnIcon_stop_service
Sub_errorhandler
Message "Sophos Antivirus, Remote Management und AutoUpdater wird deinstalliert..."
DosInAnIcon_uninstall
Sub_errorhandler
[Sub_postactions]
Message "Postaction wird durchgefuehrt..."
Message "Das System wird neu gestartet..."
ExitWindows /Reboot
; Fehlerbehandlungsroutine - statisch, nicht verändern
[Sub_errorhandler]
Set $errorcode$ = getLastExitCode
if ($errorcode$ = "0")
Message "Aktion war erfolgreich!"
else
Message "Aktion schlug mit Errorcode " + $errorcode$ + " fehl!"
isFatalError
endif
; Sektionen - variabel, frei veränderbar
; ----------------------------------------------------------------
[DOSInAnIcon_stop_service]
net stop "Sophos AutoUpdate Service"
[DosInAnIcon_uninstall]
"$local_wmic$" $local_wmic_actionstring$
Re: LibreOffice 3.5.5.3 deinstallieren?
Also, ich habe das Skript zum laufen bekommen und beim Systemstart wird auch fleißig Code ausgeführt, aber das verdammte Liebreoffice ist immer noch installiertmensch90 hat geschrieben:Ich möchte dir ja jetzt nicht alles vorkauen, daher poste ich mal einen gleichen Uninstallvorgang eines anderen Produktes, anhand dessen du verstehst & lernst.
Versuche erst OPSI zu verstehen, es ist nicht schwierig, und kopiere nicht wild Lösungen aus dem Forum - verstehen und anwenden ist die Devise - dann klapps auch mit dem Libre
Code: Alles auswählen
; Deinstallation von Sophos ; ---------------------------------------------------------------- [Actions] requiredWinstVersion >= "4.11.2.6" ; Variablendefinition ; ---------------------------------------------------------------- ; statisch, nicht verändern DefVar $errorcode$ DefVar $logdir$ DefVar $productid$ ; variabel, frei veränderbar DefVar $local_wmic$ DefVar $local_wmic_actionstring$ ; Variablenzuweisung ; ---------------------------------------------------------------- ; statisch, nur den Gegebenheiten anpassen Set $logdir$ = "%SystemDrive%\tmp" Set $productid$ = "sophos" ; teilstatisch, nur den Gegebenheiten anpassen ; Angabe der Deinstallationsroutine Set $local_wmic$ = "wmic.exe" ; Angabe des WMIC-Actionsstrings Set $local_wmic_actionstring$ = EscapeString: product where "name like 'Sophos%%'" call uninstall /nointeractive ; Skriptbeginn ; ---------------------------------------------------------------- ; Eigene Prozedurenaufrufe und Ablaufplanung ; ---------------------------------------------------------------- ; variabel, frei veränderbar Sub_preactions Sub_uninstaller Sub_postactions ; Skriptende ; Subprozeduren ; ---------------------------------------------------------------- ; Installationsopener - statisch, nicht verändern [Sub_preactions] ShowBitmap "%ScriptPath%\resources\logo.png" $productid$ Message "Deinstallation von " + $productid$ + " wird ueberprueft..." ; variabel, frei veränderbar [Sub_uninstaller] Message "Der Sophos-Autoupdate-Service wird gestoppt..." DOSInAnIcon_stop_service Sub_errorhandler Message "Sophos Antivirus, Remote Management und AutoUpdater wird deinstalliert..." DosInAnIcon_uninstall Sub_errorhandler [Sub_postactions] Message "Postaction wird durchgefuehrt..." Message "Das System wird neu gestartet..." ExitWindows /Reboot ; Fehlerbehandlungsroutine - statisch, nicht verändern [Sub_errorhandler] Set $errorcode$ = getLastExitCode if ($errorcode$ = "0") Message "Aktion war erfolgreich!" else Message "Aktion schlug mit Errorcode " + $errorcode$ + " fehl!" isFatalError endif ; Sektionen - variabel, frei veränderbar ; ---------------------------------------------------------------- [DOSInAnIcon_stop_service] net stop "Sophos AutoUpdate Service" [DosInAnIcon_uninstall] "$local_wmic$" $local_wmic_actionstring$

Code: Alles auswählen
6] [Mrz 12 12:28:59:805] [libreoffice3.5.5] opsi-winst has version 4.11.3.6, required is : >= 4.11.2.6
[5] [Mrz 12 12:28:59:806] [libreoffice3.5.5]
[5] [Mrz 12 12:28:59:806] [libreoffice3.5.5] Set $logdir$ = "C:\tmp"
[6] [Mrz 12 12:28:59:806] [libreoffice3.5.5] The value of the variable "$logdir$" is now: "C:\tmp"
[5] [Mrz 12 12:28:59:806] [libreoffice3.5.5]
[5] [Mrz 12 12:28:59:806] [libreoffice3.5.5] Set $productid$ = "libreoffice3.5.5"
[6] [Mrz 12 12:28:59:806] [libreoffice3.5.5] The value of the variable "$productid$" is now: "libreoffice3.5.5"
[5] [Mrz 12 12:28:59:806] [libreoffice3.5.5]
[5] [Mrz 12 12:28:59:806] [libreoffice3.5.5] Set $local_wmic$ = "wmic.exe"
[6] [Mrz 12 12:28:59:806] [libreoffice3.5.5] The value of the variable "$local_wmic$" is now: "wmic.exe"
[5] [Mrz 12 12:28:59:806] [libreoffice3.5.5]
[5] [Mrz 12 12:28:59:806] [libreoffice3.5.5] Set $local_wmic_actionstring$ = EscapeString: product where "name like 'LibreOffice%%'" call uninstall /nointeractive
[6] [Mrz 12 12:28:59:806] [libreoffice3.5.5] The value of the variable "$local_wmic_actionstring$" is now: "product where "name like 'LibreOffice%%'" call uninstall /nointeractive"
[6] [Mrz 12 12:28:59:806] [libreoffice3.5.5]
[6] [Mrz 12 12:28:59:806] [libreoffice3.5.5] ~~~~~~~ Start Sub ~~~~~~~ Sub_preactions
[5] [Mrz 12 12:28:59:806] [libreoffice3.5.5] message Deinstallation von libreoffice3.5.5 wird ueberprueft...
[6] [Mrz 12 12:28:59:809] [libreoffice3.5.5]
[6] [Mrz 12 12:28:59:809] [libreoffice3.5.5] ~~~~~~~ End Sub ~~~~~~~ Sub_preactions
[6] [Mrz 12 12:28:59:809] [libreoffice3.5.5]
[6] [Mrz 12 12:28:59:809] [libreoffice3.5.5]
[6] [Mrz 12 12:28:59:809] [libreoffice3.5.5] ~~~~~~~ Start Sub ~~~~~~~ Sub_uninstaller
[5] [Mrz 12 12:28:59:809] [libreoffice3.5.5] message LibreOffice wird deinstalliert...
[5] [Mrz 12 12:28:59:811] [libreoffice3.5.5]
[5] [Mrz 12 12:28:59:811] [libreoffice3.5.5] 3 DosInAnIcon_uninstall
[6] [Mrz 12 12:28:59:812] [libreoffice3.5.5] c:\opsi.org\tmp\_winstbat_1.bat saved back
[6] [Mrz 12 12:28:59:812] [libreoffice3.5.5] Executing "cmd.exe" /C "c:\opsi.org\tmp\_winstbat_1.bat"
[6] [Mrz 12 12:32:02:542] [libreoffice3.5.5] ExitCode 0
[6] [Mrz 12 12:32:02:542] [libreoffice3.5.5]
[6] [Mrz 12 12:32:02:542] [libreoffice3.5.5] output:
[6] [Mrz 12 12:32:02:542] [libreoffice3.5.5] --------------
[6] [Mrz 12 12:32:02:542] [libreoffice3.5.5]
[6] [Mrz 12 12:32:02:542] [libreoffice3.5.5] C:\Windows\system32>"wmic.exe" product where "name like 'LibreOffice%'" call uninstall /nointeractive
[6] [Mrz 12 12:32:02:542] [libreoffice3.5.5] (\\firma57\ROOT\CIMV2:Win32_Product.IdentifyingNumber="{457EACB3-A764-4C5A-90F3-9BB504723367}",Name="LibreOffice 3.5",Version="3.5.6.2")->Uninstall() wird ausgeführt
[6] [Mrz 12 12:32:02:542] [libreoffice3.5.5]
[6] [Mrz 12 12:32:02:542] [libreoffice3.5.5] Methode wurde ausgeführt.
[6] [Mrz 12 12:32:02:542] [libreoffice3.5.5]
[6] [Mrz 12 12:32:02:542] [libreoffice3.5.5] Ausgabeparameter:
[6] [Mrz 12 12:32:02:550] [libreoffice3.5.5] instance of __PARAMETERS
[6] [Mrz 12 12:32:02:550] [libreoffice3.5.5] {
[6] [Mrz 12 12:32:02:550] [libreoffice3.5.5] ReturnValue = 1603;
[6] [Mrz 12 12:32:02:550] [libreoffice3.5.5] };
[6] [Mrz 12 12:32:02:550] [libreoffice3.5.5]
[6] [Mrz 12 12:32:02:550] [libreoffice3.5.5]
[6] [Mrz 12 12:32:02:555] [libreoffice3.5.5] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Mrz 12 12:32:02:555] [libreoffice3.5.5] Search "c:\opsi.org\tmp\"
[6] [Mrz 12 12:32:02:555] [libreoffice3.5.5] File "c:\opsi.org\tmp\_winstbat_1.bat"
[6] [Mrz 12 12:32:02:555] [libreoffice3.5.5] The file has been deleted
[6] [Mrz 12 12:32:02:555] [libreoffice3.5.5]
[6] [Mrz 12 12:32:02:555] [libreoffice3.5.5] ~~~~~~~ Start Sub ~~~~~~~ Sub_errorhandler
[5] [Mrz 12 12:32:02:556] [libreoffice3.5.5]
[5] [Mrz 12 12:32:02:556] [libreoffice3.5.5] Set $errorcode$ = getLastExitCode
[6] [Mrz 12 12:32:02:560] [libreoffice3.5.5] The value of the variable "$errorcode$" is now: "0"
[5] [Mrz 12 12:32:02:560] [libreoffice3.5.5]
[5] [Mrz 12 12:32:02:560] [libreoffice3.5.5] If
[5] [Mrz 12 12:32:02:560] [libreoffice3.5.5] $errorcode$ = "0" <<< result true
[5] [Mrz 12 12:32:02:560] [libreoffice3.5.5] ($errorcode$ = "0") <<< result true
[5] [Mrz 12 12:32:02:560] [libreoffice3.5.5] Then
[5] [Mrz 12 12:32:02:560] [libreoffice3.5.5] message Aktion war erfolgreich!
[5] [Mrz 12 12:32:02:562] [libreoffice3.5.5]
[5] [Mrz 12 12:32:02:562] [libreoffice3.5.5] Else
[5] [Mrz 12 12:32:02:562] [libreoffice3.5.5] EndIf
[6] [Mrz 12 12:32:02:562] [libreoffice3.5.5]
[6] [Mrz 12 12:32:02:562] [libreoffice3.5.5] ~~~~~~~ End Sub ~~~~~~~ Sub_errorhandler
[6] [Mrz 12 12:32:02:562] [libreoffice3.5.5]
[6] [Mrz 12 12:32:02:562] [libreoffice3.5.5]
[6] [Mrz 12 12:32:02:562] [libreoffice3.5.5] ~~~~~~~ End Sub ~~~~~~~ Sub_uninstaller
[6] [Mrz 12 12:32:02:562] [libreoffice3.5.5]
[6] [Mrz 12 12:32:02:563] [libreoffice3.5.5]
[6] [Mrz 12 12:32:02:563] [libreoffice3.5.5] ~~~~~~~ Start Sub ~~~~~~~ Sub_postactions
[5] [Mrz 12 12:32:02:563] [libreoffice3.5.5] message Postaction wird durchgefuehrt...
[5] [Mrz 12 12:32:02:565] [libreoffice3.5.5] message Das System wird neu gestartet...
[5] [Mrz 12 12:32:02:567] [libreoffice3.5.5]
[5] [Mrz 12 12:32:02:567] [libreoffice3.5.5] ExitWindows set to Reboot
[6] [Mrz 12 12:32:02:567] [libreoffice3.5.5]
[6] [Mrz 12 12:32:02:567] [libreoffice3.5.5] ~~~~~~~ End Sub ~~~~~~~ Sub_postactions
[6] [Mrz 12 12:32:02:567] [libreoffice3.5.5]
[1] [Mrz 12 12:32:02:567] [libreoffice3.5.5] ___________________
[1] [Mrz 12 12:32:02:567] [libreoffice3.5.5] script finished
[1] [Mrz 12 12:32:02:567] [libreoffice3.5.5] 0 errors
[1] [Mrz 12 12:32:02:567] [libreoffice3.5.5] 0 warnings
[1] [Mrz 12 12:32:02:567] [libreoffice3.5.5]
[1] [Mrz 12 12:32:02:567] [libreoffice3.5.5] installed product: libreoffice3.5.5 Version: 3.5.5-1
[1] [Mrz 12 12:32:02:567] [libreoffice3.5.5]
[6] [Mrz 12 12:32:02:567] [libreoffice3.5.5] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Mrz 12 12:32:02:567] [libreoffice3.5.5] Search "c:\opsi.org\tmp\"
[6] [Mrz 12 12:32:02:568] [libreoffice3.5.5] JSON service request https://192.168.0.109:4447/rpc productOnClient_updateObject
[6] [Mrz 12 12:32:03:179] [libreoffice3.5.5] JSON Bench for productOnClient_updateObject "params":[{"clientId":"firma57.office.bo","acti Start: 12:32:02:568 Time: 00:00:00:611
[6] [Mrz 12 12:32:03:183] Registry key [HKLM\SOFTWARE\opsi.org\winst] opened
[6] [Mrz 12 12:32:03:183] Variable "RebootRequested" had value "0"
[6] [Mrz 12 12:32:03:183] Info: "RebootRequested" changed to "4"
[6] [Mrz 12 12:32:03:183] Variable "LastLogFilename" is keeping its value "c:\tmp\instlog.txt"
[6] [Mrz 12 12:32:03:184] Variable "ContinueLogFile" had value "0"
[6] [Mrz 12 12:32:03:184] Info: "ContinueLogFile" changed to "1"
[6] [Mrz 12 12:32:03:184] Variable "NumberOfErrors" is keeping its value "0"
[6] [Mrz 12 12:32:06:335] Key flushed
[6] [Mrz 12 12:32:06:335] Key closed
[5] [Mrz 12 12:32:06:343] -------- submitted part of log file ends here, see the rest of log file on client ----------
Gruß
D1Ck3n
D1Ck3n
Re: LibreOffice 3.5.5.3 deinstallieren?
1) hast du es auf einer vollständig cleanen VM getestet?
2) hast du NICHT on demand gewählt, sondern den normalen reboot-aufruf? meine mich erinnern zu können, dass nur der "echte" automatische start unter systemrechten läuft. habe dort schon probleme bei der automatischen netzwerkdruckerinstallation gehabt - daher nicht on demand testen.
3) Du bekommst einen Errorcode der MSI-Routine zurück - einfach mal googlen: http://www.msigeek.com/715/how-to-troub ... stallation
2) hast du NICHT on demand gewählt, sondern den normalen reboot-aufruf? meine mich erinnern zu können, dass nur der "echte" automatische start unter systemrechten läuft. habe dort schon probleme bei der automatischen netzwerkdruckerinstallation gehabt - daher nicht on demand testen.
3) Du bekommst einen Errorcode der MSI-Routine zurück - einfach mal googlen: http://www.msigeek.com/715/how-to-troub ... stallation
Re: LibreOffice 3.5.5.3 deinstallieren?
Ich habe den Fehler gefundenmensch90 hat geschrieben:1) hast du es auf einer vollständig cleanen VM getestet?
2) hast du NICHT on demand gewählt, sondern den normalen reboot-aufruf? meine mich erinnern zu können, dass nur der "echte" automatische start unter systemrechten läuft. habe dort schon probleme bei der automatischen netzwerkdruckerinstallation gehabt - daher nicht on demand testen.
3) Du bekommst einen Errorcode der MSI-Routine zurück - einfach mal googlen: http://www.msigeek.com/715/how-to-troub ... stallation

Mein Testrechner hatte einen Hau weg

Danke für deine Hilfe.
Gruß
D1Ck3n
Gruß
D1Ck3n
D1Ck3n