How to Make Auto Updater: Visual Studios 2021

  Рет қаралды 20,322

Mr. Snailman

Mr. Snailman

3 жыл бұрын

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

Пікірлер: 67
@krozixx5994
@krozixx5994 3 жыл бұрын
I am gonna try ASAP thanks mate
@mr.snailman7326
@mr.snailman7326 3 жыл бұрын
If you enjoyed leave a thumbs up :)
@thakiddj17
@thakiddj17 2 жыл бұрын
Come back
@nbagnunu2817
@nbagnunu2817 2 жыл бұрын
I leave thumbs up for you
@ls22moddingtutorial17
@ls22moddingtutorial17 2 жыл бұрын
Thank You, I Live You
@wcv7
@wcv7 3 жыл бұрын
i cant see a view button?
@happysrobloxgaming4108
@happysrobloxgaming4108 3 жыл бұрын
Yeah, I'm unsure I followed all of your steps then when I click my exploit and click no it only works
@mr.snailman7326
@mr.snailman7326 3 жыл бұрын
You must have done something wrong
@solzar8795
@solzar8795 2 жыл бұрын
can i use wpf?
@roypepito
@roypepito Жыл бұрын
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".
@SynthGirl64
@SynthGirl64 Жыл бұрын
you're a legend, thanks for letting us know 🙏 I'll make sure that it asks for admin permissions
@jaidonwalker741
@jaidonwalker741 Жыл бұрын
neth news man attacked by dog
@jaidonwalker741
@jaidonwalker741 Жыл бұрын
neth news man attacked by dog
@user-qs5hk2zt5j
@user-qs5hk2zt5j 2 жыл бұрын
Help me .. Plz It's NOt Work !!
@Techn0Ninja
@Techn0Ninja 2 жыл бұрын
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!
@mr.snailman7326
@mr.snailman7326 2 жыл бұрын
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
@danyal_assi
@danyal_assi 2 жыл бұрын
oof it may be becuase the file is big or some sort error
@Jimrim
@Jimrim 2 жыл бұрын
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()); } } }
@jaidonwalker741
@jaidonwalker741 Жыл бұрын
neth news man attacked by dog
@ghostakatactu
@ghostakatactu 7 ай бұрын
in python?
@kkroushcurve2810
@kkroushcurve2810 2 жыл бұрын
So, The message box asking "do you want to update" will pop up every single time you load up ?
@mr.snailman7326
@mr.snailman7326 2 жыл бұрын
No it shouldn’t if it does you have done something wrong
@socomxcent6108
@socomxcent6108 3 жыл бұрын
It just seems to delete the file :/ I'll tinker with it a bit and see if i can get it to actually update
@mr.snailman7326
@mr.snailman7326 3 жыл бұрын
What file repo are you using?
@socomxcent6108
@socomxcent6108 3 жыл бұрын
@@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
@mr.snailman7326
@mr.snailman7326 3 жыл бұрын
@@socomxcent6108 oh ok
@jaidonwalker741
@jaidonwalker741 Жыл бұрын
neth news man attacked by dog
@suicidedeath3955
@suicidedeath3955 2 жыл бұрын
Can this work on gdrive instead of filelinke?
@jaidonwalker741
@jaidonwalker741 Жыл бұрын
neth news man attacked by dog
@hassangamal6858
@hassangamal6858 3 жыл бұрын
I have a question, will this application work on mac?
@mr.snailman7326
@mr.snailman7326 3 жыл бұрын
No it’s a c# application
@hassangamal6858
@hassangamal6858 3 жыл бұрын
@@mr.snailman7326 i wanna make an app for both, what's your advice
@mr.snailman7326
@mr.snailman7326 3 жыл бұрын
@@hassangamal6858 learn c++. c++ is compatible with Mac, windows and Linux
@maikelgutierrez8558
@maikelgutierrez8558 3 жыл бұрын
@@hassangamal6858 you van create apps for Mac using Visusl Studio. Go to the oficial documentsttion
@thakiddj17
@thakiddj17 2 жыл бұрын
I miss you Mr snail man
@squidward3845
@squidward3845 10 ай бұрын
Mr snail brother here he’s in college now poopie
@wavyyy5
@wavyyy5 2 жыл бұрын
doesnt work followed every step
@mr.snailman7326
@mr.snailman7326 2 жыл бұрын
Yes it does
@wavyyy5
@wavyyy5 2 жыл бұрын
@@mr.snailman7326 that was quick so heres the thing i open it up and nothing pops up
@wavyyy5
@wavyyy5 2 жыл бұрын
@@mr.snailman7326 i will try it again
@thakiddj17
@thakiddj17 2 жыл бұрын
Plz return Mr snail 🐌
@wcv7
@wcv7 3 жыл бұрын
HEEEEEEEEEELLLLLLLLPPPPPPPPPPP MEEEEEEEEEEEEEEEEEEEEE PPPPPPLLLLLLLLSSSSSSSSSSS
@mr.snailman7326
@mr.snailman7326 3 жыл бұрын
What u need help with?
@nikolaaa7180
@nikolaaa7180 Жыл бұрын
you copied someone elses code. I saw that guy that did the same thing with the same sentence in messagebox
@mr.snailman7326
@mr.snailman7326 Жыл бұрын
So?
@eerofr
@eerofr Жыл бұрын
@@mr.snailman7326 lmao W mans
@nbagnunu2817
@nbagnunu2817 2 жыл бұрын
I’m am alive stop lying
@RAMIREZDAROCKSTAR
@RAMIREZDAROCKSTAR Жыл бұрын
o7
@unknownlepoggers2753
@unknownlepoggers2753 3 жыл бұрын
Stolen and do you even understand what you are saying?
@mr.snailman7326
@mr.snailman7326 3 жыл бұрын
I said in the video that I took parts from other videos on KZfaq and put them together
@unknownlepoggers2753
@unknownlepoggers2753 2 жыл бұрын
@@mr.snailman7326 you took whole video, not few parts
@mr.snailman7326
@mr.snailman7326 2 жыл бұрын
@@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.
@masonstokes1272
@masonstokes1272 11 ай бұрын
🤣🤣🤣🤣🤣🤣🤣
@user-qo3nc6iw2n
@user-qo3nc6iw2n 2 жыл бұрын
되는거로 만들어야지 중간에 안되는 장면 뚝 짜르면 우짜냐
@mr.snailman7326
@mr.snailman7326 2 жыл бұрын
Yes
@user-qo3nc6iw2n
@user-qo3nc6iw2n 2 жыл бұрын
@@mr.snailman7326 그래도 오찌 어찌 수정해서 되도록 만들었다 도움 됐다 잼민아 땡큐!
@mr.snailman7326
@mr.snailman7326 2 жыл бұрын
@@user-qo3nc6iw2n no problem
@user-qs5hk2zt5j
@user-qs5hk2zt5j 2 жыл бұрын
@@user-qo3nc6iw2n 혹시 코드좀 공유해주실 수 있으신가요 .. 아무리 해봐도 안되고 있어서
@FireBlast2.0
@FireBlast2.0 2 жыл бұрын
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
@vib2810
@vib2810 2 жыл бұрын
Hey! You can try out this method: kzfaq.info/get/bejne/n7N1etejz7O8gIk.html It's simple and free!
Immutable Linux, without the hassle? Vanilla OS 2 Orchid
16:10
The Linux Experiment
Рет қаралды 12 М.
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 25 МЛН
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 4,9 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 14 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 72 МЛН
Arm PC Build (Rock 5 ITX)
22:35
ExplainingComputers
Рет қаралды 87 М.
Janelas Bonitas no Python - Sistema de Login com CustomTkinter
15:14
Hashtag Programação
Рет қаралды 51 М.
Your Old PC is Your New Server
11:07
Linus Tech Tips
Рет қаралды 6 МЛН
INTRODUCTION TO VISUAL STUDIO CODE
7:12
SAPIF
Рет қаралды 146
C#/WPF - Deploying WPF apps with Squirrel
2:37:53
Kevin Bost
Рет қаралды 3,1 М.
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 25 МЛН