FileInstall? installiert nicht

  • hallo leute !

    ich arbeite schon lange mit autoit... hab auch ein paar freunde bots scripts und programme gemacht...

    aber es fragte mich ein klassenkamerad, ob ich ihn ein installer machen könnte
    naja ich versuchte es... aber irgendwie sind da ein oder mehere fehler drinnen

    wenn ich ihn ausführe (mit .au3 und "compatibliert .exe kommt die gleiche meldung)

    [Blockierte Grafik: http://www.fotos-hochladen.net/thumbnail/unbenannta4ldchp8_thumb.jpg]

    und wenn ich in SciTE F5 drücke kommt auch eine meldung aber nicht die selbe....

    hier der script:

    Spoiler anzeigen
    [autoit]


    MsgBox (0,"! ! ! !","ACHTUNG: sie müssen anschließend ein Passwort eingeben...")
    $pw1 = InputBox ("Passwortcheck","Bitte geben sie das Passwort ein: (5 - stellig)","","*")

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

    If $pw1 = "K4H81" Then
    MsgBox (0,"INFORMATION","Sie haben das richtige Passwort eingegeben! Drücken sie OK um fortzufahren")
    ProgressOn("Der Installer lädt einen kleinen Moment bitte","Bitte warten ...")

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

    For $i=0 to 500
    ProgressSet($i/500*100,int($i/500*100)&"%")
    Sleep(10)
    Next
    ProgressOff()
    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>

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

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("GTA vice city - INSTALLATION", 420, 162, 194, 124)
    GUISetBkColor(0xABABAB)
    $Label1 = GUICtrlCreateLabel("GTA Intaller: hier können sie GTA vice city installieren !", 8, 8, 401, 22)
    GUICtrlSetFont(-1, 10, 400, 0, "Arial Black")
    $Label2 = GUICtrlCreateLabel("GTA vice city wird in folgendem Pfad installiert:", 8, 32, 279, 20)
    GUICtrlSetFont(-1, 10, 400, 0, "Arial")
    $Label3 = GUICtrlCreateLabel("C:\GTA vice city.zip", 288, 32, 119, 20)
    GUICtrlSetFont(-1, 10, 400, 0, "Arial")
    $Button1 = GUICtrlCreateButton("Installieren !", 216, 64, 193, 89, 0)
    GUICtrlSetFont(-1, 20, 400, 0, "Arial")
    $Button2 = GUICtrlCreateButton("Doch nicht !", 8, 64, 201, 89, 0)
    GUICtrlSetFont(-1, 20, 400, 0, "Arial")
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button2
    MsgBox (0, "INSTALLATIONSABBRUCH","GTA vice city wird nicht installiert...")
    Exit
    ExitLoop
    EndSwitch
    Case $Button2
    MsgBox (0,"INFO","INFO: sobald die Installation fertig ist, kommt eine meldung!")
    FileInstall ("C:\Users\Sandro\Desktop\GTA vice city.zip","C:\GTA vice city.zip",1)
    MsgBox (0,"FERTIG !","Die Installation ist fertig! Sie müssen nur noch das .zip archiv irgendwohin entpacken und schon können sie losspielen !")
    WEnd

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

    EndIf

    [/autoit]

    plsss um hilfeeee !!!!!! :(;( bin voll verzweifelt

    4 Mal editiert, zuletzt von WORLD-KILLER (29. April 2010 um 13:10)

  • Gehts so?

    Spoiler anzeigen
    [autoit]

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

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

    MsgBox(0, "! ! ! !", "ACHTUNG: Sie müssen anschließend ein Passwort eingeben...")
    $pw1 = InputBox("Passwortcheck", "Bitte geben Sie das Passwort ein: (5 - stellig)", "", "*")

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

    If $pw1 = "K4H81" Then
    MsgBox(0, "INFORMATION", "Sie haben das richtige Passwort eingegeben! Drücken Sie OK um fortzufahren")
    #cs
    ProgressOn("Der Installer lädt einen kleinen Moment bitte", "Bitte warten ...")

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

    For $i = 0 To 500
    ProgressSet($i / 500 * 100, Int($i / 500 * 100) & "%")
    Sleep(10)
    Next
    ProgressOff()
    #ce

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

    #region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("GTA vice city - INSTALLATION", 420, 162, 194, 124)
    GUISetBkColor(0xABABAB)
    $Label1 = GUICtrlCreateLabel("GTA Intaller: hier können sie GTA vice city installieren !", 8, 8, 401, 22)
    GUICtrlSetFont(-1, 10, 400, 0, "Arial Black")
    $Label2 = GUICtrlCreateLabel("GTA vice city wird in folgendem Pfad installiert:", 8, 32, 279, 20)
    GUICtrlSetFont(-1, 10, 400, 0, "Arial")
    $Label3 = GUICtrlCreateLabel("C:\GTA vice city.zip", 288, 32, 119, 20)
    GUICtrlSetFont(-1, 10, 400, 0, "Arial")
    $Button1 = GUICtrlCreateButton("Installieren !", 216, 64, 193, 89, 0)
    GUICtrlSetFont(-1, 20, 400, 0, "Arial")
    $Button2 = GUICtrlCreateButton("Doch nicht !", 8, 64, 201, 89, 0)
    GUICtrlSetFont(-1, 20, 400, 0, "Arial")
    GUISetState(@SW_SHOW)
    #endregion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button1
    MsgBox(0, "INFO", "INFO: Sobald die Installation fertig ist, kommt eine Meldung!")
    FileInstall("C:\Users\Sandro\Desktop\GTA vice city.zip", "C:\GTA vice city.zip", 1)
    MsgBox(0, "FERTIG !", "Die Installation ist fertig! Sie müssen nur noch das .zip Archiv entpacken und schon können sie losspielen !")
    EndSwitch
    WEnd
    EndIf

    [/autoit]

    Bring das EndSwitch/WEnd nicht durcheinander ;)

    Ich frag mich wozu du das Progress Dings drin hast...

    €: Hab mal Rechtschreibfehler im Script entfernt :P

  • @Pinguin94,

    du hast $Button2 unterschlagen:

    Spoiler anzeigen
    [autoit]

    MsgBox(0, "! ! ! !", "ACHTUNG: sie müssen anschließend ein Passwort eingeben...")
    $pw1 = InputBox("Passwortcheck", "Bitte geben sie das Passwort ein: (5 - stellig)", "", "*")

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

    If $pw1 = "K4H81" Then
    MsgBox(0, "INFORMATION", "Sie haben das richtige Passwort eingegeben! Drücken sie OK um fortzufahren")
    ProgressOn("Der Installer lädt einen kleinen Moment bitte", "Bitte warten ...")

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

    For $i = 0 To 500
    ProgressSet($i / 500 * 100, Int($i / 500 * 100) & "%")
    Sleep(10)
    Next
    ProgressOff()
    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>

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

    #region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("GTA vice city - INSTALLATION", 420, 162, 194, 124)
    GUISetBkColor(0xABABAB)
    $Label1 = GUICtrlCreateLabel("GTA Intaller: hier können sie GTA vice city installieren !", 8, 8, 401, 22)
    GUICtrlSetFont(-1, 10, 400, 0, "Arial Black")
    $Label2 = GUICtrlCreateLabel("GTA vice city wird in folgendem Pfad installiert:", 8, 32, 279, 20)
    GUICtrlSetFont(-1, 10, 400, 0, "Arial")
    $Label3 = GUICtrlCreateLabel("C:\GTA vice city.zip", 288, 32, 119, 20)
    GUICtrlSetFont(-1, 10, 400, 0, "Arial")
    $Button1 = GUICtrlCreateButton("Installieren !", 216, 64, 193, 89, 0)
    GUICtrlSetFont(-1, 20, 400, 0, "Arial")
    $Button2 = GUICtrlCreateButton("Doch nicht !", 8, 64, 201, 89, 0)
    GUICtrlSetFont(-1, 20, 400, 0, "Arial")
    GUISetState(@SW_SHOW)
    #endregion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button2
    MsgBox(0, "INSTALLATIONSABBRUCH", "GTA vice city wird nicht installiert...")
    Exit
    ExitLoop
    Case $Button1
    MsgBox(0, "INFO", "INFO: sobald die Installation fertig ist, kommt eine meldung!")
    FileInstall("C:\Users\Sandro\Desktop\GTA vice city.zip", "C:\GTA vice city.zip", 1)
    MsgBox(0, "FERTIG !", "Die Installation ist fertig! Sie müssen nur noch das .zip archiv irgendwohin entpacken und schon können sie losspielen !")
    EndSwitch
    WEnd

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

    EndIf

    [/autoit]

    mfg (Auto)Bert

  • hey leute ! hab compatible gedrückt und die exe auf mein laptop via usb raufgetan und probiert
    aberC:/GTA vice city.zip existiert nicht!
    warum?

    also es installiert nicht warum???

    die exe hatte 413mb

    und gta in zip 412 also müsste es theorethisch klappen...

    Einmal editiert, zuletzt von WORLD-KILLER (29. April 2010 um 13:19)

  • Er hatte Button2 2mal drin, so hab ich das mit dem Exit rausgelöscht und durch Button1 ersetzt. (Wozu eigentlich Exit und dahinter direkt ExitLoop? )

  • exitloop ka^^

    hab mal beides reingemacht falls exit nicht geht...

    lol? bei meinem laptop installiert es immernoch nicht....

    Einmal editiert, zuletzt von WORLD-KILLER (29. April 2010 um 13:39)

  • Kannst du mal den Pfad zu der Exe prüfen ???

    [autoit]

    If FileExists("C:\Users\Sandro\Desktop\GTA vice city.zip") Then

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

    MsgBox(0, "", "Alles Ok, Datei liegt in angegebenem Pfad")
    Else
    MsgBox(0, "", "Datei wurde nicht gefunden")
    EndIf

    [/autoit]

    [MSIE_newline_end ]

    - MfG OpaEd

  • ja ich blase die aktion allmählich ab....

    denn ich habe mir vorgestellt dass mein freund nur die exe öffnen müsse ein paar mal ok drücken und es wäre C:\GTA vice city.zip
    aber wenn es nicht klappt ist es nicht eure schuld...

  • gib hald mal das script oder machst du n bot oder so????
    das es nciht geben willst nur das scirpt das zip kannst ja behalten xD