Posted
Alright, i just got done coding my bootstrapper but it's not working how it should be.
The Problem is that the code is not checking the version and just downloades the files.
Code:
```cs
try
{
WebClient wb = new WebClient();
string versiontxtfile = wb.DownloadString("https://gitlab.com/NoobLancer/7x65assets/-/raw/master/latestversion.txt");
string versionnow = "penis";
progressindicator.Content = "Checking version";
SetPercent(progress, 10);
await Task.Delay(1000);
if (versionnow.Equals(versiontxtfile) == true)
{
this.Hide();
}
else if(versionnow.Equals(versiontxtfile) == false)
{
progressindicator.Content = "Update started";
SetPercent(progress, 10);
await Task.Delay(2500);
progressindicator.Content = "Downloading the DLL";
SetPercent(progress, 35);
await Task.Delay(1500);
progressindicator.Content = "Downloading the Exploit";
SetPercent(progress, 55);
await Task.Delay(1500);
progressindicator.Content = "Downloading Assets";
SetPercent(progress, 70);
await Task.Delay(2500);
using (var client = new WebClient())
{
client.DownloadFile("https://gitlab.com/NoobLancer/7x65assets/-/raw/master/latestversion.txt", "coolfile.txt");
progressindicator.Content = "Download complete!";
SetPercent(progress, 100);
await Task.Delay(2000);
this.Hide();
}
}
}
``` any help?
just trying to make an Roblox exploit
Replied
what the problem cant download the file?
edit : and where the catch?
Cancel
Post
Replied
You should break or exit the bootstrapper instead of just using this.Hide(). It only hides the form, it doesn't exit the program. Use something like this.Close(). So when it checks the version is correct, it immediately closes the form. Also, adding "== true" isn't needed. You can use this:
if (versionnow.Equals(versiontxtfile)) // Returns a true anyways
{
// Code here
}
else // If it doesn't return a true means it's false
{
// Code here
}
Cancel
Post
Replied
Its because when you mention versiontxtfile it uses the code in it aka downloadString
Remove DownloadString from versiontxt file.
and add it to the code when you need it
and like the person above me said
use this.Close not this.Hide
Cancel
Post
JustMarie#0709
Â
Replied
@TaxiDriver08 but i cant update the latest version then when i dont download the file
Cancel
Post
just trying to make an Roblox exploit
Replied
@TaxiDriver08 Um sir, it doesn't. I've used it before. If you attempt to write it out the string with Console.WriteLine you will get the contents of the downloaded text file.
Cancel
Post
Replied
@63568
code is confusing when you are on mobile -_-
Cancel
Post
Added
@63568
also im a female
Cancel
Post
JustMarie#0709
Â
Replied
@63568
good :)
Cancel
Post
JustMarie#0709
Â
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post