fix: safer install process in program init

This commit is contained in:
rjindael 2023-07-31 02:54:28 -07:00
parent 1910fb13b8
commit e35f4913e8
No known key found for this signature in database
GPG Key ID: D069369C906CCF31
1 changed files with 11 additions and 9 deletions

View File

@ -23,10 +23,11 @@ namespace Kiseki.Launcher.Windows
if (!File.Exists(Directories.Application)) if (!File.Exists(Directories.Application))
{ {
// The launcher is not installed, so let's install it. // The launcher is not installed, so let's run the install process - this will also exit the application
Launcher.Install(); Launcher.Install();
} }
else
{
if (args.Length == 0) if (args.Length == 0)
{ {
// Nothing for us to do :P // Nothing for us to do :P
@ -39,3 +40,4 @@ namespace Kiseki.Launcher.Windows
} }
} }
} }
}