Update progetto (ora compila) wix + update readme

This commit is contained in:
Samuele Locatelli
2024-04-05 19:28:17 +02:00
parent 551703d68b
commit 5d965c944c
17 changed files with 194 additions and 25 deletions
+9
View File
@@ -0,0 +1,9 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<ComponentGroup Id="AppSettings" Directory="InstallPath">
<Component>
<File Source="..\Maat.Runner\bin\$(Configuration)\net6.0\publish\win-x64\appsettings.json" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>
-9
View File
@@ -1,9 +0,0 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<ComponentGroup Id="ExampleComponents" Directory="INSTALLFOLDER">
<Component>
<File Source="ExampleComponents.wxs" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>
+7 -5
View File
@@ -1,7 +1,9 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<StandardDirectory Id="ProgramFiles6432Folder">
<Directory Id="INSTALLFOLDER" Name="!(bind.Property.Manufacturer) !(bind.Property.ProductName)" />
</StandardDirectory>
</Fragment>
<Fragment>
<StandardDirectory Id="ProgramFiles6432Folder">
<Directory Id="InstallPath" Name="!(bind.Property.Manufacturer)\!(bind.Property.ProductName)" />
<Directory Id="ConfPath" Name="!(bind.Property.Manufacturer)\!(bind.Property.ProductName)\conf" />
<Directory Id="LogPath" Name="!(bind.Property.Manufacturer)\!(bind.Property.ProductName)\log" />
</StandardDirectory>
</Fragment>
</Wix>
+9
View File
@@ -0,0 +1,9 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<ComponentGroup Id="JobConfig" Directory="ConfPath">
<Component>
<File Source="..\Maat.Runner\bin\$(Configuration)\net6.0\publish\win-x64\conf\JobConfig.json" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>
+4
View File
@@ -1,4 +1,8 @@
<Project Sdk="WixToolset.Sdk/4.0.5">
<ItemGroup>
<PackageReference Include="WixToolset.PowerShell.wixext" Version="4.0.5" />
<PackageReference Include="WixToolset.Util.wixext" Version="4.0.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Maat.Runner\Maat.Runner.csproj" />
</ItemGroup>
+9
View File
@@ -0,0 +1,9 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<ComponentGroup Id="MaatRunner" Directory="InstallPath">
<Component>
<File Source="..\Maat.Runner\bin\$(Configuration)\net6.0\publish\win-x64\Maat.Runner.exe" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>
+9
View File
@@ -0,0 +1,9 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<ComponentGroup Id="NLog" Directory="InstallPath">
<Component>
<File Source="..\Maat.Runner\bin\$(Configuration)\net6.0\publish\win-x64\NLog.config" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>
+9
View File
@@ -0,0 +1,9 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<ComponentGroup Id="NSSM" Directory="InstallPath">
<Component>
<File Source="..\Maat.Runner\bin\$(Configuration)\net6.0\publish\win-x64\nssm.exe" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>
+15 -7
View File
@@ -1,9 +1,17 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Package Name="Maat.Installer" Manufacturer="TODO Manufacturer" Version="1.0.0.0" UpgradeCode="35ff92c1-54b7-4b9a-8a96-97c8f18fa126">
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" />
<Feature Id="Main">
<ComponentGroupRef Id="ExampleComponents" />
</Feature>
</Package>
<Package Name="Maat.Runner" Manufacturer="EgalWare" Version="1.0.0.0" UpgradeCode="35ff92c1-54b7-4b9a-8a96-97c8f18fa126">
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" />
<MediaTemplate EmbedCab="yes" />
<Feature Id="Main">
<ComponentGroupRef Id="AppSettings" />
<ComponentGroupRef Id="JobConfig" />
<ComponentGroupRef Id="MaatRunner" />
<ComponentGroupRef Id="NLog" />
<ComponentGroupRef Id="NSSM" />
<ComponentGroupRef Id="SqlClient" />
<ComponentGroupRef Id="stderr" />
<ComponentGroupRef Id="stdin" />
<ComponentGroupRef Id="stdout" />
</Feature>
</Package>
</Wix>
+9
View File
@@ -0,0 +1,9 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<ComponentGroup Id="SqlClient" Directory="InstallPath">
<Component>
<File Source="..\Maat.Runner\bin\$(Configuration)\net6.0\publish\win-x64\Microsoft.Data.SqlClient.SNI.dll" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>
+9
View File
@@ -0,0 +1,9 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<ComponentGroup Id="stderr" Directory="LogPath">
<Component>
<File Source="..\Maat.Runner\bin\$(Configuration)\net6.0\publish\win-x64\logs\stderr.log" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>
+9
View File
@@ -0,0 +1,9 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<ComponentGroup Id="stdin" Directory="LogPath">
<Component>
<File Source="..\Maat.Runner\bin\$(Configuration)\net6.0\publish\win-x64\logs\stdin.log" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>
+9
View File
@@ -0,0 +1,9 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<ComponentGroup Id="stdout" Directory="LogPath">
<Component>
<File Source="..\Maat.Runner\bin\$(Configuration)\net6.0\publish\win-x64\logs\stdout.log" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>
+62 -2
View File
@@ -5,28 +5,88 @@ VisualStudioVersion = 17.9.34723.18
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Maat.Runner", "Maat.Runner\Maat.Runner.csproj", "{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Maat.Data", "Maat.Data\Maat.Data.csproj", "{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Maat.Data", "Maat.Data\Maat.Data.csproj", "{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Maat.Core", "Maat.Core\Maat.Core.csproj", "{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Maat.Core", "Maat.Core\Maat.Core.csproj", "{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}"
EndProject
Project("{B7DD6F7E-DEF8-4E67-B5B7-07EF123DB6F0}") = "Maat.Installer", "Maat.Installer\Maat.Installer.wixproj", "{9C85D24D-899D-434F-B059-CE86CBFBCA96}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM64 = Debug|ARM64
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM64 = Release|ARM64
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Debug|ARM64.Build.0 = Debug|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Debug|x64.ActiveCfg = Debug|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Debug|x64.Build.0 = Debug|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Debug|x86.ActiveCfg = Debug|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Debug|x86.Build.0 = Debug|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Release|Any CPU.Build.0 = Release|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Release|ARM64.ActiveCfg = Release|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Release|ARM64.Build.0 = Release|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Release|x64.ActiveCfg = Release|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Release|x64.Build.0 = Release|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Release|x86.ActiveCfg = Release|Any CPU
{B4E5C77C-1AA2-48F1-A297-03C8BEE1267B}.Release|x86.Build.0 = Release|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Debug|ARM64.Build.0 = Debug|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Debug|x64.ActiveCfg = Debug|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Debug|x64.Build.0 = Debug|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Debug|x86.ActiveCfg = Debug|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Debug|x86.Build.0 = Debug|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Release|Any CPU.Build.0 = Release|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Release|ARM64.ActiveCfg = Release|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Release|ARM64.Build.0 = Release|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Release|x64.ActiveCfg = Release|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Release|x64.Build.0 = Release|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Release|x86.ActiveCfg = Release|Any CPU
{AE8744EC-7761-4E3E-91CB-CAD26C5C1C60}.Release|x86.Build.0 = Release|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Debug|ARM64.Build.0 = Debug|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Debug|x64.ActiveCfg = Debug|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Debug|x64.Build.0 = Debug|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Debug|x86.ActiveCfg = Debug|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Debug|x86.Build.0 = Debug|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Release|Any CPU.Build.0 = Release|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Release|ARM64.ActiveCfg = Release|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Release|ARM64.Build.0 = Release|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Release|x64.ActiveCfg = Release|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Release|x64.Build.0 = Release|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Release|x86.ActiveCfg = Release|Any CPU
{85E9149C-2239-4114-8AEA-D08B1FD1FA7F}.Release|x86.Build.0 = Release|Any CPU
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Debug|Any CPU.ActiveCfg = Debug|x64
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Debug|Any CPU.Build.0 = Debug|x64
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Debug|ARM64.ActiveCfg = Debug|ARM64
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Debug|ARM64.Build.0 = Debug|ARM64
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Debug|x64.ActiveCfg = Debug|x64
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Debug|x64.Build.0 = Debug|x64
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Debug|x86.ActiveCfg = Debug|x86
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Debug|x86.Build.0 = Debug|x86
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Release|Any CPU.ActiveCfg = Release|x64
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Release|Any CPU.Build.0 = Release|x64
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Release|ARM64.ActiveCfg = Release|ARM64
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Release|ARM64.Build.0 = Release|ARM64
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Release|x64.ActiveCfg = Release|x64
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Release|x64.Build.0 = Release|x64
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Release|x86.ActiveCfg = Release|x86
{9C85D24D-899D-434F-B059-CE86CBFBCA96}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
+1 -1
View File
@@ -5,7 +5,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>1.2.2404.509</Version>
<Version>1.0.2404.519</Version>
</PropertyGroup>
<ItemGroup>
+24 -1
View File
@@ -50,7 +50,30 @@ Editor ad uso Egalware per inserire
## Installazione
Istruzioni installazione
### Wix installer
E' stato inserito il progetto WIX x produrre un installer valido come msi windows da poter avviare tramite salt o a mano che possa occuparsi di installare tutot il necessario
Vedere qui per maggiori informazioni
- https://wixtoolset.org/
- https://wixtoolset.org/docs/intro/
- https://www.firegiant.com/docs/
- https://www.firegiant.com/docs/wix/tutorial/
- https://www.firegiant.com/docs/heatwave/
- https://www.firegiant.com/products/heatwave-build-tools/
Da completare procedura setup servizio, vedere qui:
- https://developingsoftware.com/wix-toolset-install-windows-service/#:~:text=Installing%20the%20WiX%20Toolset%201%20Download%20WiX%20Toolset,Once%20complete%2C%20click%20Exit%20to%20finish%20the%20setup.
- https://stackoverflow.com/questions/1942039/how-to-install-and-start-a-windows-service-using-wix
Infine va modificato CI/CD per
- compilare sw,
- produrre singlefileapp
- produrre installer
- rilasciarlo su nexus
### Install manuale
Istruzioni installazione manuale
Per installare il servizio manualmente, avendo cura di operare dalla directory dove si trova nssm + applicativo
- nssm install servizio
BIN
View File
Binary file not shown.