Categories > Coding > C# >
[FIX] Roblox Updated to a Beta Version
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");
fka as delta
Replied
OwO vouch
- Content length must be 10-5000 chars -
Cancel
Post
https://media.discordapp.net/attachments/996322272547704845/1016492646820233246/standard.gif
https://cdn.discordapp.com/attachments/1074291934501290087/1085354909609754775/PelicanDevelopment.gif
fka as delta
Replied
Guys
Just opt out of the beta following what roblox has documented on their website
We don't need all this
Cancel
Post
Replied
@63568 but explaining this to 20 ppl daily can be a pain
Cancel
Post
fka as delta
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
Cancel
Post
GitHub: https://github.com/sound-infinity
Discord: SoundInfinity#2135
Replied
poopoo code but useful
Cancel
Post
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
Cancel
Post
Replied
@JustPareX Thanks I wrote the code in 10 minutes for a guy who wasnt able to do this thing so yes
Cancel
Post
fka as delta
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post