This repository has been archived on 2026-01-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Installer-Launcher/Launcher_App/ProgramLauncher/Program.cs
jmaniuvc f0b7dfd413 main
2025-05-15 11:44:27 +09:00

36 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ProgramLauncher
{
internal static class Program
{
public static string projectName = "StudioInstaller";
static string mutexName = "UVC_";
[STAThread]
static void Main()
{
mutexName = mutexName + projectName;
using (var mutex = new Mutex(true, mutexName, out bool isNewInstance))
{
if (!isNewInstance)
{
// 이미 실행 중인 경우
MessageBox.Show("이미 프로그램이 실행 중입니다.", "중복 실행 방지", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
}