This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userspace:etu_javavm [2015/03/30 21:45] Robert Tauber [subdeljava] |
userspace:etu_javavm [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 27: | Line 27: | ||
CLIENT_DATA\Uninstall_Java.exe\\ | CLIENT_DATA\Uninstall_Java.exe\\ | ||
CLIENT_DATA\java.png\\ | CLIENT_DATA\java.png\\ | ||
+ | |||
+ | ==== control ==== | ||
+ | < | ||
+ | [Package] | ||
+ | version: 2014.12.08 | ||
+ | depends: | ||
+ | incremental: | ||
+ | |||
+ | [Product] | ||
+ | type: localboot | ||
+ | id: javavm | ||
+ | name: Oracle Java Runtime Environment | ||
+ | description: | ||
+ | advice: | ||
+ | version: 0 | ||
+ | priority: 0 | ||
+ | licenseRequired: | ||
+ | productClasses: | ||
+ | setupScript: | ||
+ | uninstallScript: | ||
+ | updateScript: | ||
+ | alwaysScript: | ||
+ | onceScript: | ||
+ | customScript: | ||
+ | userLoginScript: | ||
+ | |||
+ | [ProductProperty] | ||
+ | type: unicode | ||
+ | name: install_architecture | ||
+ | multivalue: False | ||
+ | editable: False | ||
+ | description: | ||
+ | values: ["32 only", "64 only", " | ||
+ | default: [" | ||
+ | |||
+ | [ProductProperty] | ||
+ | type: unicode | ||
+ | name: javaversion | ||
+ | multivalue: False | ||
+ | editable: False | ||
+ | description: | ||
+ | values: [" | ||
+ | default: [" | ||
+ | </ | ||
==== CopyFolder.exe / CopyFolder.au3 ==== | ==== CopyFolder.exe / CopyFolder.au3 ==== | ||
Line 508: | Line 552: | ||
==== subdeljava ==== | ==== subdeljava ==== | ||
Da das updaten der Reg keys mir zu blöd war lass ich jetzt ein Skript danach suchen. | Da das updaten der Reg keys mir zu blöd war lass ich jetzt ein Skript danach suchen. | ||
+ | Wer befürchtet das dies vielleicht mal zu viel erwischt kann auch die Version von uib verwenden. | ||
<code winst> | <code winst> | ||
; Robert Tauber 2013 | ; Robert Tauber 2013 | ||
Line 573: | Line 618: | ||
endif | endif | ||
endif | endif | ||
+ | </ | ||
+ | |||
+ | ==== Uninstall_Java.exe / Uninstall_Java.au3 ==== | ||
+ | SAD (search and destroy) Skript< | ||
+ | <code autoit> | ||
+ | #cs ---------------------------------------------------------------------------- | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | Deinstalirt alle Java Versionen | ||
+ | |||
+ | #ce ---------------------------------------------------------------------------- | ||
+ | |||
+ | ; Script Start - Add your code below here | ||
+ | |||
+ | DirCreate(" | ||
+ | Opt(" | ||
+ | ;Reg Key auslesen | ||
+ | Run(@ComSpec & " /c " & 'start /wait "" | ||
+ | Run(@ComSpec & " /c " & 'start /wait "" | ||
+ | ;winwait (" | ||
+ | |||
+ | WinWaitClose (" | ||
+ | |||
+ | ;Filter die keys mit {} | ||
+ | Run(@ComSpec & " /c " & 'type c: | ||
+ | Run(@ComSpec & " /c " & 'type c: | ||
+ | |||
+ | |||
+ | ;winwait (" | ||
+ | WinWaitClose (" | ||
+ | |||
+ | $file = FileOpen(" | ||
+ | $Java = FileOpen(" | ||
+ | ;RT: Könte effektiver sein wenn man das ursprüngliche file con key zu key durchsucht | ||
+ | While 1 | ||
+ | Local $line = FileReadLine($file) | ||
+ | If @error = -1 Then ExitLoop | ||
+ | $KEY = StringReplace($line, | ||
+ | $KEY = StringReplace($KEY , " | ||
+ | ;RT: den inhalt aller {} KEYs Temporär als Text file sichern | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | While 1 | ||
+ | ;RT: Das gerade erstellte textfile nach JER Durchsuchen (JAVA) | ||
+ | Local $line_KEY = FileReadLine($file_KEY) | ||
+ | | ||
+ | if StringInStr ($line_KEY, " | ||
+ | ;RT: wurde in dem Key eine jre gefunden (JAVA) | ||
+ | Local $Split = StringSplit($KEY, | ||
+ | $KEY = " | ||
+ | | ||
+ | FileWrite ( $Java , $KEY & @CRLF) | ||
+ | ExitLoop | ||
+ | | ||
+ | WEnd | ||
+ | | ||
+ | ;RT: File schlisen da sonst fehler | ||
+ | Wend | ||
+ | FileClose ( $file ) | ||
+ | FileClose ( $Java ) | ||
+ | |||
+ | |||
+ | |||
+ | ;RT: Alle gefundenen Deinstaliren | ||
+ | $Java = FileOpen(" | ||
+ | While 1 | ||
+ | Local $line = FileReadLine($Java ) | ||
+ | If @error = -1 Then ExitLoop | ||
+ | | ||
+ | WEnd | ||
+ | ;winwait (" | ||
+ | WinWaitClose (" | ||
+ | Sleep(5000) | ||
+ | Winkill (" | ||
+ | ;MsgBox ( 0, " | ||
</ | </ | ||