Skip to content

Commit

Permalink
- Show version in Installer
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaBear84 committed Dec 3, 2021
1 parent c2c1626 commit fb7511e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/HAClimateDeskbandInstaller/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class Program
private const string DllName = "HAClimateDeskband.dll";
static Guid UninstallGuid = new Guid(@"2d0e746f-e2ae-4c2c-9040-5c5a715e7a8a");

public static Version Version { get; private set; }

class InstallInfo
{
public List<string> FilesToCopy { get; set; }
Expand All @@ -23,7 +25,11 @@ class InstallInfo

static void Main(string[] args)
{
Console.Title = "HA Climate Deskband Installer";
Version = typeof(Program).Assembly.GetName().Version;

string message = $"HA Climate Deskband {Version} Installer";
Console.Title = message;
Console.WriteLine(message);

InstallInfo info = new InstallInfo
{
Expand Down Expand Up @@ -60,7 +66,7 @@ public static void WriteEmbeddedResourceToFile(string resourceName, string fileN

static void Install(InstallInfo info)
{
Console.WriteLine("Installing HA Climate Deskband on your computer, please wait.");
Console.WriteLine($"Installing HA Climate Deskband {Version} on your computer, please wait.");
RestartExplorer restartExplorer = new RestartExplorer();

try
Expand Down

0 comments on commit fb7511e

Please sign in to comment.