C
C#2y ago
Nikolaaa

why does my windows forms app ignore pastebin text?

I made an auto update app and even if the version is the same it tries to update it. Why?
19 Replies
Nikolaaa
Nikolaaa2y ago
code:
private void UniverseClientLogin_Load(object sender, EventArgs e)
{
WebClient webClient = new WebClient();

if (!webClient.DownloadString("https://pastebin.com/uGwUAHQV").Contains("0.0.2"))
{
MessageBox.Show("There is an update that is required to download for the launcher to work. Note: Delaying this update by turning off the computer/process may corrupt the launcher.", "New Update!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
Process.Start("UClientUpdater.exe");
this.Close();

}
else
{

if (!webClient.DownloadString("https://pastebin.com/uGwUAHQV").Contains("manualupd"))
{
MessageBox.Show("There is an update that requires you to manually download the launcher again, go to the site and download it.", "Manual update required!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
else
{
MessageBox.Show("You have the latest version of Universe Client.", "No new updates found!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
}
}
private void UniverseClientLogin_Load(object sender, EventArgs e)
{
WebClient webClient = new WebClient();

if (!webClient.DownloadString("https://pastebin.com/uGwUAHQV").Contains("0.0.2"))
{
MessageBox.Show("There is an update that is required to download for the launcher to work. Note: Delaying this update by turning off the computer/process may corrupt the launcher.", "New Update!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
Process.Start("UClientUpdater.exe");
this.Close();

}
else
{

if (!webClient.DownloadString("https://pastebin.com/uGwUAHQV").Contains("manualupd"))
{
MessageBox.Show("There is an update that requires you to manually download the launcher again, go to the site and download it.", "Manual update required!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
else
{
MessageBox.Show("You have the latest version of Universe Client.", "No new updates found!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
}
}
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Nikolaaa
Nikolaaa2y ago
thats app name
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Nikolaaa
Nikolaaa2y ago
i am trying to create a minecraft client but I will also need an auto update system sooooo im trying to make it
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Nikolaaa
Nikolaaa2y ago
what? launch minecraft with specific mods that I add
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Nikolaaa
Nikolaaa2y ago
i didnt add any yet
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Nikolaaa
Nikolaaa2y ago
ok thanks i will try
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Nikolaaa
Nikolaaa2y ago
🤦‍♂️ no I just want to make a custom client for my server that I will host but it will have custom mods
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Nikolaaa
Nikolaaa2y ago
yea I see now DownloadString is red dont use git sorry but I can send you the whole code although there is a lot
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Nikolaaa
Nikolaaa2y ago
I cant upload it to github now its just gonna get more complicated, can you just tell me the replacement for DownloadString so I need to upload it to github or you will help me?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Nikolaaa
Nikolaaa2y ago
nothing changes pastebin ignores it