Categories > Coding > C# >

[FIX] Roblox Updated to a Beta Version

ecstacy_lxnny

fka as delta

vip

Posts: 773

Threads: 70

Joined: May, 2021

Reputation: 95

Posted

Well so this now happens frequently that some ppl get a Beta Update of Roblox and in such a case it is pretty obvious that no Exploits would inject.. So now many people could not  go to %localappdate% then to Roblox then Delete folder versions and download latest one so this is a code I made for doing all this stuff. Though i know it is pretty easyand most people can do this but I am still releasing this idk why so here

 

            string[] bruhh = Directory.GetDirectories($"C:/Users/{Environment.UserName.ToString()}/AppData/Local/Roblox/Versions");
            foreach (string dir in bruhh)
            {
                MessageBox.Show(dir.ToString());
                Directory.Delete(dir, true);  //Deletes the Beta Roblox Version, U can also Add a check to see if the version is latest or not Before doing this
            }
            //Now Lets download the latest Roblox Version
            System.Net.ServicePointManager.ServerCertificateValidationCallback = (senderX, certificate, chain, sslPolicyErrors) => { return true; };

            string LatestUpdatev = new WebClient().DownloadString("https://setup.roblox.com/version");
            new WebClient().DownloadFile($"https://setup.roblox.com/{LatestUpdatev}-RobloxApp.zip", $"C:/Users/{Environment.UserName.ToString()}/AppData/Local/Roblox/Versions/Latest.zip");
            //Now its downloaded but as a Zip so lets extract it
            Directory.CreateDirectory($"C:/Users/{Environment.UserName.ToString()}/AppData/Local/Roblox/Versions/{LatestUpdatev}");
            ZipFile.ExtractToDirectory("C:/Users/" + Environment.UserName.ToString() + "/AppData/Local/Roblox/Versions/Latest.zip", $"C:/Users/{Environment.UserName.ToString()}/AppData/Local/Roblox/Versions/{LatestUpdatev}");
            File.Delete($"C:/Users/{Environment.UserName.ToString()}/AppData/Local/Roblox/Versions/Latest.zip");
  • 0

fka as delta

SkieHackerYT

Panda Development Team

vip

Posts: 322

Threads: 83

Joined: Apr, 2019

Reputation: 31

Replied

OwO vouch 

Content length must be 10-5000 chars -

  • 0

https://media.discordapp.net/attachments/996322272547704845/1016492646820233246/standard.gif

https://cdn.discordapp.com/attachments/1074291934501290087/1085354909609754775/PelicanDevelopment.gif

ecstacy_lxnny

fka as delta

vip

Posts: 773

Threads: 70

Joined: May, 2021

Reputation: 95

Replied

  • 0

fka as delta

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

Guys

 

Just opt out of the beta following what roblox has documented on their website

 

We don't need all this

  • 0

ecstacy_lxnny

fka as delta

vip

Posts: 773

Threads: 70

Joined: May, 2021

Reputation: 95

Replied

@63568 but explaining this to 20 ppl daily can be a pain 

  • 0

fka as delta

Posts: 82

Threads: 11

Joined: Nov, 2018

Reputation: 8

Replied

string robloxPath =
    Path.Combine(
        Path.GetDirectoryName(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)),
        "Local\\Roblox\\Versions");
foreach (string dir in Directory.GetDirectories(robloxPath))
{
    Directory.Delete(dir, true);
}

//Now Lets download the latest Roblox Version
System.Net.ServicePointManager.ServerCertificateValidationCallback = (senderX, certificate, chain, sslPolicyErrors) => { return true; };

//Now its downloaded but as a Zip so lets extract it
using (System.Net.WebClient client = new System.Net.WebClient())
{
    string latest_update = client.DownloadString("https://setup.roblox.com/version");
    client.DownloadFile($"https://setup.roblox.com/{latest_update}-RobloxApp.zip", Path.Combine(robloxPath, "\\Latest.zip"));
    Directory.CreateDirectory(Path.Combine(robloxPath, latest_update));
    System.IO.Compression.ZipFile.ExtractToDirectory(Path.Combine(robloxPath, "\\Latest.zip"), Path.Combine(robloxPath, latest_update));
    File.Delete(Path.Combine(robloxPath, "\\Latest.zip"));
}

forked

  • 0

GitHub: https://github.com/sound-infinity

Discord: SoundInfinity#2135

Posts: 30

Threads: 6

Joined: Sep, 2020

Reputation: 8

Replied

poopoo code but useful 

  • 0

Posts: 1165

Threads: 69

Joined: Oct, 2019

Reputation: 89

Replied

@JustPareX Yes For Getting To Local Or Roaming App Data The Poster Should Have Done This PareX

Environment.GetEnvironmentVariable("LocalAppData");
Environment.GetEnvironmentVariable("AppData");

Rather Than $"C:\Users\{Environment.UserName}";

Right? Wouldn't This Be Better

  • 0

ecstacy_lxnny

fka as delta

vip

Posts: 773

Threads: 70

Joined: May, 2021

Reputation: 95

Replied

@JustPareX Thanks I wrote the code in 10 minutes for a guy who wasnt able to do this thing so yes

  • 0

fka as delta

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )