public static void Main() { CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture; CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.InvariantCulture; Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture; if (!IsAdminChecker.IsAdministrator()) { RelaunchAsElevatedInstance(); } #if (!DEBUG) bool mutexCreated; using (new Mutex(true, "particularPlatformInstaller", out mutexCreated)) { if (!mutexCreated) { MessageBox.Show("An instance of the Platform Installer is already running.", ""); return; } } #endif var splash = new SplashScreen(typeof(App).Assembly, @"Images\Splash.png"); splash.Show(true); Logging.Initialise(); ExceptionHandler.Attach(); var app = new App(); app.Run(); }
public static void Run() { if (!IsAdminChecker.IsAdministrator()) { RelaunchAsElevatedInstance(); } RunSingleInstance(); }