Deutsches Installationsskript

  • Hallo!

    Ich dachte mir, man könnte doch ein Installationsskript in regelmäßigen Abständen rausgeben, dass AutoIt Stabil + Beta + SciTE + OrganizeIncludes + Deutsche Hilfe installiert und ein paar Tutorials parat hat (Benutzung der Hilfe etc.), im Forum registriert usw.

    So etwas wie 123-AutoIt o.ä. aus dem englischem Forum.

    Gute Idee?

    Grüße aus dem Pott,
    Matthias

  • Meinst du jetzt etwar so ein Downloader (ist jetzt nur so dahin gepfuscht) :

    [autoit]

    #include <GUIConstantsEx.au3>
    #include <ProgressConstants.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>

    [/autoit][autoit][/autoit][autoit]

    ;Downloadlink
    Global $p_fullInstallation = "http://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe"

    [/autoit][autoit][/autoit][autoit]

    ;Size
    Global $i_DL_Size = InetGetSize($p_fullInstallation)
    Global $f_Megabytes = Round($i_DL_Size / 1024 / 1024, 1)

    [/autoit][autoit][/autoit][autoit][/autoit][autoit]

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Downloader Autoit (Understood)", 633, 45, 192, 124)
    $Progress1 = GUICtrlCreateProgress(8, 8, 505, 25)
    $Label1 = GUICtrlCreateLabel("0%", 528, 16, 18, 17)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    [/autoit][autoit][/autoit][autoit]

    InetGet($p_fullInstallation, @ScriptDir & "\AutoIt-V3-Setup.exe")

    [/autoit][autoit][/autoit][autoit]

    Do
    ;Prozentsatz ausrechen: Prozentsatz = 100 * ProzentWert / Grundwert
    ;Kurz = 100 * PW / GW
    $i_prozent = Round(100 * @InetGetBytesRead / $i_DL_Size)
    $f_currentMB = Round(@InetGetBytesRead / 1024 / 1024, 1)

    [/autoit][autoit][/autoit][autoit]

    TrayTip("Informationen zum Download", $i_prozent & "%" & @CRLF & @CRLF & "Gedownloadet: " & $f_currentMB & " MB" & @CRLF & "Maximal: " & $f_Megabytes, 1)
    GUICtrlSetData($Progress1, $i_prozent)
    GUICtrlSetData($Label1, $i_prozent & "%")
    Until $i_prozent >= 100

    [/autoit][autoit][/autoit][autoit]

    TrayTip("Informationen zum Download", $i_prozent & "%" & @CRLF & @CRLF & "Gedownloadet: " & $f_currentMB & " MB" & @CRLF & "Maximal: " & $f_Megabytes, 5)

    [/autoit][autoit][/autoit][autoit]

    Sleep(5000)

    [/autoit]
  • Nicht nur.
    Wie gesagt, soll es 123-AutoIt ähneln. Aber ein Downloader soll intengriert sein.