[RELEASE] Launcher/Updater [Source]

05/22/2013 04:20 thund22222#31
I apologize for the lifting of an old topic.
How to make it supports files exe version?
05/22/2013 10:24 c1ph3r#32
Quote:
Originally Posted by thund22222 View Post
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.
05/22/2013 10:43 thund22222#33
Quote:
Originally Posted by c1ph3r View Post
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.

Thank you very much.
I am with me deserve thanks I have received assistance from you. :)
06/15/2013 09:14 david512r#34
Not work come this :

[Only registered and activated users can see links. Click Here To Register...]
06/15/2013 10:39 Player95#35
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!");
            }
06/20/2013 17:47 neaw#36
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.
06/21/2013 01:29 TheChinStrap#37
Quote:
Originally Posted by neaw View Post
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.
06/24/2013 03:12 ElBier#38
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
06/24/2013 06:07 TheChinStrap#39
Quote:
Originally Posted by ElBier View Post
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.
06/24/2013 14:20 ElBier#40
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
06/24/2013 15:21 ThunderNikk#41
Quote:
Originally Posted by ElBier View Post
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
This is a forum for the discussion of Rappelz private servers.

For WarRock you will have to find your solution in their section...

[Only registered and activated users can see links. Click Here To Register...]
06/24/2013 16:13 ElBier#42
i know ^^ i have creat launcher for warrock and i seach help for the launcher ^^
06/24/2013 18:15 ThunderNikk#43
That's what I was trying to say, they have their own forum section.

I linked it for you...

[Only registered and activated users can see links. Click Here To Register...]

There is no help for launching the game WarRock on the Rappelz Private Server forum section.

[Only registered and activated users can see links. Click Here To Register...]
07/16/2013 23:47 virus1998#44
Bro !

Progress Bar not Working
07/17/2013 02:14 TheChinStrap#45
Quote:
Originally Posted by virus1998 View Post
Bro !

Progress Bar not Working
Bro! You have the source code... Fix it!