nach neustart die Setups fortsetzen

  • hallo,
    hier nun mein nächstes problem:
    ich hab mir meine setups automatisiert in sfx archive gepackt und mit koda ein menu erstellt. nun gibt es aber bestimmte skripte die nen neustart brauchen (updatepack, alcohol 120,..). diese schreiben einfach in die registry das nach dem neustart die 2. skriptdatei startet.

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>

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

    Opt("GUIOnEventMode", 1)
    #Region ### START Koda GUI section ### Form=Form1.kxf
    $Form1 = GUICreate("Installer", 351, 253, 194, 126)
    $Checkbox1 = GUICtrlCreateCheckbox("Framework 2.0", 10, 8, 160, 17)
    $Checkbox2 = GUICtrlCreateCheckbox("Java 6 U3", 10, 32, 160, 17)
    $Checkbox3 = GUICtrlCreateCheckbox(">Updatepack 2.26", 10, 56, 160, 17)
    GUICtrlSetTip(-1, "Neustart")
    $Checkbox4 = GUICtrlCreateCheckbox("FFDShow 1870", 10, 80, 160, 17)
    $Checkbox5 = GUICtrlCreateCheckbox("AutoIT 3.2.10.0", 10, 104, 160, 17)
    $Checkbox6 = GUICtrlCreateCheckbox("Acrobat Reader 8", 10, 128, 160, 17)
    GUICtrlSetTip(-1, "java")
    $Checkbox7 = GUICtrlCreateCheckbox(">Alcohol 120 1.9.5.3823", 10, 152, 160, 17)
    GUICtrlSetTip(-1, "Neustart")
    $Checkbox8 = GUICtrlCreateCheckbox("CDEx 1.70 B2", 10, 176, 160, 17)
    $Checkbox9 = GUICtrlCreateCheckbox(">ConvertXtoDVD 3.0.0.1", 10, 200, 160, 17)
    GUICtrlSetTip(-1, "Standardeinstellungen, Deinstallieren")
    $Checkbox10 = GUICtrlCreateCheckbox("Firefox 2.0.0.12", 180, 8, 160, 17)
    $Checkbox11 = GUICtrlCreateCheckbox(">Frostwire 4.13.5", 180, 32, 160, 17)
    GUICtrlSetTip(-1, "Java, Anwendungsdaten/Programme Ordner löschen")
    $Checkbox12 = GUICtrlCreateCheckbox("KMPlayer 2.9.3.1428", 180, 56, 160, 17)
    $Checkbox13 = GUICtrlCreateCheckbox("MP3Gain 1.3.4", 180, 80, 160, 17)
    $Checkbox14 = GUICtrlCreateCheckbox("Nero Micro 8.2.8.0", 180, 104, 160, 17)
    $Checkbox15 = GUICtrlCreateCheckbox("Thunderbird 2.0.0.12", 180, 128, 160, 17)
    $Checkbox16 = GUICtrlCreateCheckbox("Unlocker 1.8.5", 180, 152, 160, 17)
    $Checkbox17 = GUICtrlCreateCheckbox("WinRAR 3.71", 180, 176, 160, 17)
    $Checkbox18 = GUICtrlCreateCheckbox("Checkbox18", 180, 200, 160, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox19 = GUICtrlCreateCheckbox("Checkbox19", 350, 8, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox20 = GUICtrlCreateCheckbox("Checkbox20", 350, 32, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox21 = GUICtrlCreateCheckbox("Checkbox21", 350, 56, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox22 = GUICtrlCreateCheckbox("Checkbox22", 350, 80, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox23 = GUICtrlCreateCheckbox("Checkbox23", 350, 104, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox24 = GUICtrlCreateCheckbox("Checkbox24", 350, 128, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox25 = GUICtrlCreateCheckbox("Checkbox25", 350, 152, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox26 = GUICtrlCreateCheckbox("Checkbox26", 350, 176, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox27 = GUICtrlCreateCheckbox("Checkbox27", 350, 200, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox28 = GUICtrlCreateCheckbox("Checkbox28", 474, 8, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox29 = GUICtrlCreateCheckbox("Checkbox29", 474, 32, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox30 = GUICtrlCreateCheckbox("Checkbox30", 474, 56, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox31 = GUICtrlCreateCheckbox("Checkbox31", 474, 80, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox32 = GUICtrlCreateCheckbox("Checkbox32", 474, 104, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox33 = GUICtrlCreateCheckbox("Checkbox33", 474, 128, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox34 = GUICtrlCreateCheckbox("Checkbox34", 474, 152, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox35 = GUICtrlCreateCheckbox("Checkbox35", 474, 176, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox36 = GUICtrlCreateCheckbox("Checkbox36", 474, 200, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox37 = GUICtrlCreateCheckbox("Checkbox37", 594, 8, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox38 = GUICtrlCreateCheckbox("Checkbox38", 594, 32, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox39 = GUICtrlCreateCheckbox("Checkbox39", 594, 56, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox40 = GUICtrlCreateCheckbox("Checkbox40", 594, 80, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox41 = GUICtrlCreateCheckbox("Checkbox41", 594, 104, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox42 = GUICtrlCreateCheckbox("Checkbox42", 594, 128, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox43 = GUICtrlCreateCheckbox("Checkbox43", 594, 152, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox44 = GUICtrlCreateCheckbox("Checkbox44", 594, 176, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Checkbox45 = GUICtrlCreateCheckbox("Checkbox45", 594, 200, 97, 17)
    GUICtrlSetState(-1, $GUI_HIDE)
    $Button1 = GUICtrlCreateButton("Installieren", 10, 224, 123, 25)
    GUICtrlSetOnEvent($button1, "button1")
    GUISetState(@SW_SHOW)
    GUISetOnEvent($GUI_EVENT_CLOSE, "Close")
    #EndRegion ### END Koda GUI section ###

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

    While 1
    Sleep(100)
    WEnd

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

    func button1()
    If GUICtrlRead($Checkbox1) = 1 Then RunWait("Framework 2.0.exe")
    If GUICtrlRead($Checkbox2) = 1 Then RunWait("Java 6 U3.exe")
    If GUICtrlRead($Checkbox3) = 1 Then RunWait("Winfuture Updatepack 2.26.exe")
    If GUICtrlRead($Checkbox4) = 1 Then RunWait("FFDShow 1870.exe")
    If GUICtrlRead($Checkbox5) = 1 Then RunWait("AutoIT 3.2.10.0.exe")
    If GUICtrlRead($Checkbox6) = 1 Then RunWait("Acrobat Reader 8.exe")
    If GUICtrlRead($Checkbox7) = 1 Then RunWait("Alcohol 120 1.9.5.3823.exe")
    ;usw
    endfunc

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

    Func Close()
    Exit
    EndFunc

    [/autoit]

    nur wie mache ichs es das zb nach dem neustart und fertigstellen des updatepacks, der installer zb dei ffdshow weitermacht?

    danke im voraus!

  • danke,ich kenn das video schon, aber ich wollte ja wissen wie die gui nach dem neustart weitermachen kan wo sie aufgehört hat. die setups sind ja schon fertig.

  • ohh hatte Xenos post übersehen ^^

    Schreibe es einfach in eine Datei auf der fp

    z.b. :
    1
    1
    1
    0
    1
    0
    1


    und da dann 1. = Autoit ... wenn 1dann installed

  • Nehm doch gleich ne INI (einfacheres Handling).
    Und @Xeno: das wird bei so ungefähr 16 Programmen ganz schön lustig, die alle zu überprüfen (2^16 = 65536)

    Projekte: Keine größeren (und fertigen)
    Gegen Internetzensur:
    https://epetitionen.bundestag.de/index.php?acti…s;petition=3860
    (Zeichnungsfrist abgelaufen)
    __________________________________________________________________________________________________________________________________
    Dieser Beitrag wurde bereits 264 mal editiert, zuletzt von »Fast2« (30. Februar 2009, 12:99)

  • öhhm für alcohol hab ich schonmal en script geschrieben :D

    Das wird vor dem restart gemacht:

    Spoiler anzeigen
    [autoit]

    Regwrite( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultUserName", "REG_SZ", @UserName)
    ;MsgBox(0, "BLA", @UserName)
    $input1 = InputBox( "Benutzerpasswort", "Bitte geben sie ihr Benutzerpasswort ein", "", "*")
    ;MsgBox(0, "BLA", $input1)
    Regwrite( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultPassword", "REG_SZ", $input1)
    sleep(100)
    Regwrite( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "AutoAdminLogon", "REG_SZ", "1")
    run( "Alcohol120.exe")
    WinWait( "Selbstentpackendes WinRAR-Archiv")
    ControlSetText( "Selbstentpackendes WinRAR-Archiv", "", 1001, @TempDir &"\Alcohol120\")
    sleep(500)
    ControlClick( "Selbstentpackendes WinRAR-Archiv", "", 1)
    sleep(1000)
    $alcoholinput = InputBox("Programmordner", "Wohin soll Alcohol 120% installiert werden?", "C:\Programme\AlcoholSoft\")
    If FileExists( @TempDir &"\Alcohol120\pfad.txt") Then
    FileDelete( @TempDir &"\Alcohol120\pfad.txt")
    EndIf
    sleep(500)
    FileWrite( @TempDir &"\Alcohol120\pfad.txt", $alcoholinput)
    run( @TempDir &"\Alcohol120\setup.exe")
    WinWait( "Alcohol 120% Setup", "Welcome")
    sleep(500)
    ControlCommand( "Alcohol 120% Setup", "", "Button4", "Check", "")
    sleep(100)
    ControlClick( "Alcohol 120% Setup", "", 293)
    WinWait( "Alcohol 120% Setup", "License")
    sleep(500)
    ControlCommand( "Alcohol 120% Setup", "", "Button3", "Check", "")
    sleep(100)
    ControlClick( "Alcohol 120% Setup", "", 293)
    WinWait( "Alcohol 120% Setup", "Destination")
    ControlClick( "Alcohol 120% Setup", "", 1538)
    WinWait( "Alcohol 120% Setup", "Look")
    sleep(500)
    ControlSetText( "Alcohol 120% Setup", "", 450, $alcoholinput)
    sleep(500)
    ControlClick( "Alcohol 120% Setup", "", 285)
    sleep(500)
    WinWait( "Alcohol 120% Setup", "Destination")
    sleep(500)
    ControlClick( "Alcohol 120% Setup", "", 293)
    WinWait( "Alcohol 120% Setup", "Select")
    sleep(500)
    ControlClick( "Alcohol 120% Setup", "", 293)
    WinWait( "Alcohol 120% Setup", "Ready")
    sleep(500)
    ControlClick( "Alcohol 120% Setup", "", 357)
    sleep(100)
    ControlClick( "Alcohol 120% Setup", "", 293)
    WinWait( "Alcohol 120% Setup", "successfully")
    ControlClick( "Alcohol 120% Setup", "", 285)
    sleep(100)
    RegWrite( "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "Alcohol120", "REG_SZ", @TempDir &"\Alcohol120\INSTALL2.exe")
    Shutdown(2)

    [/autoit]

    Und das danach ;)

    Spoiler anzeigen
    [autoit]

    sleep(30000)
    RegDelete( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultPassword")
    RegWrite( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "AutoAdminLogon", "REG_SZ", "0")
    RegDelete( "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "Alcohol120")
    $alcoholinput = FileReadLine( @TempDir &"\Alcohol120\pfad.txt", 1)
    $string = StringRight( $alcoholinput, 1)
    If $string = "\" Then
    $alcoholinput2 = $alcoholinput
    ;MsgBox(0, "LOL1", $alcoholinput2)
    Else
    $alcoholinput2 = $alcoholinput&"\"
    ;MsgBox(0, "LOL2", $alcoholinput2)
    EndIf
    $alcoholinput3 = $alcoholinput2&"Alcohol 120\"
    ;MsgBox(0, "TEST", $alcoholinput3)
    FileCopy( @TempDir &"\Alcohol120\Crack.exe", $alcoholinput3)
    sleep(2000)
    run( $alcoholinput3&"crack.exe", $alcoholinput3)
    sleep(2000)
    ControlClick( "Alcohol 120% v1.9.5.3105 Retail Crack", "", 108)
    sleep(7000)
    ControlClick( "Alcohol 120% v1.9.5.3105 Retail Crack", "", 110)
    sleep(7000)
    FileDelete( @TempDir &"\Alcohol120\pfad.txt")
    FileDelete( @TempDir &"\Alcohol120\Crack.exe")
    FileDelete( @TempDir &"\Alcohol120\setup.exe")
    FileDelete( @TempDir &"\Alcohol120\setup.ini")
    FileDelete( @TempDir &"\Alcohol120\setup.msi")
    run( $alcoholinput3&"alcohol.exe")

    [/autoit]

    Is jetzt vllt net schön gelöst aber es erfüllt seinen Zweck und funktioniert prima :)

    MFG FireFlyer

    *Paradox ist, wenn man sich im Handumdrehen den Fuss bricht* :D

  • Hey leudee,
    hät ne Frage bezüglich dem Script in dem Video...könnte mir einer (oder vlt McPoldy) den Source schicken oder hier reinstellen, damit ich mir das auch mal anguggn kann?