Passed to winexe

This commit is contained in:
Gilles Lazures 2026-02-11 03:07:10 +01:00
parent af469cfeb3
commit 3253b728f7
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<Platforms>AnyCPU</Platforms>
<RootNamespace>Photino_Boilerplate</RootNamespace>

View File

@ -160,10 +160,10 @@ class Program{
var productConfig = await response.Content.ReadFromJsonAsync<ProductConfig>(Constants._jsonOptions);
InstallationFinish installationFinish = jsonPayload.Deserialize<InstallationFinish>(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) {