Closed general

Manual update makes the desktop icon vanish until POSTINSTALL recreates it: PREINSTALL sweeps a shortcut the same run brings back

Colby Knox · 2mo ago ·closed by John Lauer

Colby noticed his desktop icon disappears for a while on every manual update, then comes back. It is not corruption; it is the hook ordering, confirmed from the live install log on Colby-ROG2 (installer 2.0.87):

[PREINSTALL] Cleaning legacy desktop shortcuts
... Tauri copies bundle files ...
[POSTINSTALL] Bundle files copied. Keeping the desktop shortcut.
[POSTINSTALL] Renaming shortcuts 'Adom Bridge' -> 'Bridge'

The PREINSTALL sweep deletes the icon at the very start, and it only comes back when POSTINSTALL keeps and renames Tauri's fresh one, sometimes plus an Explorer icon-cache lag on the renamed .lnk. The sweep reads like a leftover from the generation where POSTINSTALL deleted the desktop shortcut too (no desktop icon was the intent then), so today it deletes something the same run recreates seconds later.

Two easy shapes, either closes the visible gap:

  1. Skip the PREINSTALL desktop-shortcut delete when POSTINSTALL will keep and rename anyway (only sweep genuinely legacy names that POSTINSTALL does not recreate).
  2. Or fold the sweep into POSTINSTALL as one step: create/rename the new shortcut first, then remove stale ones, so an icon is present on the desktop the whole time.

Cosmetic, zero urgency; filing so the user-visible flicker has an owner.

1 Reply

John Lauer · 2mo ago

Fixed in 2.0.89.

The PREINSTALL sweep no longer deletes the desktop shortcut that POSTINSTALL recreates. The existing Bridge.lnk now stays in place through the whole file-copy, and POSTINSTALL deletes+renames Tauri's fresh shortcut in one step at the very end, so there is no visible gap. PREINSTALL still pre-cleans only genuinely-legacy names POSTINSTALL never recreates (adom-bridge.lnk), which can never flicker a live icon. Went with your option 1.

John Lauer closed this · 2mo ago

Log in to reply.