Hack Forums
[.NET] Auto Updater - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Auto Updater (/showthread.php?tid=5927280)



Auto Updater - KyFu - Jan 7, 2019

What would be the best way to include an updater built into the program?
I started developing a second form, but it just hangs when it tries to call to server and detect a version change, so is there another way I can go about this? Thanks in advance 👍


RE: Auto Updater - itcorp - Jan 7, 2019

(Jan 7, 2019 09:55 PM)KyFu Wrote:  What would be the best way to include an updater built into the program?
I started developing a second form, but it just hangs when it tries to call to server and detect a version change, so is there another way I can go about this? Thanks in advance 👍

https://hackforums.net/showthread.php?tid=5773508


RE: Auto Updater - KyFu - Jan 7, 2019

(Jan 7, 2019 10:05 PM)itcorp Wrote:  https://hackforums.net/showthread.php?tid=5773508

+3 for you sir, I searched but I missed that thread apparently. Thank you!


RE: Auto Updater - itcorp - Jan 7, 2019

(Jan 7, 2019 10:09 PM)KyFu Wrote:  +3 for you sir, I searched but I missed that thread apparently. Thank you!

np,at any time and thank you.


RE: Auto Updater - InterGalactic - Jan 9, 2019

Im suggesting THIS for a fast update check - download.


RE: Auto Updater - -PUBG- - Jan 10, 2019

(Jan 9, 2019 02:44 AM)InterGalactic Wrote:  Im suggesting THIS for a fast update check - download.

Code
public static string Version = "VersionNumber";

Code
Why do it so complex when its this simple

        public static void UpdateOrNuh()
        {
                if (Version != new WebClient().DownloadString("Website.com/VersionNumber.txt"))
                {
                    Console.WriteLine("An Update For The Tool Has Been Found, Will Start Download Now!");
                    Process.Start("LinkToDownloadTheFileForUpdate");
                    //If you wanna kill the process to force update
                    Process.GetCurrentProcess().Kill();
            }
        }



RE: Auto Updater - InterGalactic - Jan 10, 2019

(Jan 10, 2019 01:08 AM)RapidHost™ Wrote:  
Code
public static string Version = "VersionNumber";

Code
Why do it so complex when its this simple

       public static void UpdateOrNuh()
       {
               if (Version != new WebClient().DownloadString("Website.com/VersionNumber.txt"))
               {
                   Console.WriteLine("An Update For The Tool Has Been Found, Will Start Download Now!");
                   Process.Start("LinkToDownloadTheFileForUpdate");
                   //If you wanna kill the process to force update
                   Process.GetCurrentProcess().Kill();
           }
       }

WE ARE DOING THE SAME THING! 😉