How to Make Auto Updater: Visual Studios 2021
Vložit
- čas přidán 23. 03. 2021
- Script 1:
using System.Net;
using System.Diagnostics;
InitializeComponent();
WebClient webClient = new WebClient();
try
{
if (!webClient.DownloadString("yourpastebinlink").Contains("1.5.0"))
{
if (MessageBox.Show("Looks like there is an update! Do you want to download it?", "Demo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
using (var client = new WebClient())
{
Process.Start("UpdaterDemo.exe");
this.Close();
}
}
}
catch
{
}
Script 2:
using System.Net;
using System.IO;
using System.Diagnostics;
using System.IO.Compression;
InitializeComponent();
WebClient webClient = new WebClient();
var client = new WebClient();
try
{
System.Threading.Thread.Sleep(5000);
File.Delete(@".\Demo.exe");
client.DownloadFile("yourfilelink", @"Demo.zip");
string zipPath = @".\Demo.zip";
string extractPath = @".\";
ZipFile.ExtractToDirectory(zipPath, extractPath);
File.Delete(@".\Demo.zip");
Process.Start(@".\Demo.exe");
this.Close();
}
catch
{
Process.Start("Demo.exe");
this.Close();
}
-----tags-----
auto updater, Visual studio auto updater, visual studio, auto updater c#, auto program updater
I am gonna try ASAP thanks mate
I leave thumbs up for you
If you enjoyed leave a thumbs up :)
Come back
Thank You, I Live You
Yeah, I'm unsure I followed all of your steps then when I click my exploit and click no it only works
You must have done something wrong
Bro, the reason why it keeps on showing the popup "There's a new update" it's because your updater.exe isn't capable to write and delete files due to security permissions..this is happening when a user installed the program in program files location..you'll not get this error if you install it on public like "My documents".
you're a legend, thanks for letting us know 🙏 I'll make sure that it asks for admin permissions
neth news man attacked by dog
neth news man attacked by dog
So, The message box asking "do you want to update" will pop up every single time you load up ?
No it shouldn’t if it does you have done something wrong
Hello, I have an error. It is "C55001" and it states that the program does not have a static "Main" method for entry point. This happens when I try to build my updater project(UpdaterDemo). When I build my main project(Demo) it is successful. I have made it to 11:30 with no errors until just now. Great Job with the video though!
I have no idea. I’ve never seen that error before maybe try to look it up and research it. On the the other hand you might of done something wrong. I recommend rewatching the video
oof it may be becuase the file is big or some sort error
did you deleted your programm.cs cause in there is a important code just add programm.cs to your soloution and paste this code into it
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace YOUR NAMESPACE {
static class Program {
[STAThread]
static void Main() {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new YOUR FORM NAME());
}
}
}
neth news man attacked by dog
It just seems to delete the file :/ I'll tinker with it a bit and see if i can get it to actually update
What file repo are you using?
@@mr.snailman7326 Followed your tutorial. I dont really need an auto update , people can just as easily follow my github repos to know whether or not something has been updated
@@socomxcent6108 oh ok
Mr. Snailman if you gave discord I would love to talk as your tutorial has not worked for me. Every time it updates it goes in a loop and keeps updating
Hey! You can try out this method:
czcams.com/video/iMEGtrjMXPU/video.html
It's simple and free!
neth news man attacked by dog
Can this work on gdrive instead of filelinke?
neth news man attacked by dog
i cant see a view button?
can i use wpf?
I miss you Mr snail man
Mr snail brother here he’s in college now poopie
I have a question, will this application work on mac?
No it’s a c# application
@@mr.snailman7326 i wanna make an app for both, what's your advice
@@hassangamal6858 learn c++. c++ is compatible with Mac, windows and Linux
@@hassangamal6858 you van create apps for Mac using Visusl Studio. Go to the oficial documentsttion
in python?
Help me .. Plz It's NOt Work !!
Plz return Mr snail 🐌
o7
HEEEEEEEEEELLLLLLLLPPPPPPPPPPP MEEEEEEEEEEEEEEEEEEEEE PPPPPPLLLLLLLLSSSSSSSSSSS
What u need help with?
🤣🤣🤣🤣🤣🤣🤣
I’m am alive stop lying
되는거로 만들어야지 중간에 안되는 장면 뚝 짜르면 우짜냐
Yes
@@mr.snailman7326 그래도 오찌 어찌 수정해서 되도록 만들었다 도움 됐다 잼민아 땡큐!
@@user-qo3nc6iw2n no problem
@@user-qo3nc6iw2n 혹시 코드좀 공유해주실 수 있으신가요 .. 아무리 해봐도 안되고 있어서
doesnt work followed every step
Yes it does
@@mr.snailman7326 that was quick so heres the thing i open it up and nothing pops up
@@mr.snailman7326 i will try it again
Stolen and do you even understand what you are saying?
I said in the video that I took parts from other videos on CZcams and put them together
@@mr.snailman7326 you took whole video, not few parts
@@unknownlepoggers2753 I took the video and I reshaped it into a better one because the other ones were garbage. I made it way easier to understand how to set it up.
you copied someone elses code. I saw that guy that did the same thing with the same sentence in messagebox
So?
@@mr.snailman7326 lmao W mans