Files
유키 58f9c87300 Relaunch function added.
For easier installition, support automatic relaunching as administrator when Install/Uninstall for All Users.
2018-02-16 22:37:36 +09:00

35 lines
877 B
C#

using System;
using System.Windows.Forms;
namespace LEInstaller
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Form1 form1=null;
if (args.Length == 1)
{
if (args[0] == "--InstallAll")
form1 = new Form1(1);
else if (args[0] == "--UninstallAll")
form1 = new Form1(2);
else
form1 = new Form1();
}
else
form1 = new Form1();
Application.Run(form1);
}
}
}