2026-05-08 00:16:26 -04:00
|
|
|
<Project Sdk="WixToolset.Sdk/5.0.2">
|
|
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<OutputType>Package</OutputType>
|
2026-05-31 11:16:40 -04:00
|
|
|
<OutputName>Dragon-ISO-Setup-$(Version)</OutputName>
|
2026-05-08 00:16:26 -04:00
|
|
|
|
|
|
|
|
<!-- 64-bit MSI; suppresses ICE80 on components in Program Files (x64). -->
|
|
|
|
|
<Platform>x64</Platform>
|
|
|
|
|
<InstallerPlatform>x64</InstallerPlatform>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Built artifact location. The installer expects a published build of
|
2026-05-31 11:16:40 -04:00
|
|
|
Dragon-ISO.App rooted here. CI / local script:
|
|
|
|
|
dotnet publish src/Dragon-ISO.App/Dragon-ISO.App.csproj
|
|
|
|
|
-c Release -r win-x64 -self-contained false
|
|
|
|
|
-o $(SolutionDir)publish/Dragon-ISO
|
2026-05-08 00:16:26 -04:00
|
|
|
-->
|
2026-05-31 11:16:40 -04:00
|
|
|
<PublishDir>$(MSBuildThisFileDirectory)..\publish\Dragon-ISO\</PublishDir>
|
2026-05-08 00:16:26 -04:00
|
|
|
|
2026-07-06 21:30:56 -04:00
|
|
|
<!--
|
|
|
|
|
MSI ProductVersion must be numeric x.y.z (no -beta/-rc suffix), and it is
|
|
|
|
|
what MajorUpgrade compares — so it must track the real build version, not
|
|
|
|
|
a hardcoded literal. Strip any prerelease suffix from $(Version). Note:
|
|
|
|
|
two prereleases of the same x.y.z share a ProductVersion and won't
|
|
|
|
|
upgrade over each other; bump the patch digit between betas.
|
|
|
|
|
-->
|
|
|
|
|
<MsiProductVersion>$([System.Text.RegularExpressions.Regex]::Match('$(Version)', '^\d+\.\d+(\.\d+)?').Value)</MsiProductVersion>
|
|
|
|
|
|
2026-05-08 00:16:26 -04:00
|
|
|
<!-- Pass MSBuild values into WiX preprocessor. -->
|
2026-07-06 21:30:56 -04:00
|
|
|
<DefineConstants>PublishDir=$(PublishDir);AssetsDir=$(MSBuildThisFileDirectory)..\src\Dragon-ISO.App\Assets\;ProductVersion=$(MsiProductVersion)</DefineConstants>
|
2026-05-08 00:16:26 -04:00
|
|
|
|
|
|
|
|
<!-- Code-signing hook (set externally for release builds; left empty for dev). -->
|
|
|
|
|
<SignOutput Condition=" '$(SignOutput)' == '' ">false</SignOutput>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Reference the WiX UI extension so the MSI shows a friendly progress UI
|
|
|
|
|
instead of the silent default.
|
|
|
|
|
-->
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<PackageReference Include="WixToolset.UI.wixext" Version="5.0.2" />
|
2026-07-06 21:46:12 -04:00
|
|
|
<!-- WixQuietExec for the URL ACL custom actions (control surface, port 9755). -->
|
|
|
|
|
<PackageReference Include="WixToolset.Util.wixext" Version="5.0.2" />
|
2026-05-08 00:16:26 -04:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
2026-05-31 11:16:40 -04:00
|
|
|
</Project>
|