Moin
Ich hab zb. ein Programm erstellt und gebe das in form eines Zips mit mehren daten zum download frei.
Nun soll meine istallations exe die daten entpacken und einige regis schreiben wie z.b. version usw.
ist sowas umsetztbar?
Moin
Ich hab zb. ein Programm erstellt und gebe das in form eines Zips mit mehren daten zum download frei.
Nun soll meine istallations exe die daten entpacken und einige regis schreiben wie z.b. version usw.
ist sowas umsetztbar?
Ich glaube nicht das es geht die zip zu entpacken.
Wenn es mehrere Unterordner sind, dann mach DirCreate() und kopier die dateien dann mit
FileInstall() rein.
Alles was du zum installieren brauchst ist:
[autoit]Fileinstall()
RegWrite
ja wie machen dass den andere softwareanbieter/hersteller.
Da muss man ein Programm doch zuallererst auch erst installieren was passiert den da standardmässig außer, dass regis geschrieben werden, den man ladet ja im prinzig nur eine ee runter und dann wird ein verzeichniss erstell, wo die ganzen dateien unterordner usw. reinkommen
Du hast dein programm in form einer exe und die dateien die du brauchst (dll's, bilder, ...)
alle diese dateien packst du mithilfe von fileinstall in eine instalationsexe. mit der du dann gleichzeitig auch noch die registryeinträge, verzeichnisse und verknüpfungen erstellst die du brauchst
Ja, du erstellst diese Unterordner mir
[autoit]DirCreate()
[/autoit]
Und die dateien kopierst du dann rein mit
FileInstall()
[/autoit]//Edit: Immer diese Sekunden
Du hast dein programm in form einer exe und die dateien die du brauchst (dll's, bilder, ...)
alle diese dateien packst du mithilfe von fileinstall in eine instalationsexe. mit der du dann gleichzeitig auch noch die registryeinträge, verzeichnisse und verknüpfungen erstellst die du brauchst
ok und wie bekomme ich diese Dateien wieder aus der exe raus. bzw.
der, der mein Programm runterladet soll ja nur eine installations exe runterladen, die dann regis erstellt und die dateien in ein vom User angegebenses verzeichniss legt
hallo darter,
was willst du genau machen?
beispiel:
1. du hast dein script, daraus machst du eine exe
2. mit dieser exe willst du was machen?
3. mit fileinstall kannst du andere dateien in dein script (exe) packen, dieses wird dann beim starten der exe in den angegebenen pfad extrahiert!
4. registry einträge kannst du mit autoit schreiben ...
5. zip entpacken geht auch, ich mach das über eine eingebundene 7zip.dll
schreib mal biss mehr zu deinem anliegen ...
wie soll der user den pfad eingeben, das musst du ihm ja über deine routine mitgeben!
du kannst eine gui machen und machst einen open dialog, wo er dann den pfad auswählen kann, dann noch einen button " entpacken"
gruß gmmg
Also ich habe
2 exe dateien eine haupt exe und eine Update exe
dan habe ich ein unterverzeichniss mit mehreren Bildern
und dann hab ich eben auch noch dll´s
all diese daten sollen in form einer einzigen installations exe gedownloadet werden und dann sollen diese eben in ein vom User angegebenes problem geschrieben werden und dann halt auch noch ein paar reigis geschrieben werden
Edit: ach und mit fileinstall kann ich diese gazen dateien aus der intall exe wieder raushlen oder?
Edit: ach und mit fileinstall kann ich diese gazen dateien aus der intall exe wieder raushlen oder?
genau das.
du lädst die ganzen dateien quasi in eine exe
ja ... das geht!
hänge dir mal ein beispiel an ...
[autoit][/autoit][autoit][/autoit][autoit]FileInstall("C:\scripte\7z.dll", @ScriptDir & "\TEMP\7z.dll",1)
;7z.dll liegt im pfad C:\scripte\ und wird nach @ScriptDir & "\TEMP\7z.dll extrahiert
clezZ, Schnitzel
scheinbar schreiben wir alle zur fast gleichen zeit
scheinbar schreiben wir alle zur fast gleichen zeit
aber eben nur fast
und noch was anderes, wenn ihr viel bilder in einem Programm benutzt ist es da sinnvoll, diese Bilder in einem Sripkt als Binäri zu speichern und pracktisch das Das Bild direkt aus dem Skript laden
und noch was anderes, wenn ihr viel bilder in einem Programm benutzt ist es da sinnvoll, diese Bilder in einem Sripkt als Binäri zu speichern und pracktisch das Das Bild direkt aus dem Skript laden
das geht soweit ich weiß nur über umwege
Da muss ich dir recht geben:
und noch was anderes, wenn ihr viel bilder in einem Programm benutzt ist es da sinnvoll, diese Bilder in einem Sripkt als Binäri zu speichern und pracktisch das Das Bild direkt aus dem Skript lade
//Edit: Schnitzel: Naja, so ein großer Umweg ist das auch nicht.
Nimm doch z.b. NSIS (einfach mal googln)
denke mal, das es auf die größe der bilder ankommt!
ich benutze bilder eingentlich nur in einer gui zum beispiel ist das dann ein logo ...
das füge ich dem script mit fileinstall bei ...und lass es beim schließen wieder löschen ...
;--------- fügt bilder dem setup hinzu .......
FileInstall("..\01Logo.gif", @ScriptDir & "\TEMP\01Logo.gif",1)
FileInstall("..\gradientbar2.bmp", @ScriptDir & "\TEMP\gradientbar2.bmp",1)
$gui = GUICreate("Setup 1.0.0.1 ...", 251, 90, 222, 137)
GUISetBkColor(0xFFFFFF) ; setzt hintergrundfarbe
$picbk = GUICtrlCreateLabel("", 20, 50, 205, 15)
GUICtrlSetBkColor(-1, 0xFFFFFF)
$pic = GUICtrlCreatePic(@ScriptDir & "\TEMP\gradientbar2.bmp", 28, 70, 5, 15)
$Pic1 = GUICtrlCreatePic(@ScriptDir & "\TEMP\01Logo.gif", 64, 0, 105, 57, BitOR($SS_NOTIFY,$WS_CLIPSIBLINGS))
$label = GUICtrlCreateLabel("... Setup wird vorbereitet ...", 20, 70, 205, 15, $SS_CENTER)
GUISetState(@SW_SHOW)
ich benutze "Installer2Go", wenn ich ein z.b. ein msi packet aus den autoit scripten erstellen will (für softwareverteilung über gpo)
gruß gmmg
wenn du es downloaden willst:
#include <zip.au3>
InetGet("url", @TempDir, "\deine.zip")
$install = FileSelectFolder("Bitte wähle den Ordner für die installation.", @MyDocumentsDir, 4)
_Zip_UnzipAll(@TempDir & "\deine.zip", $install, 0)
Wenn du es direkt im script haben willst:
#include <zip.au3>
FileInstall(@ScriptDir & "\deine.zip", @TempDir & "\")
$install = FileSelectFolder("Bitte wähle den Ordner für die installation.", @MyDocumentsDir, 4)
_Zip_UnzipAll(@TempDir & "\deine.zip", $install, 0)
Danke für die vielen und netten Antworten ich habs hinbekommen thx an alle