AutoIT Setup

  • Hallo,
    Ich hab mal ein Setup gecoded im moment installiert es ein Test Programm (A.exe,B.exe,C.exe) kann aber beliebig gemodded werden.
    Update:
    -ReadMe Datei kann geöffnet werden


    Spoiler anzeigen
    [autoit][/autoit] [autoit][/autoit] [autoit]

    #NoTrayIcon
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****#AutoIt3Wrapper_icon=Untitled - 2.ico
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

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

    #include-once "A.exe"
    #include-once "B.exe"
    #include-once "C.exe"
    #include-once "ReadMe.txt"

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

    #include
    #include
    #include
    #include
    #include
    #include

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

    Global $ZielverzeichnisInput = @ProgramFilesDir & "\Test Programm"
    Global $VerknuepfungStart = 1
    Global $VerknuepfungDeskt = 1
    Global $VerknuepfungSchne = 1
    Global $Text1, $Text2, $Text3

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

    $GUI = GUICreate("Installiere ein Test Programm", 501, 358, 696, 125)
    GUISetBkColor(0xFFFFFF)
    ;######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
    ;GUI 1
    ;######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
    $Pic1 = GUICtrlCreatePic("InstallerPic1.jpg", 0, 0, 164, 304, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $Pic2 = GUICtrlCreatePic("InstallerPic2.jpg", 0, 304, 500, 60, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS,$Ws_Disabled))
    $Button1 = GUICtrlCreateButton("Weiter >", 328, 320, 75, 25, $WS_GROUP)
    $Button2 = GUICtrlCreateButton("Abbruch", 408, 320, 75, 25, $WS_GROUP)
    $Willkommen = GUICtrlCreateLabel("Willkommen beim Test" & @CRLF & "Programm" & @CRLF & "Installations-Assistenten", 176, 16, 313, 92)
    GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
    $Label1 = GUICtrlCreateLabel("Dieses Programm installiert ein Test Programm auf ihrem Computer." & @CRLF & @CRLF & "Bevor Sie mit der Installation beginnen, sollten zunächst alle laufenden Programme beendet werden. Dies erlaubt dem Installations-Assistenten nötige Systemdateien zu erneuern," & @CRLF & "ohne den Coputer neustarten zu müssen." & @CRLF & @CRLF & "Klicken Sie auf ""Weiter"", um fortzusetzen." , 176, 120, 305, 177)
    $Pic2 = GUICtrlCreatePic("InstallerPic2.jpg", 0, 304, 500, 60, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS,$Ws_Disabled))
    ;######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
    ;GUI 2
    ;######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
    $Pic3 = GUICtrlCreatePic("Banner1.jpg", 0, 0, 500, 60, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    GUICtrlSetState(-1,$GUI_HIDE)
    $Icon1 = GUICtrlCreateIcon("InstallerPic3.ico", -1, 32, 96, 56, 56, BitOR($SS_NOTIFY,$WS_GROUP))
    GUICtrlSetState(-1,$GUI_HIDE)
    $Label2 = GUICtrlCreateLabel("Klicken Sie auf ""Weiter"", um den Installationsverlauf fortzusetzen." & @CRLF & "Möchten Sie einen anderen Ordner für Installationen auswählen, klicken" & @CRLF & "Sie auf ""Duchsuchen""." & @CRLF & @CRLF & "Für die Installation dieses Programms braucht man mindstens 955,85 Kb freien Speicherplatz.", 112, 80, 356, 89)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Zielverzeichnis = GUICtrlCreateGroup("Zielverzeichnis", 32, 200, 433, 65)
    GUICtrlSetState(-1,$GUI_HIDE)
    GUICtrlSetColor(-1, 0x0000FF)
    $Input1 = GUICtrlCreateInput($ZielverzeichnisInput, 48, 224, 297, 21)
    GUICtrlSetState(-1,$GUI_HIDE)
    GUICtrlSetColor(-1, 0x000000)
    GUICtrlCreateGroup("", -99, -99, 1, 1)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Button4 = GUICtrlCreateButton("< Zurück", 240, 320, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Button5 = GUICtrlCreateButton("Weiter >", 320, 320, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Button6 = GUICtrlCreateButton("Abbruch", 408, 320, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Button3 = GUICtrlCreateButton("Durchsuchen", 376, 224, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    ;######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
    ;GUI 3
    ;######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
    $Button7 = GUICtrlCreateButton("< Zurück", 240, 320, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Button8 = GUICtrlCreateButton("Weiter >", 320, 320, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Button9 = GUICtrlCreateButton("Abbruch", 408, 320, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Pic5 = GUICtrlCreatePic("Banner2.jpg", 0, 0, 500, 60, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    GUICtrlSetState(-1,$GUI_HIDE)
    $Icon2 = GUICtrlCreateIcon("InstallerPic5.ico", -1, 39, 96, 56, 56, BitOR($SS_NOTIFY,$WS_GROUP))
    GUICtrlSetState(-1,$GUI_HIDE)
    $Label3 = GUICtrlCreateLabel("Wählen Die Bitte zusätzliche Verknüpfungen für das test Programm aus, die bei der Installation erstellt werden sollen.", 127, 80, 349, 49)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Checkbox1 = GUICtrlCreateCheckbox("Verknüpfungen im Startmenü erstellen", 63, 184, 201, 17)
    GUICtrlSetState(-1,$GUI_HIDE)
    GUICtrlSetState(-1, $GUI_CHECKED)
    $Checkbox2 = GUICtrlCreateCheckbox("Verknüpfung auf dem Desktop erstellen", 63, 208, 209, 17)
    GUICtrlSetState(-1,$GUI_HIDE)
    GUICtrlSetState(-1, $GUI_CHECKED)
    $Checkbox3 = GUICtrlCreateCheckbox("Verknüpfung in der Schnellstartleiste erstellen", 63, 232, 241, 17)
    GUICtrlSetState(-1,$GUI_HIDE)
    GUICtrlSetState(-1, $GUI_CHECKED)
    ;##################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
    ;GUI 4
    ;######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
    $Pic6 = GUICtrlCreatePic("Banner3.jpg", 0, 0, 500, 60, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    GUICtrlSetState(-1,$GUI_HIDE)
    $Button10 = GUICtrlCreateButton("< Zurück", 240, 320, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Button11 = GUICtrlCreateButton("Installieren", 320, 320, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Button12 = GUICtrlCreateButton("Abbruch", 408, 320, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Label4 = GUICtrlCreateLabel("Drücken Sie auf ""Installieren"" um die Installation nun zu starten oder auf ""Zurück"", wenn Sie Ihre Einstellungen überprüfen oder erneut eingeben möchsten", 16, 80, 458, 41)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Group1 = GUICtrlCreateGroup("", 24, 128, 457, 169)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Label5 = GUICtrlCreateLabel("Zielverzeichnis:" & @CRLF & " " & $ZielverzeichnisInput & @CRLF & @CRLF & "Verknüpfungen des Programms:" & @CRLF & $Text1 & @CRLF & $Text2 & @CRLF & $Text3 , 32, 144, 441, 145)
    GUICtrlSetState(-1,$GUI_HIDE)
    GUICtrlCreateGroup("", -99, -99, 1, 1)
    GUICtrlSetState(-1,$GUI_HIDE)
    ;######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
    ;GUI 5
    ;######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
    $Pic7 = GUICtrlCreatePic("Banner4.jpg", 0, 0, 500, 60, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    GUICtrlSetState(-1,$GUI_HIDE)
    $Button13 = GUICtrlCreateButton("< Zurück", 240, 320, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    GUICtrlSetState(-1, $GUI_DISABLE)
    $Button14 = GUICtrlCreateButton("Weiter >", 320, 320, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    GUICtrlSetState(-1, $GUI_DISABLE)
    $Button15 = GUICtrlCreateButton("Abbruch", 408, 320, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Label6 = GUICtrlCreateLabel("Bitte warten, bis das Setup alle nötigen Dateien installiert hat.", 32, 88, 291, 17)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Progress1 = GUICtrlCreateProgress(24, 280, 454, 17)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Label7 = GUICtrlCreateLabel("Befehle werden ausgeführt...", 24, 256, 452, 17)
    GUICtrlSetState(-1,$GUI_HIDE)
    ;######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
    ;GUI 6
    ;######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
    $Pic8 = GUICtrlCreatePic("C:\Dokumente und Einstellungen\Jakob\Desktop\Installer\InstallerPic1.jpg", 0, 0, 164, 308, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    GUICtrlSetState(-1,$GUI_HIDE)
    $Button16 = GUICtrlCreateButton("Fertig", 328, 320, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Button17 = GUICtrlCreateButton("Abbruch", 416, 320, 75, 25, $WS_GROUP)
    GUICtrlSetState(-1,$GUI_HIDE)
    GUICtrlSetState(-1, $GUI_DISABLE)
    $Tschuess = GUICtrlCreateLabel("Installation Test Programm wird abgeschlossen", 176, 16, 290, 76)
    GUICtrlSetState(-1,$GUI_HIDE)
    GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
    $Label8 = GUICtrlCreateLabel("Test Programm wurde erfolgreich auf Ihrem Computer installiert. Klicken sie auf ""Fertig"" um das Installationsprogramm zu verlassen.", 176, 120, 297, 81)
    GUICtrlSetState(-1,$GUI_HIDE)
    $Pic9 = GUICtrlCreatePic("C:\Dokumente und Einstellungen\Jakob\Desktop\Installer\InstallerPic2.jpg", 0, 304, 500, 60, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    GUICtrlSetState(-1,$GUI_HIDE)
    $Checkbox4 = GUICtrlCreateCheckbox("Test Programm starten", 176, 216, 233, 17)
    GUICtrlSetState(-1,$GUI_HIDE)
    GUICtrlSetState(-1, $GUI_CHECKED)
    $Checkbox5 = GUICtrlCreateCheckbox("ReadMe Datai öffnen", 176, 240, 169, 17)
    GUICtrlSetState(-1,$GUI_HIDE)
    GUICtrlSetState(-1, $GUI_CHECKED)
    $Checkbox6 = GUICtrlCreateCheckbox("Die Homepage vom Hersteller besuchen", 176, 264, 233, 17)
    GUICtrlSetState(-1,$GUI_HIDE)
    GUICtrlSetState(-1, $GUI_CHECKED)

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

    GUISetState(@SW_SHOW)

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $Button2, $Button6, $Button9, $Button12, -3, $Button15 ;Abbrechen
    $Abbrechen = MsgBox (52,"Installiere Test Programm","Wollen Sie die Installation wirklich abbrechen?")
    If $Abbrechen = 6 Then Exit
    Case $Button1 ;Weiter GUI 1
    GUICtrlSetState($Pic1,$GUI_HIDE)
    GUICtrlSetState($Button1,$GUI_HIDE)
    GUICtrlSetState($Button2,$GUI_HIDE)
    GUICtrlSetState($Willkommen,$GUI_HIDE)
    GUICtrlSetState($Label1,$GUI_HIDE)
    GUICtrlSetState($Pic2,$GUI_HIDE)

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

    GUISetBkColor(0xE0DFE3)
    GUICtrlSetState($Pic3,$GUI_SHOW)
    GUICtrlSetState($Icon1,$GUI_SHOW)
    GUICtrlSetState($Label2,$GUI_SHOW)
    GUICtrlSetState($Zielverzeichnis,$GUI_SHOW)
    GUICtrlSetState($Input1,$GUI_SHOW)
    GUICtrlSetState($Button3,$GUI_SHOW)
    GUICtrlSetState($Button4,$GUI_SHOW)
    GUICtrlSetState($Button5,$GUI_SHOW)
    GUICtrlSetState($Button6,$GUI_SHOW)
    Case $Button4 ;Zurück GUI 2
    GUICtrlSetState($Pic3,$GUI_HIDE)
    GUICtrlSetState($Icon1,$GUI_HIDE)
    GUICtrlSetState($Label2,$GUI_HIDE)
    GUICtrlSetState($Zielverzeichnis,$GUI_HIDE)
    GUICtrlSetState($Input1,$GUI_HIDE)
    GUICtrlSetState($Button3,$GUI_HIDE)
    GUICtrlSetState($Button4,$GUI_HIDE)
    GUICtrlSetState($Button5,$GUI_HIDE)
    GUICtrlSetState($Button6,$GUI_HIDE)

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

    GUISetBkColor(0xFFFFFF)
    GUICtrlSetState($Pic1,$GUI_SHOW)
    GUICtrlSetState($Button1,$GUI_SHOW)
    GUICtrlSetState($Button2,$GUI_SHOW)
    GUICtrlSetState($Willkommen,$GUI_SHOW)
    GUICtrlSetState($Label1,$GUI_SHOW)
    GUICtrlSetState($Pic2,$GUI_SHOW)
    Case $Input1 ;Installationsverzeichnis
    $ZielverzeichnisInput = GUICtrlRead($Input1)
    Case $Button3
    $File = FileSelectFolder ("Installationsverzeichnis wählen...",@ProgramFilesDir,1+2+3)
    GUICtrlSetData ($Input1,$File)
    $ZielverzeichnisInput = GUICtrlRead($Input1)
    Case $Button5 ;Weiter GUI 2
    GUICtrlSetState($Pic3,$GUI_HIDE)
    GUICtrlSetState($Icon1,$GUI_HIDE)
    GUICtrlSetState($Label2,$GUI_HIDE)
    GUICtrlSetState($Zielverzeichnis,$GUI_HIDE)
    GUICtrlSetState($Input1,$GUI_HIDE)
    GUICtrlSetState($Button3,$GUI_HIDE)
    GUICtrlSetState($Button4,$GUI_HIDE)
    GUICtrlSetState($Button5,$GUI_HIDE)
    GUICtrlSetState($Button6,$GUI_HIDE)

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

    GUICtrlSetState($Button7,$GUI_SHOW)
    GUICtrlSetState($Button8,$GUI_SHOW)
    GUICtrlSetState($Button9,$GUI_SHOW)
    GUICtrlSetState($Pic5,$GUI_SHOW)
    GUICtrlSetState($Icon2,$GUI_SHOW)
    GUICtrlSetState($Label3,$GUI_SHOW)
    GUICtrlSetState($Checkbox1,$GUI_SHOW)
    GUICtrlSetState($Checkbox2,$GUI_SHOW)
    GUICtrlSetState($Checkbox3,$GUI_SHOW)
    Case $Button7 ;Zurück GUI 3
    GUICtrlSetState($Button7,$GUI_HIDE)
    GUICtrlSetState($Button8,$GUI_HIDE)
    GUICtrlSetState($Button9,$GUI_HIDE)
    GUICtrlSetState($Pic5,$GUI_HIDE)
    GUICtrlSetState($Icon2,$GUI_HIDE)
    GUICtrlSetState($Label3,$GUI_HIDE)
    GUICtrlSetState($Checkbox1,$GUI_HIDE)
    GUICtrlSetState($Checkbox2,$GUI_HIDE)
    GUICtrlSetState($Checkbox3,$GUI_HIDE)

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

    GUICtrlSetState($Pic3,$GUI_SHOW)
    GUICtrlSetState($Icon1,$GUI_SHOW)
    GUICtrlSetState($Label2,$GUI_SHOW)
    GUICtrlSetState($Zielverzeichnis,$GUI_SHOW)
    GUICtrlSetState($Input1,$GUI_SHOW)
    GUICtrlSetState($Button3,$GUI_SHOW)
    GUICtrlSetState($Button4,$GUI_SHOW)
    GUICtrlSetState($Button5,$GUI_SHOW)
    GUICtrlSetState($Button6,$GUI_SHOW)
    Case $Checkbox1
    $Check1 = GUICtrlRead($Checkbox1)
    If $Check1 = 1 Then
    $VerknuepfungStart = 1
    ElseIf $Check1 = 4 Then
    $VerknuepfungStart = 0
    EndIf
    Case $Checkbox2
    $Check2 = GUICtrlRead($Checkbox2)
    If $Check2 = 1 Then
    $VerknuepfungDeskt = 1
    ElseIf $Check2 = 4 Then
    $VerknuepfungDeskt = 0
    EndIf
    Case $Checkbox3
    $Check3 = GUICtrlRead($Checkbox3)
    If $Check3 = 1 Then
    $VerknuepfungSchne = 1
    ElseIf $Check3 = 4 Then
    $VerknuepfungSchne = 0
    EndIf
    Case $Button8 ;Weiter GUI 3
    GUICtrlSetState($Button7,$GUI_HIDE)
    GUICtrlSetState($Button8,$GUI_HIDE)
    GUICtrlSetState($Button9,$GUI_HIDE)
    GUICtrlSetState($Pic5,$GUI_HIDE)
    GUICtrlSetState($Icon2,$GUI_HIDE)
    GUICtrlSetState($Label3,$GUI_HIDE)
    GUICtrlSetState($Checkbox1,$GUI_HIDE)
    GUICtrlSetState($Checkbox2,$GUI_HIDE)
    GUICtrlSetState($Checkbox3,$GUI_HIDE)

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

    If $VerknuepfungStart = 1 Then
    $Text1 = " Verknüpfung im Startmenü erstellen"
    ElseIf $VerknuepfungStart = 0 Then
    $Text1 = ""
    EndIf
    If $VerknuepfungDeskt = 1 Then
    $Text2 = " Verknüpfung auf dem Desktop erstellen"
    ElseIf $VerknuepfungDeskt = 0 Then
    $Text2 = ""
    EndIf
    If $VerknuepfungSchne = 1 Then
    $Text3 = " Verknüpfung in der Schnellstartleiste erstellen"
    ElseIf $VerknuepfungSchne = 0 Then
    $Text3 = ""
    EndIf
    GUICtrlSetData($Label5,"Zielverzeichnis:" & @CRLF & " " & $ZielverzeichnisInput & @CRLF & @CRLF & "Verknüpfungen des Programms:" & @CRLF & $Text1 & @CRLF & $Text2 & @CRLF & $Text3)
    GUICtrlSetState($Pic6,$GUI_SHOW)
    GUICtrlSetState($Button10,$GUI_SHOW)
    GUICtrlSetState($Button11,$GUI_SHOW)
    GUICtrlSetState($Button12,$GUI_SHOW)
    GUICtrlSetState($Label4,$GUI_SHOW)
    GUICtrlSetState($Group1,$GUI_SHOW)
    GUICtrlSetState($Label5,$GUI_SHOW)
    Case $Button10 ;Zurück GUI 4
    GUICtrlSetState($Pic6,$GUI_HIDE)
    GUICtrlSetState($Button10,$GUI_HIDE)
    GUICtrlSetState($Button11,$GUI_HIDE)
    GUICtrlSetState($Button12,$GUI_HIDE)
    GUICtrlSetState($Label4,$GUI_HIDE)
    GUICtrlSetState($Group1,$GUI_HIDE)
    GUICtrlSetState($Label5,$GUI_HIDE)

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

    GUICtrlSetState($Button7,$GUI_SHOW)
    GUICtrlSetState($Button8,$GUI_SHOW)
    GUICtrlSetState($Button9,$GUI_SHOW)
    GUICtrlSetState($Pic5,$GUI_SHOW)
    GUICtrlSetState($Icon2,$GUI_SHOW)
    GUICtrlSetState($Label3,$GUI_SHOW)
    GUICtrlSetState($Checkbox1,$GUI_SHOW)
    GUICtrlSetState($Checkbox2,$GUI_SHOW)
    GUICtrlSetState($Checkbox3,$GUI_SHOW)
    Case $Button11 ;Installieren GUI 4
    GUICtrlSetState($Pic6,$GUI_HIDE)
    GUICtrlSetState($Button10,$GUI_HIDE)
    GUICtrlSetState($Button11,$GUI_HIDE)
    GUICtrlSetState($Button12,$GUI_HIDE)
    GUICtrlSetState($Label4,$GUI_HIDE)
    GUICtrlSetState($Group1,$GUI_HIDE)
    GUICtrlSetState($Label5,$GUI_HIDE)

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

    GUICtrlSetState($Pic7,$GUI_SHOW)
    GUICtrlSetState($Button13,$GUI_SHOW)
    GUICtrlSetState($Button14,$GUI_SHOW)
    GUICtrlSetState($Button15,$GUI_SHOW)
    GUICtrlSetState($Label6,$GUI_SHOW)
    GUICtrlSetState($Label7,$GUI_SHOW)
    GUICtrlSetState($Progress1,$GUI_SHOW)

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

    For $s = 0 to 100 Step 1
    Sleep (20)
    GUICtrlSetData ($Progress1,$s)
    If $s = 0 Then
    DirCreate ($ZielverzeichnisInput)
    FileInstall ("A.exe",$ZielverzeichnisInput & "\A.exe")
    GUICtrlSetData ($Label7,"Installiere A.exe...")
    ElseIf $s = 30 Then
    FileInstall ("B.exe",$ZielverzeichnisInput & "\B.exe")
    GUICtrlSetData ($Label7,"Installiere B.exe...")
    ElseIf $s = 60 Then
    FileInstall ("C.exe",$ZielverzeichnisInput & "\C.exe")
    GUICtrlSetData ($Label7,"Installiere C.exe...")
    ElseIf $s = 90 Then
    If $VerknuepfungDeskt = 1 Then
    FileCreateShortcut ($ZielverzeichnisInput & "\A.exe",@DesktopDir & "\A.lnk")
    EndIf
    If $VerknuepfungStart = 1 Then
    DirCreate(@ProgramsDir & "\Test Programm")
    FileCreateShortcut ($ZielverzeichnisInput & "\A.exe",@ProgramsDir & "\Test Programm\A.lnk")
    FileCreateShortcut ($ZielverzeichnisInput & "\B.exe",@ProgramsDir & "\Test Programm\B.lnk")
    EndIf
    If $VerknuepfungSchne = 1 Then
    FileCreateShortcut ($ZielverzeichnisInput & "\A.exe",@AppDataDir & "\Microsoft\Internet Explorer\Quick Launch\A.lnk")
    EndIf

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

    If $VerknuepfungDeskt = 1 Or $VerknuepfungSchne = 1 Or $VerknuepfungStart = 1 Then
    GUICtrlSetData ($Label7,"Erstelle Verknüpfungen...")
    EndIf
    FileInstall ("ReadMe.txt",$ZielverzeichnisInput & "\ReadMe.txt")
    EndIf
    Next
    GUICtrlSetData ($Label7,"Fertig...")
    Sleep (500)
    GUICtrlSetState($Pic7,$GUI_HIDE)
    GUICtrlSetState($Button13,$GUI_HIDE)
    GUICtrlSetState($Button14,$GUI_HIDE)
    GUICtrlSetState($Button15,$GUI_HIDE)
    GUICtrlSetState($Label6,$GUI_HIDE)
    GUICtrlSetState($Label7,$GUI_HIDE)
    GUICtrlSetState($Progress1,$GUI_HIDE)

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

    GUISetBkColor(0xFFFFFF)
    GUICtrlSetState($Pic8,$GUI_SHOW)
    GUICtrlSetState($Pic9,$GUI_SHOW)
    GUICtrlSetState($Button16,$GUI_SHOW)
    GUICtrlSetState($Button17,$GUI_SHOW)
    GUICtrlSetState($Tschuess,$GUI_SHOW)
    GUICtrlSetState($Label8,$GUI_SHOW)
    GUICtrlSetState($Checkbox4,$GUI_SHOW)
    GUICtrlSetState($Checkbox5,$GUI_SHOW)
    GUICtrlSetState($Checkbox6,$GUI_SHOW)
    Case $Button16
    If GUICtrlRead($Checkbox4) = 1 Then
    Run ($ZielverzeichnisInput & "\A.exe")
    EndIf
    If GUICtrlRead($Checkbox5) = 1 Then
    ShellExute ($ZielverzeichnisInput & "\ReadMe.txt")
    EndIf
    If GUICtrlRead($Checkbox6) = 1 Then
    _IECreate("http://www.nothing-is-impossible.tk")
    EndIf
    Exit
    EndSwitch
    WEnd

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

    Download: http://rapidshare.com/files/259164293/Install2.rar
    Am anfang beim starten vom script im scite kommt nen fehler der aber eigendlich keiner ist also einfach "continue anyway" klicken.
    Screen:
    [Blockierte Grafik: http://www9.picfront.org/picture/rvB4u794/thb/Screen.jpg]
    Ich hoffe er gefällt euch. Postet bitte Verbesserungs Vorschläge etc. ich werde aber erstmal nicht antworten weil ich ab morgen im urlaub bin...
    lg jakolo

    8 Mal editiert, zuletzt von Jakolo (18. August 2009 um 19:07)

  • Ich verweise mal auf die Forenregel: Spambots und dergleichen sind heir nicht erlaubt!!!!

    Computers are like Airconditioning. They don´t work with open Windows.

  • Ich verweise mal auf die Forenregel: Spambots und dergleichen sind heir nicht erlaubt!!!!


    Oh mist ich schreib das mal kurz um das es keinen spam bot installiert sondern was anderes...
    lg jakolo
    Edit: So habs geändert er installiert jetzt A,B und C .exe die jeweil einfach nur ne Msg Box ausgeben mit "Hallo" drin stehen

    Einmal editiert, zuletzt von Jakolo (23. Juli 2009 um 18:25)

  • Hi Jakolo
    Deine ReadMe Öffnet nicht, Weil sie Nicht Ausführbar ist!

    Benutzte Anstatt Run einfach ShellExecute
    Weil ShellExecute sich das Passende Prog. Sucht.

    Mfg DjD


    Ok Danke mach ich gleich.