[Release] GunZ Uber Installer

Extreme Coder - Delphi
Loyal Member
Joined
Sep 8, 2007
Messages
1,381
Reaction score
39
Just started about 3 hours ago and managed to finish coding my GunZ installer. What it does is actually download the client as a RAR file then unpacks it to C:\program files or wherever u want. Heres download link

To use just open Config.bounty with notepad and edit.
Its really easy to use =D

Please rate, as im going to add the installer code to my Custom GunZ Launcher.

Thanks in advance
 


there ya go

config file:
Code:
[Config]
\\Name of the GunZ
GameName=Bounty-Hunter GunZ lols
\\The info for the GunZ Client
GameDetails=Bounty hunter rocks :S lol =D
\\Client download link, The Client must be in RAR format
DownloadLink=http://www.maximumcompression.com/data/files/text-test.rar
\\Client install Path
InstPath=C:\Program Files
 
I wanna dedi too xD :D

GMSinister Where u see your Tut how to make a maple Story Server

i rly want and idk how to make :(
 
Oh please, it's C#. Which means .NET which means he already gave you the source.

I.E.
Code:
    private void Download()
    {
        using (WebClient client = new WebClient())
        {
            try
            {
                string requestUriString = this.ReadBounty.IniReadValue("Config", "DownloadLink");
                this.webRequest = (HttpWebRequest) WebRequest.Create(requestUriString);
                this.webRequest.Credentials = CredentialCache.DefaultCredentials;
                this.webResponse = (HttpWebResponse) this.webRequest.GetResponse();
                long contentLength = this.webResponse.ContentLength;
                this.strResponse = client.OpenRead(requestUriString);
                this.strLocal = new FileStream(Application.StartupPath + @"\GunZ.rar", FileMode.Create, FileAccess.Write, FileShare.None);
                int count = 0;
                byte[] buffer = new byte[0x800];
                while ((count = this.strResponse.Read(buffer, 0, buffer.Length)) > 0)
                {
                    this.strLocal.Write(buffer, 0, count);
                    base.Invoke(new UpdateProgessCallback(this.UpdateProgress), new object[] { this.strLocal.Length, contentLength });
                }
            }
            finally
            {
                this.strResponse.Close();
                this.strLocal.Close();
                this.Install();
            }
        }
    }

If your going to code in C# at least pack it or give the source.
 
C# executables are very easily decompiled into readable source(Google C# Decompiler).

You can either pack the executable with the many free and commercial packers available or use C#(.NET) specific protections such as .
 
Back