This should save some time during building the installer which hopefully
helps preventing the Windows CI from exceeding the maximum time.
Co-authored-by: Davide Beatrici <github@davidebeatrici.dev>
This is basically a replacement for our old Perl script ("build_installer.pl").
Aside from using CPack instead of MSBuild, there's not much difference in terms of methodology.
The Perl script exclusively uses Windows SDK tools; the PowerShell one uses a COM object, a WiX tool and an extra one from FireGiant (WiX's developers).
In future we should investigate whether using the "WindowsInstaller.Installer" COM object (used to replace "msiinfo.exe") we can replace FireGiant's EmbedTransform, so that WiX remains the only dependency.
Co-authored-by: Davide Beatrici <git@davidebeatrici.dev>