This shows you the differences between two versions of the page.
userspace:yed [2013/09/09 14:04] ME_AS |
userspace:yed [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== yEd Graph Editor ====== | ||
- | |||
- | By --- //[[ME_AS]] 2013/09/09 // | ||
- | |||
- | Nachfolgend meine Skripte zum automatischen Installieren von yEd | ||
- | |||
- | Bei den ganzen AutoIT Skripten kann man natürlich die Sleep Zeiten am Ende der Skripte auf seine Umgebung anpassen. Ich hab sie hier bewusst höher eingestellt, | ||
- | |||
- | ====== yEd ====== | ||
- | Tested with opsi 4.0.3.1\\ | ||
- | Tested with WinstVersion >= 4.11.3.6\\ | ||
- | Tested with Win7 Pro SP1 32/64bit | ||
- | |||
- | ==== Download here ==== | ||
- | |||
- | http:// | ||
- | |||
- | OPSI_Workbench: | ||
- | < | ||
- | AutoIt3.exe | ||
- | setup.ins | ||
- | uninstall.ins | ||
- | delsub32.ins | ||
- | yed.png | ||
- | yEd-3.11_without-JRE_32-bit_setup.exe | ||
- | yEd-3.11_without-JRE_64-bit_setup.exe | ||
- | yed32.au3 | ||
- | yed64.au3 | ||
- | yed_uninstall32.au3 | ||
- | yed_uninstall64.au3 | ||
- | </ | ||
- | |||
- | ==== setup.ins ==== | ||
- | <code winst> | ||
- | |||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | ;Variable Logverzeichnis | ||
- | DefVar $LogDir$ | ||
- | Set $LogDir$ = " | ||
- | ;Variable Produktname | ||
- | DefVar $ProductId$ | ||
- | Set $ProductId$ | ||
- | ;Variable Freier Speicherplatz | ||
- | DefVar $MinimumSpace$ | ||
- | Set $MinimumSpace$ | ||
- | ;Variable Installationsverzeichnis | ||
- | DefVar $InstallDir$ | ||
- | Set $InstallDir$ | ||
- | ;Variable ExitCodes | ||
- | DefVar $ExitCode$ | ||
- | ;Variable für die Ermittlung der Betriebssystem Unterversion | ||
- | DefVar $NTVersion$ | ||
- | set $NTVersion$ = GetNTVersion | ||
- | ;Variable zur Ermittlung der Systemarchitektur | ||
- | DefVar $SystemType$ | ||
- | Set $SystemType$ = GetSystemType | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | if not(HasMinimumSpace (" | ||
- | LogError "Not enough space on %SystemDrive%, | ||
- | isFatalError | ||
- | ; Stop process and set installation status to failed | ||
- | else | ||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | if FileExists(" | ||
- | comment "Start uninstall sub section" | ||
- | Sub " | ||
- | endif | ||
- | endif | ||
- | |||
- | ;OS-Version ermitteln | ||
- | if ( $NTVersion$ = " | ||
- | if $SystemType$ = "x86 System" | ||
- | Sub_Uninstall | ||
- | Winbatch_Install_32 | ||
- | Sub_Check_Exitcode | ||
- | endif | ||
- | if $SystemType$ = "64 Bit System" | ||
- | Sub_Uninstall | ||
- | Winbatch_Install_64 | ||
- | Sub_Check_Exitcode | ||
- | endif | ||
- | else | ||
- | LogError "Kein kompatibles Betriebssystem installiert" | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | [Sub_Uninstall] | ||
- | sub " | ||
- | |||
- | [Winbatch_install_32] | ||
- | %scriptpath%\AutoIt3.exe %scriptpath%\yEd32.au3 | ||
- | |||
- | [Winbatch_install_64] | ||
- | %scriptpath%\AutoIt3.exe %scriptpath%\yEd64.au3 | ||
- | |||
- | [Sub_check_exitcode] | ||
- | Sub " | ||
- | |||
- | </ | ||
- | |||
- | ==== uninstall.ins ==== | ||
- | <code winst> | ||
- | |||
- | [Initial] | ||
- | ;Standard Text, shown during installation | ||
- | Message = Bitte warten, das Produkt wird Deinstalliert | ||
- | |||
- | ;Set Loglevel | ||
- | setLogLevel = 6 | ||
- | |||
- | ;Stop when errors | ||
- | ExitOnError = false | ||
- | |||
- | ;Syntax Fehler are shown in a seperate window | ||
- | ScriptErrorMessages = on | ||
- | |||
- | ;Do not use Single-Step Mode | ||
- | TraceMode = off | ||
- | |||
- | ;No winst-window in foreground while batchmode | ||
- | StayOnTop = false | ||
- | |||
- | [Actions] | ||
- | ;Variable for the OS | ||
- | DefVar $OS$ | ||
- | Set $OS$ = GetOS | ||
- | |||
- | ;Variable for the OS-subversion | ||
- | DefVar $NTVersion$ | ||
- | Set $NTVersion$ = GetNTVersion | ||
- | |||
- | ;Name of product (max. 12 columns) | ||
- | DefVar $ProductName$ | ||
- | Set $ProductName$ = " | ||
- | |||
- | ;filename of productpicture with extension | ||
- | DefVar $ProductPicture$ | ||
- | Set $ProductPicture$ = " | ||
- | |||
- | ;the variable for the ExitCode | ||
- | DefVar $ExitCode$ | ||
- | |||
- | ;show $ProductPicture$ and $ProductName$ | ||
- | ShowBitmap /3 " | ||
- | |||
- | sub " | ||
- | |||
- | </ | ||
- | |||
- | ==== delsub32.ins ==== | ||
- | <code winst> | ||
- | |||
- | Message " | ||
- | |||
- | if FileExists(" | ||
- | comment " | ||
- | Winbatch_uninstall_32 | ||
- | sub_check_exitcode | ||
- | else | ||
- | if FileExists(" | ||
- | comment " | ||
- | Winbatch_uninstall_64 | ||
- | sub_check_exitcode | ||
- | endif | ||
- | endif | ||
- | |||
- | [Winbatch_uninstall_32] | ||
- | %scriptpath%\AutoIt3.exe %scriptpath%\yEd_uninstall32.au3 | ||
- | |||
- | [Winbatch_uninstall_64] | ||
- | %scriptpath%\AutoIt3.exe %scriptpath%\yEd_uninstall64.au3 | ||
- | |||
- | [Sub_check_exitcode] | ||
- | Sub " | ||
- | |||
- | </ | ||
- | |||
- | |||
- | ==== yed32.au3 ==== | ||
- | <code autoit> | ||
- | |||
- | ;Starte yEd Installation | ||
- | Run (" | ||
- | WinWaitActive(" | ||
- | Sleep(1000) | ||
- | ;Klicke Button Next | ||
- | Send(" | ||
- | Sleep(500) | ||
- | Send(" | ||
- | Sleep(500) | ||
- | Send(" | ||
- | Sleep(500) | ||
- | Send(" | ||
- | Sleep(500) | ||
- | Send(" | ||
- | Sleep(500) | ||
- | Send(" | ||
- | ;Warten bis Installation fertig ist | ||
- | Sleep(20000) | ||
- | Send(" | ||
- | Exit | ||
- | |||
- | </ | ||
- | |||
- | ==== yed64.au3 ==== | ||
- | <code autoit> | ||
- | |||
- | ;Starte yEd Installation | ||
- | Run (" | ||
- | WinWaitActive(" | ||
- | Sleep(1000) | ||
- | ;Klicke Button Next | ||
- | Send(" | ||
- | Sleep(500) | ||
- | Send(" | ||
- | Sleep(500) | ||
- | Send(" | ||
- | Sleep(500) | ||
- | Send(" | ||
- | Sleep(500) | ||
- | Send(" | ||
- | Sleep(500) | ||
- | Send(" | ||
- | ;Warten bis Installation fertig ist | ||
- | Sleep(20000) | ||
- | Send(" | ||
- | Exit | ||
- | |||
- | </ | ||
- | |||
- | ==== yeduninstall32.au3 ==== | ||
- | <code autoit> | ||
- | |||
- | ;Starte yEd Deinstallation | ||
- | Run (" | ||
- | WinWaitActive(" | ||
- | Sleep(1000) | ||
- | ;Klicke Button Next | ||
- | Send(" | ||
- | ;Warten bis Deinstallation fertig ist | ||
- | Sleep(10000) | ||
- | Send(" | ||
- | Sleep(10000) | ||
- | Exit | ||
- | |||
- | </ | ||
- | |||
- | ==== yeduninstall64.au3 ==== | ||
- | <code autoit> | ||
- | |||
- | ;Starte yEd Deinstallation | ||
- | Run (" | ||
- | WinWaitActive(" | ||
- | Sleep(1000) | ||
- | ;Klicke Button Next | ||
- | Send(" | ||
- | ;Warten bis Deinstallation fertig ist | ||
- | Sleep(10000) | ||
- | Send(" | ||
- | Sleep(10000) | ||
- | Exit | ||
- | |||
- | </ | ||