namespace XFEToolBox.Client.Installer.Profiles
{
public class SystemProfile
{
public const string ApplicationName = "XFEToolBox";
public const string ApplicationExecutableName = ApplicationName + ".exe";
/// <summary>
/// 当前窗口DPI缩放
/// </summary>
public static double CurrentWindowDPIScale { get; set; } = 1.0;
/// <summary>
/// 主窗体宽度
/// </summary>
public static double MainWindowWidth { get; set; } = 720;
/// <summary>
/// 主窗体高度
/// </summary>
public static double MainWindowHeight { get; set; } = 450;
/// <summary>
/// 启动参数
/// </summary>
public static string[] Args { get; set; } = [];
/// <summary>
/// 启动模式
/// </summary>
public static string StartMode { get; set; } = string.Empty;
/// <summary>
/// 下载Url
/// </summary>
public static string DownloadUrl { get; set; } = string.Empty;
/// <summary>
/// 启动参数校验失败时展示给用户的错误。
/// </summary>
public static string StartupError { get; set; } = string.Empty;
/// <summary>
/// 安装目录
/// </summary>
public static string InstallPath { get; set; } = System.IO.Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86),
ApplicationName);
/// <summary>
/// 第一次安装
/// </summary>
public static bool FirstInstall { get; set; } = false;
}
}
namespace XFEToolBox.Client.Installer.Profiles
{
public class SystemProfile
{
public const string ApplicationName = "XFEToolBox";
public const string ApplicationExecutableName = ApplicationName + ".exe";
/// <summary>
/// 当前窗口DPI缩放
/// </summary>
public static double CurrentWindowDPIScale { get; set; } = 1.0;
/// <summary>
/// 主窗体宽度
/// </summary>
public static double MainWindowWidth { get; set; } = 720;
/// <summary>
/// 主窗体高度
/// </summary>
public static double MainWindowHeight { get; set; } = 450;
/// <summary>
/// 启动参数
/// </summary>
public static string[] Args { get; set; } = [];
/// <summary>
/// 启动模式
/// </summary>
public static string StartMode { get; set; } = string.Empty;
/// <summary>
/// 下载Url
/// </summary>
public static string DownloadUrl { get; set; } = string.Empty;
/// <summary>
/// 启动参数校验失败时展示给用户的错误。
/// </summary>
public static string StartupError { get; set; } = string.Empty;
/// <summary>
/// 安装目录
/// </summary>
public static string InstallPath { get; set; } = System.IO.Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86),
ApplicationName);
/// <summary>
/// 第一次安装
/// </summary>
public static bool FirstInstall { get; set; } = false;
}
}