I apologize for the lifting of an old topic.
How to make it supports files exe version?
Replace:
Code:
using (ZipFile zip = ZipFile.Read(file))
{
foreach (ZipEntry zipFiles in zip)
{
zipFiles.Extract(Root + "\\Resource\\", true);
}
}
deleteFile(file);
with:
Code:
if (Path.GetExtension(file).Equals(".zip"))
{
using (ZipFile zip = ZipFile.Read(file))
{
foreach (ZipEntry zipFiles in zip)
{
zipFiles.Extract(Root + "\\Resource\\", true);
}
}
deleteFile(file);
}
Now it will only extract .zip files to the resource folder. If you add something like a sframe to the update.xml it will copy it to the current directory.
using (ZipFile zip = ZipFile.Read(file))
{
foreach (ZipEntry zipFiles in zip)
{
zipFiles.Extract(Root + "\\Resource\\", true);
}
}
deleteFile(file);
with:
Code:
if (Path.GetExtension(file).Equals(".zip"))
{
using (ZipFile zip = ZipFile.Read(file))
{
foreach (ZipEntry zipFiles in zip)
{
zipFiles.Extract(Root + "\\Resource\\", true);
}
}
deleteFile(file);
}
Now it will only extract .zip files to the resource folder. If you add something like a sframe to the update.xml it will copy it to the current directory.
Thank you very much.
I am with me deserve thanks I have received assistance from you.
Sachmal du kannst ja wohl schreiben, aber kannst du auch lesen????
Ich kann's gerade nicht richtig, da keine Brille auf, aber da steht doch klar und deutlich
"Das System kann die angegebene Datei nicht finden". Und unten weiter noch irgendwas mit Process.Start().
Jetzt ist Hirn einschalten angesagt!!!
Den Code nach "Process.Start" durchsuchen und den entsprechenden Teil in eine try-catch-Anweisung packen.
ODER einfach aufpassen, dass die SFrame im Applikationsverzeichnis ist, bzw. der Launcher im Rappelz Client Ordner.
Verdammt noch mal ...
Edit:
Dir wird in der Fehlermeldung weiter unten sogar die Zeile angegeben, in der der Fehler gefunden wurde. Das entsprechende Codeschnipsel sollte dann mit einer try-catch-Anweisung ungefähr so aussehen. Die Kommentare kannst du ja löschen:
Code:
try
{
//Prozess wird gestartet
Process.Start("SFrame.exe", "/auth_ip: 127.0.0.1 /locale:ASCII /country:DE /cash /commercial_shop");
//Launcher wird beendet
Application.Exit();
}
//Wenn eine Win32Exception auftritt, mache hier weiter ...
catch (Win32Exception)
{
//Zeige eine Fehlermeldung an ...
MessageBox.Show("SFrame.exe wurde nicht gefunden!");
}
Nice work , for me, you could forget that "version.txt" file, you just have to add
Code:
<current>version</current>
into your xml file, your software would be more faster . It's not that much but it allows you to bypass all http processes in framework to retrieve this file.
Nice work , for me, you could forget that "version.txt" file, you just have to add
Code:
<current>version</current>
into your xml file, your software would be more faster . It's not that much but it allows you to bypass all http processes in framework to retrieve this file.
I appreciate the input. Honestly, I'm not looking to update this launcher. It was a quick, simple launcher made to stop the "Me need launcher" threads. My current launcher Simply compares files from client to server. No version check and no zips. Still not sure whether i should release it. No one gives me credits when they use my launcher and some people even re-release it and call it their own. So I probably won't release the newer one.
kann mir wer helfen habe den launcher für mein warrock p-server gemacht aber wenn ich ein neuen patch Hinzufüge lädt der den nicht und sagt nur client uptodatet hilfe!!! :S
kann mir wer helfen habe den launcher für mein warrock p-server gemacht aber wenn ich ein neuen patch Hinzufüge lädt der den nicht und sagt nur client uptodatet hilfe!!! :S
I keep saying, and for some reason people do understand, so I'm going to use Google Translate. Hopefully my message get's across:
Ich spreche kein Deutsch. Wenn Sie Hilfe benötigen, müssen Sie dafür in Englisch stellen.
[Release] Open source Launcher v1 04/09/2020 - EO PServer Guides & Releases - 22 Replies Devil's launcher open source project
°Features :
Server status picture based.
News .
Costom GUI.
Rollover pictures.
Special Design.
Launcher + Updater ! 11/04/2012 - Last Chaos Private Server - 9 Replies Suche DRINGEND jemand, der sich mit LAUNCHER+UPDATER auskennt..
MFG
[Release] Simpler Updater Source 07/31/2012 - Metin2 PServer Guides & Strategies - 50 Replies Hallo Leute,
da ich hier aufm PC nen Updater rumfliegen hatte, habe ich mir gedacht, möchte ich ihn mal für euch zur Verfügung stellen.
Leider ist der Code nicht ganz sauber, da ich noch nicht viel Erfahrung in C# habe. Trotzdem möchte ich einigen die Möglichkeit geben, den Code zu verbessern oder ihn als Grundlage für einen individuellen Updater zu benutzen. Ich habe schon einige Updater gesehen, aber das ewige Geheimhalten der Source finde ich lächerlich.
Funktionsweise:
VB launcher + updater 04/16/2011 - Dekaron Private Server - 0 Replies Hi I made a game launcher/updater in VB.NET.
It's also finish but I need help because I use DIV and I don't know exacly what is the code to download DIV.
Thanks
Launcher, Updater ?!? 02/20/2011 - WarRock - 6 Replies Also ich habe mir qerade WarRock neu qeladen, und dann bleibt es stehen.
http://www7.pic-upload.de/20.02.11/1rx8vtc82j56.p ng