diff --git a/BrikInstaller.csproj b/BrikInstaller.csproj index 32d86b1..297f43d 100644 --- a/BrikInstaller.csproj +++ b/BrikInstaller.csproj @@ -1,6 +1,6 @@  - Exe + WinExe net8.0 AnyCPU Photino_Boilerplate diff --git a/src/main/Program.cs b/src/main/Program.cs index 4d577a1..92a1bcb 100644 --- a/src/main/Program.cs +++ b/src/main/Program.cs @@ -160,10 +160,10 @@ class Program{ var productConfig = await response.Content.ReadFromJsonAsync(Constants._jsonOptions); InstallationFinish installationFinish = jsonPayload.Deserialize(Constants._jsonOptions)!; if (installationFinish.CreateShortcut) { - ShortcutService.CreateShortcut(Constants.ProductMetadata.Name, Path.Combine(Constants.ProductMetadata.InstallPath, productConfig.Executable!)); + ShortcutService.CreateShortcut(Constants.ProductMetadata.Name, Path.Combine(Constants.ProductMetadata.InstallPath, productConfig!.Executable!)); } if (installationFinish.LaunchAfterExit) { - InstallationService.LaunchApplication(Path.Combine(Constants.ProductMetadata.InstallPath, productConfig.Executable!)); + InstallationService.LaunchApplication(Path.Combine(Constants.ProductMetadata.InstallPath, productConfig!.Executable!)); } responsePayload = new { success = true }; } catch (Exception) {