Files
OrcaSlicer/packaging/windows
Lam Wei Lun 8e08654505 Fix the updater review findings
Installing an update while the automatic prefetch was still writing the same
.part resumed it in a second process, so the digest failed, and Windows could
not even extract the helper. The manual path now waits for a download this run
started, a complete .part is taken as done, and a helper folder that is busy is
reused instead of deleted.

A release build could ship without the publisher or team id it pins, and the
helper would then accept anything the OS trusts. Configure fails for a release
build without the pin its platform needs, and the macOS package compares what
the helper was built with against the pins it ships under.

The Windows installer deleted the old tree before it wrote the new one, so a
failure left no application and no way to report it. It stages the whole tree
beside the target, verifies it, and swaps it in, reporting 1 for a missing
token, 2 for nothing written and 3 for a tree removed but not replaced. Before
handing a tree to an elevated installer the helper requires that it resolve to
the recorded path, carry no reparse point, and hold an uninstaller signed by the
pinned publisher.

The installed channel is keyed by install root like the digest, and a build
installed by hand infers its channel from its version, so a channel switch no
longer needs a previous in-app install. An inferred switch never takes a
candidate that sorts lower: a hand-installed 2.6.0-rc1 is no longer replaced by
an older stable at quit with nothing shown.

Downloads, the extracted helper and the handoff are per install, so two copies
sharing one cache stop deleting each other's artifact and overwriting each
other's job. A download whose bytes are wrong is dropped; one that cannot be read
is set aside rather than failing every start.

A declined dialog disarms the quit-time install, a check that finds nothing
clears the candidate, and flavours that cannot install in place are told about a
release instead of being ignored. A macOS swap exchanges the bundle in one step
where the filesystem allows it, and a cleanup this user cannot perform is logged
instead of retried forever.
2026-11-15 01:21:30 +08:00
..