33 lines
859 B
C#
33 lines
859 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
using CasinoSetup;
|
|
|
|
namespace PokerGameSetup;
|
|
|
|
internal static class Program
|
|
{
|
|
[STAThread]
|
|
private static void Main(string[] args)
|
|
{
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(defaultValue: false);
|
|
try
|
|
{
|
|
int initialStep = 0;
|
|
for (int i = 0; i < args.Length; i++)
|
|
{
|
|
if (args[i] == "--step" && i + 1 < args.Length && int.TryParse(args[i + 1], out int s))
|
|
{
|
|
initialStep = s;
|
|
}
|
|
}
|
|
|
|
using SetupPackage package = new SetupPackage(Application.ExecutablePath, PackageStamp.IndexSha256);
|
|
Application.Run(new InstallerForm(package, initialStep));
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show(ex.Message, "Assembler Casino — ошибка пакета", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
|
}
|
|
}
|
|
}
|