mirror of
https://github.com/xupefei/Locale-Emulator
synced 2026-11-26 08:57:53 +08:00
For easier installition, support automatic relaunching as administrator when Install/Uninstall for All Users.
35 lines
877 B
C#
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);
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
} |