How to Make Auto Updater: Visual Studios 2021

Sdílet
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

Komentáře • 67

  • @krozixx5994
    @krozixx5994 Před 3 lety +4

    I am gonna try ASAP thanks mate

  • @nbagnunu2817
    @nbagnunu2817 Před 2 lety +1

    I leave thumbs up for you

  • @mr.snailman7326
    @mr.snailman7326  Před 3 lety +6

    If you enjoyed leave a thumbs up :)

  • @ls22moddingtutorial17
    @ls22moddingtutorial17 Před 2 lety

    Thank You, I Live You

  • @happysrobloxgaming4108
    @happysrobloxgaming4108 Před 3 lety +2

    Yeah, I'm unsure I followed all of your steps then when I click my exploit and click no it only works

  • @roypepito
    @roypepito Před rokem +1

    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 Před rokem +2

      you're a legend, thanks for letting us know 🙏 I'll make sure that it asks for admin permissions

    • @jaidonwalker741
      @jaidonwalker741 Před rokem +1

      neth news man attacked by dog

    • @jaidonwalker741
      @jaidonwalker741 Před rokem +1

      neth news man attacked by dog

  • @kkroushcurve2810
    @kkroushcurve2810 Před 2 lety

    So, The message box asking "do you want to update" will pop up every single time you load up ?

    • @mr.snailman7326
      @mr.snailman7326  Před 2 lety

      No it shouldn’t if it does you have done something wrong

  • @Techn0Ninja
    @Techn0Ninja Před 2 lety +1

    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  Před 2 lety

      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 Před 2 lety

      oof it may be becuase the file is big or some sort error

    • @Jimrim
      @Jimrim Před 2 lety

      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 Před rokem

      neth news man attacked by dog

  • @socomxcent6108
    @socomxcent6108 Před 3 lety +1

    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  Před 3 lety

      What file repo are you using?

    • @socomxcent6108
      @socomxcent6108 Před 3 lety

      @@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  Před 3 lety

      @@socomxcent6108 oh ok

  • @FireBlast2.0
    @FireBlast2.0 Před 2 lety

    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 Před 2 lety

      Hey! You can try out this method:
      czcams.com/video/iMEGtrjMXPU/video.html
      It's simple and free!

  • @jaidonwalker741
    @jaidonwalker741 Před rokem +1

    neth news man attacked by dog

  • @suicidedeath3955
    @suicidedeath3955 Před 2 lety +2

    Can this work on gdrive instead of filelinke?

  • @wcv7
    @wcv7 Před 3 lety +1

    i cant see a view button?

  • @solzar8795
    @solzar8795 Před 2 lety +1

    can i use wpf?

  • @thakiddj17
    @thakiddj17 Před 2 lety

    I miss you Mr snail man

    • @squidward3845
      @squidward3845 Před 10 měsíci

      Mr snail brother here he’s in college now poopie

  • @hassangamal6858
    @hassangamal6858 Před 3 lety

    I have a question, will this application work on mac?

    • @mr.snailman7326
      @mr.snailman7326  Před 3 lety

      No it’s a c# application

    • @hassangamal6858
      @hassangamal6858 Před 3 lety +1

      @@mr.snailman7326 i wanna make an app for both, what's your advice

    • @mr.snailman7326
      @mr.snailman7326  Před 3 lety

      @@hassangamal6858 learn c++. c++ is compatible with Mac, windows and Linux

    • @maikelgutierrez8558
      @maikelgutierrez8558 Před 2 lety

      @@hassangamal6858 you van create apps for Mac using Visusl Studio. Go to the oficial documentsttion

  • @ghostakatactu
    @ghostakatactu Před 7 měsíci

    in python?

  • @user-qs5hk2zt5j
    @user-qs5hk2zt5j Před 2 lety

    Help me .. Plz It's NOt Work !!

  • @thakiddj17
    @thakiddj17 Před 2 lety

    Plz return Mr snail 🐌

  • @RAMIREZDAROCKSTAR
    @RAMIREZDAROCKSTAR Před rokem

    o7

  • @wcv7
    @wcv7 Před 3 lety

    HEEEEEEEEEELLLLLLLLPPPPPPPPPPP MEEEEEEEEEEEEEEEEEEEEE PPPPPPLLLLLLLLSSSSSSSSSSS

  • @masonstokes1272
    @masonstokes1272 Před 11 měsíci

    🤣🤣🤣🤣🤣🤣🤣

  • @nbagnunu2817
    @nbagnunu2817 Před 2 lety

    I’m am alive stop lying

  • @user-qo3nc6iw2n
    @user-qo3nc6iw2n Před 2 lety

    되는거로 만들어야지 중간에 안되는 장면 뚝 짜르면 우짜냐

    • @mr.snailman7326
      @mr.snailman7326  Před 2 lety

      Yes

    • @user-qo3nc6iw2n
      @user-qo3nc6iw2n Před 2 lety

      @@mr.snailman7326 그래도 오찌 어찌 수정해서 되도록 만들었다 도움 됐다 잼민아 땡큐!

    • @mr.snailman7326
      @mr.snailman7326  Před 2 lety

      @@user-qo3nc6iw2n no problem

    • @user-qs5hk2zt5j
      @user-qs5hk2zt5j Před 2 lety

      @@user-qo3nc6iw2n 혹시 코드좀 공유해주실 수 있으신가요 .. 아무리 해봐도 안되고 있어서

  • @wavyyy5
    @wavyyy5 Před 2 lety

    doesnt work followed every step

    • @mr.snailman7326
      @mr.snailman7326  Před 2 lety

      Yes it does

    • @wavyyy5
      @wavyyy5 Před 2 lety

      @@mr.snailman7326 that was quick so heres the thing i open it up and nothing pops up

    • @wavyyy5
      @wavyyy5 Před 2 lety

      @@mr.snailman7326 i will try it again

  • @unknownlepoggers2753
    @unknownlepoggers2753 Před 2 lety +2

    Stolen and do you even understand what you are saying?

    • @mr.snailman7326
      @mr.snailman7326  Před 2 lety

      I said in the video that I took parts from other videos on CZcams and put them together

    • @unknownlepoggers2753
      @unknownlepoggers2753 Před 2 lety +1

      @@mr.snailman7326 you took whole video, not few parts

    • @mr.snailman7326
      @mr.snailman7326  Před 2 lety +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.

  • @nikolaaa7180
    @nikolaaa7180 Před rokem

    you copied someone elses code. I saw that guy that did the same thing with the same sentence in messagebox