- Joined
- Apr 17, 2010
- Messages
- 351
- Reaction score
- 2
how make a launcher that launches some program and then the client ?
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!Process.Start
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Threading;
namespace Guy
{
class Program
{
static void Main(string[] args) {
//if the program is successful launched then launch the client
if (LaunchSomeRandomProgram()) {
Console.WriteLine("Launched Internet Successful");
Console.WriteLine("Client will be launched in 5 seconds");
Thread.Sleep(5000);
//The path where the Client is
Process.Start(@"C:\Users\****\Desktop\gms v117\MapleStory\Launcher");
}
Console.ReadLine();
}
//Launch some Random program , if it is successful launched return true
public static bool LaunchSomeRandomProgram() {
try {
Process.Start("IExplore.exe");
return true;
} catch {
return false;
}
}
}
}
Since you posted everything in C# i will post a reply in C#.
What this does:
It Launches Internet, if it is launched succesful then launch the client
Code:Process.Start
Code:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using System.Threading; namespace Guy { class Program { static void Main(string[] args) { //if the program is successful launched then launch the client if (LaunchSomeRandomProgram()) { Console.WriteLine("Launched Internet Successful"); Console.WriteLine("Client will be launched in 5 seconds"); Thread.Sleep(5000); //The path where the Client is Process.Start(@"C:\Users\****\Desktop\gms v117\MapleStory\Launcher"); } Console.ReadLine(); } //Launch some Random program , if it is successful launched return true public static bool LaunchSomeRandomProgram() { try { Process.Start("IExplore.exe"); return true; } catch { return false; } } } }