Categories > Coding > C# >
c# autoupdater
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
sus73
Replied
https://cdn.discordapp.com/emojis/905478989232103435.png
https://cdn.discordapp.com/attachments/913517318133403698/935171083022270494/unknown.png
Cancel
Post
im bipolar btw
Replied
u wasted 3 days for this trash
Cancel
Post
kyxo in development
"Building blocks of imagination, united in the virtual realm, where creativity thrives and friendships ignite. Welcome to the Roblox revolution!" - chatgpt
sus73
Replied
Yuck
/char limit
Cancel
Post
Discord : Doctor Doom#0550
Replied
3 days for a autoupdater? bruh i can make that like in 10 minutes (no offense) but good luck
Cancel
Post
https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png
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 */
}
}
Cancel
Post
Im netral, not evil, not too kind either.
Replied
bro 3 days?
charss
Cancel
Post
https://cdn.discordapp.com/attachments/1137630921638551623/1138441474980192266/programming.gif
Replied
i came back to code this from like a 6 month break ATHVE-8GSAATHVE-8GSAATHVE-8GSAATHVE-8GSAATHVE-8GSA
Cancel
Post
sus73
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post