Categories > Coding > C# >

c# autoupdater

Posts: 96

Threads: 11

Joined: Jan, 2020

Reputation: 0

Posted

hey

i made this in like 3 days

explanation of what it does is on the github

if you too lazy to check ill tell you here in a short sentence

 

it downloads a zip file, extracts it to a folder which will be called bin (or whatever you want), and then runs the specified executable chosen in the code.

if you want a more detailed explanation go check the github page

 

https://github.com/botcheek/csharp-bootstrapper

 

code is there as well as commenting in the code which hopefully helps 👍

if you want to improve it or something go ahead and fork it

or if you find a mistake in the code feel free to put it in the issues section on the github page

 

  • 0



























sus73

ecstacy_lxnny

yea i'm lxnny

vip

Posts: 941

Threads: 84

Joined: May, 2021

Reputation: 98

Replied

https://cdn.discordapp.com/emojis/905478989232103435.png

https://cdn.discordapp.com/attachments/913517318133403698/935171083022270494/unknown.png

 

  • 1

im bipolar btw

Fadh

Fadh#4023

Posts: 98

Threads: 5

Joined: Mar, 2021

Reputation: 9

Replied

u wasted 3 days for this trash

  • 1

kyxo in development

Posts: 1008

Threads: 66

Joined: Sep, 2021

Reputation: 20

Replied

@ecstacy_lxnny dont do this, plz.

webclient.dispose(); go brrrrr

  • 1

"Building blocks of imagination, united in the virtual realm, where creativity thrives and friendships ignite. Welcome to the Roblox revolution!" - chatgpt

 

Posts: 96

Threads: 11

Joined: Jan, 2020

Reputation: 0

Replied

@Fadh

 

keyword "3 days"

  • 0

Added

  • 0



























sus73

Posts: 2099

Threads: 10

Joined: Sep, 2020

Reputation: 62

Replied

Yuck 

/char limit 

  • 0

Discord : Doctor Doom#0550

F34R

Fear

Posts: 331

Threads: 54

Joined: Apr, 2021

Reputation: 13

Replied

3 days for a autoupdater? bruh i can make that like in 10 minutes (no offense) but good luck

  • 0

https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png

Posts: 1479

Threads: 95

Joined: Oct, 2019

Reputation: 103

Replied

Made This But Never Release Is Better Than What You Made Above

        static void Main(string[] args)
        {
            /* Variables To Be Set For Proper Working Bootstrapper */
            string DownloadLink = "", FileName = $"";

            /* Delete Files & Clear Directories */
            foreach (var Directories in Directory.GetDirectories(Environment.CurrentDirectory))
                Directory.Delete(Directories, true);

            foreach (var Files in Directory.GetFiles(Environment.CurrentDirectory))
                File.Delete(Files);

            /* Download Update */
            using (var Client = new WebClient { Proxy = null })
            {
                /* Handle Update */
                Client.DownloadFile(DownloadLink, $"{FileName}.zip"); /* DownloadLink = Raw Direct Link, FileName Has To Be A Zipped Folder */
                ZipFile.ExtractToDirectory($"{FileName}/{FileName}.zip", Environment.CurrentDirectory); /* Extract Zip To Current Directory */
                Process.Start($"{FileName}.exe"); /* Start Application */
            }
        }

 

  • 0

Posts: 197

Threads: 10

Joined: Feb, 2021

Reputation: 9

Replied

this code is awful.

  • 0

Im netral, not evil, not too kind either.

KanekiCat

Kaneki Cat

vip

Posts: 102

Threads: 4

Joined: Oct, 2021

Reputation: 24

Replied

bro 3 days?

charss

  • 0

https://cdn.discordapp.com/attachments/1137630921638551623/1138441474980192266/programming.gif

Posts: 96

Threads: 11

Joined: Jan, 2020

Reputation: 0

Replied

@ecstacy_lxnny

i came back to code this from like a 6 month break ATHVE-8GSAATHVE-8GSAATHVE-8GSAATHVE-8GSAATHVE-8GSA

  • 0



























sus73

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )