Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- If System.IO.File.Exists("log.txt") Then
- CheckBox1.Checked = True
- Dim sr As New System.IO.StreamReader("log.txt")
- TextBox1.Text = sr.ReadLine
- TextBox2.Text = sr.ReadLine
- sr.Close()
- End If
- End Sub
- Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
- End Sub
- Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- If CheckBox2.Checked = False Then
- If CheckBox1.Checked = True Then
- Dim sw As New System.IO.StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\log.txt")
- sw.WriteLine(TextBox1.Text)
- sw.WriteLine(TextBox2.Text)
- sw.Close()
- If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\launcherversion.txt") = False Then
- MsgBox("Installation des fichiers nécessaires... Veillez à ce que minecraft soit fermé, appuyez sur ok et attendez la confirmation", MsgBoxStyle.Information)
- If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar") = True Then
- Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar")
- End If
- My.Computer.Network.DownloadFile("http://minefriends.site90.com/Launcher/Launcherversion.jar", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\launcherversion.txt")
- My.Computer.Network.DownloadFile("https://s3.amazonaws.com/MinecraftDownload/launcher/Minecraft.exe", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.exe")
- My.Computer.Network.DownloadFile("http://minefriends.site90.com/Launcher/minecraft.jar", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar")
- My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/59058772/Minecraft1.exe", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft1.exe")
- MsgBox("Installation terminée", MsgBoxStyle.Information)
- End If
- Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.exe", TextBox1.Text & " " & TextBox2.Text & " 46.18.93.210")
- ElseIf CheckBox1.Checked = False Then
- If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\launcherversion.txt") = False Then
- MsgBox("Installation des fichiers nécessaires... Veillez à ce que minecraft soit fermé, appuyez sur ok et attendez la confirmation", MsgBoxStyle.Information)
- If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar") = True Then
- Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar")
- End If
- My.Computer.Network.DownloadFile("http://minefriends.site90.com/Launcher/Launcherversion.jar", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\launcherversion.txt")
- My.Computer.Network.DownloadFile("https://s3.amazonaws.com/MinecraftDownload/launcher/Minecraft.exe", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.exe")
- My.Computer.Network.DownloadFile("http://minefriends.site90.com/Launcher/minecraft.jar", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar")
- My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/59058772/Minecraft1.exe", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft1.exe")
- MsgBox("Installation terminée", MsgBoxStyle.Information)
- End If
- Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.exe", TextBox1.Text & " " & TextBox2.Text & " 46.18.93.210")
- Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\log.txt")
- End If
- ElseIf CheckBox2.Checked = True Then
- If CheckBox1.Checked = True Then
- Dim sw As New System.IO.StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\log.txt")
- sw.WriteLine(TextBox1.Text)
- sw.WriteLine(TextBox2.Text)
- sw.Close()
- If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\launcherversion.txt") = False Then
- MsgBox("Installation des fichiers nécessaires... Veillez à ce que minecraft soit fermé, appuyez sur ok et attendez la confirmation", MsgBoxStyle.Information)
- If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar") = True Then
- Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar")
- End If
- My.Computer.Network.DownloadFile("http://minefriends.site90.com/Launcher/Launcherversion.jar", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\launcherversion.txt")
- My.Computer.Network.DownloadFile("https://s3.amazonaws.com/MinecraftDownload/launcher/Minecraft.exe", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.exe")
- My.Computer.Network.DownloadFile("http://minefriends.site90.com/Launcher/minecraft.jar", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar")
- My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/59058772/Minecraft1.exe", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft1.exe")
- MsgBox("Installation terminée", MsgBoxStyle.Information)
- End If
- Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft1.exe", TextBox1.Text & " " & " 46.18.93.210")
- ElseIf CheckBox1.Checked = False Then
- If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\launcherversion.txt") = False Then
- MsgBox("Installation des fichiers nécessaires... Veillez à ce que minecraft soit fermé, appuyez sur ok et attendez la confirmation", MsgBoxStyle.Information)
- If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar") = True Then
- Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar")
- End If
- My.Computer.Network.DownloadFile("http://minefriends.site90.com/Launcher/Launcherversion.jar", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\launcherversion.txt")
- My.Computer.Network.DownloadFile("https://s3.amazonaws.com/MinecraftDownload/launcher/Minecraft.exe", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.exe")
- My.Computer.Network.DownloadFile("http://minefriends.site90.com/Launcher/minecraft.jar", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar")
- My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/59058772/Minecraft1.exe", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft1.exe")
- MsgBox("Installation terminée", MsgBoxStyle.Information)
- End If
- Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft1.exe", TextBox1.Text & " " & " 46.18.93.210")
- Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\log.txt")
- End If
- End If
- End
- End Sub
- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- Process.Start("http://46.18.93.210:8123")
- End Sub
- Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
- MsgBox("Avez-vous fermé minecraft ? Veuillez attendre attendre le message de confirmation de la mise à jour", MsgBoxStyle.Exclamation)
- If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\launcherversion.txt") = True Then
- Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\launcherversion.txt")
- Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar")
- Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.exe")
- Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft1.exe")
- My.Computer.Network.DownloadFile("http://minefriends.site90.com/Launcher/Launcherversion.jar", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\launcherversion.txt")
- My.Computer.Network.DownloadFile("https://s3.amazonaws.com/MinecraftDownload/launcher/Minecraft.exe", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.exe")
- My.Computer.Network.DownloadFile("http://minefriends.site90.com/Launcher/minecraft.jar", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar")
- My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/59058772/Minecraft1.exe", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft1.exe")
- My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/59058772/Launcher%20MineFriends.exe", "launcher1.0.1.exe")
- Dim sw As New System.IO.StreamWriter("MAJ.txt")
- sw.WriteLine("0")
- sw.Close()
- ElseIf System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\launcherversion.txt") = False Then
- If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar") = True Then
- Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar")
- End If
- My.Computer.Network.DownloadFile("http://minefriends.site90.com/Launcher/Launcherversion.jar", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\launcherversion.txt")
- My.Computer.Network.DownloadFile("https://s3.amazonaws.com/MinecraftDownload/launcher/Minecraft.exe", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.exe")
- My.Computer.Network.DownloadFile("http://minefriends.site90.com/Launcher/minecraft.jar", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar")
- My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/59058772/Minecraft1.exe", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft1.exe")
- My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/59058772/Launcher%20MineFriends.exe", "launcher1.0.1.exe")
- Dim sw As New System.IO.StreamWriter("MAJ.txt")
- sw.WriteLine("0")
- sw.Close()
- End If
- MsgBox("Mise à jour terminée", MsgBoxStyle.Exclamation)
- End Sub
- Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged
- End Sub
- Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
- MsgBox("Désolé mais il n'y a pas encore de forum :(", MsgBoxStyle.Exclamation)
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement