mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-24 10:08:00 -06:00
* #305: harden Windows MSI deployment and progress UI Co-authored-by: Codex <noreply@openai.com> * Keep the MSI manufacturer as Learning Machines LLC The company name matches the Linux packages; changing it is the owner's call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #305: keep compiled-MSI checks compatible with PowerShell COM Validated the compiled x64 MSI and negative scope, publisher and progress mutations. Co-authored-by: Codex <noreply@openai.com> * ROADMAP: the publisher name is unchanged Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Codex <noreply@openai.com> Co-authored-by: Brandon Thomas <echelon@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Codex
Claude Opus 5.5
Brandon Thomas
parent
7458f7d47d
commit
d801407a9f
@@ -73,6 +73,13 @@ jobs:
|
||||
run: |
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$msi = (Get-ChildItem dist/*.msi | Select-Object -First 1).FullName
|
||||
# A command-line override must not put files in a user profile while registering
|
||||
# their handlers machine-wide (#305). This runs on a disposable CI runner.
|
||||
$p = Start-Process msiexec.exe -WindowStyle Hidden -ArgumentList '/i', "`"$msi`"", '/qn', 'ALLUSERS=2', 'MSIINSTALLPERUSER=1', '/l*v', 'per-user.log' -Wait -PassThru
|
||||
if ($p.ExitCode -ne 1603) { Get-Content per-user.log -Tail 60; throw "per-user install should fail with 1603, got $($p.ExitCode)" }
|
||||
if (-not (Select-String -Path per-user.log -SimpleMatch 'PdfCraft must be installed for all users.')) {
|
||||
Get-Content per-user.log -Tail 60; throw 'per-user install did not fail on the scope guard'
|
||||
}
|
||||
$p = Start-Process msiexec.exe -ArgumentList '/i', "`"$msi`"", '/qn', '/l*v', 'install.log' -Wait -PassThru
|
||||
if ($p.ExitCode -ne 0) { Get-Content install.log -Tail 60; throw "msiexec /i exited $($p.ExitCode)" }
|
||||
$shortcuts = @(
|
||||
|
||||
Reference in New Issue
Block a user