I apologize for the lifting of an old topic.
How to make it supports files exe version?
How to make it supports files exe version?
Replace:Quote:
I apologize for the lifting of an old topic.
How to make it supports files exe version?
using (ZipFile zip = ZipFile.Read(file))
{
foreach (ZipEntry zipFiles in zip)
{
zipFiles.Extract(Root + "\\Resource\\", true);
}
}
deleteFile(file);
if (Path.GetExtension(file).Equals(".zip"))
{
using (ZipFile zip = ZipFile.Read(file))
{
foreach (ZipEntry zipFiles in zip)
{
zipFiles.Extract(Root + "\\Resource\\", true);
}
}
deleteFile(file);
}
Quote:
Replace:
with:Code: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.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); }
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!");
}
<current>version</current>
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.Quote:
Nice work ;) , for me, you could forget that "version.txt" file, you just have to add
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.Code:<current>version</current>
I keep saying, and for some reason people do understand, so I'm going to use Google Translate. Hopefully my message get's across:Quote:
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
This is a forum for the discussion of Rappelz private servers.Quote:
can help me who did the launcher for my warrock p server but when I load a new patch adding and says not only of the client uptodatet help! : S