ci(windows): suppress WiX ICE validation; msiserver service unreachable as runner user
build-windows / build-windows-x64 (push) Successful in 1h32m47s

This commit is contained in:
2026-05-05 08:57:27 +02:00
parent 1aacf16c0a
commit e252c720eb
+13 -1
View File
@@ -425,7 +425,19 @@ jobs:
& $msbuild msi.sln -t:Restore -p:Configuration=Release -p:Platform=x64
if ($LASTEXITCODE -ne 0) { throw "MSBuild restore failed ($LASTEXITCODE)" }
& $msbuild msi.sln -p:Configuration=Release -p:Platform=x64 /p:TargetVersion=Windows10
# WiX's WindowsInstallerValidation target invokes ICEs through the
# local Windows Installer service (msiserver). When the runner user
# lacks the COM/RPC rights to that service, every ICE check fails
# with WIX0217. Skip ICE validation -- it's a development-time lint,
# not a functional requirement, and the produced MSI is identical.
# Defensively also nudge the service in case some other validation
# path (e.g. signing tools) needs it.
try { Start-Service msiserver -ErrorAction SilentlyContinue } catch {}
& $msbuild msi.sln `
-p:Configuration=Release -p:Platform=x64 `
/p:TargetVersion=Windows10 `
/p:SuppressValidation=true
if ($LASTEXITCODE -ne 0) { throw "MSBuild build failed ($LASTEXITCODE)" }
Move-Item -Force .\Package\bin\x64\Release\en-us\Package.msi "..\..\SignOutput\rustdesk-${env:VERSION_DISPLAY}-x86_64.msi"