🐛 fix(updater): 修复 MSI 更新后任务栏图标失效与桌面快捷方式重建

- 自动迁移引用失效 MSI 缓存图标的旧任务栏固定项并刷新 Shell
- 在在线更新前备份桌面快捷方式状态,成功或失败后安全恢复
- 将桌面快捷方式拆分为条件安装组件并补充 Windows 回归测试
This commit is contained in:
Syngnat
2026-07-18 13:48:35 +08:00
parent 6cd2835066
commit 7017db418b
9 changed files with 605 additions and 7 deletions

View File

@@ -917,6 +917,11 @@ jobs:
} else {
"0BCEE70B-9CF2-449C-9ADE-190188493234"
}
$desktopShortcutComponentGuid = if ($archName -eq "Arm64") {
"3CF7DCD2-2658-432D-8677-AB6BB34A9659"
} else {
"114030DD-DB5F-460A-9CAC-997680E9F938"
}
$licenseFile = (Resolve-Path -LiteralPath "..\\..\\LICENSE").Path
$noticeFile = (Resolve-Path -LiteralPath "..\\..\\NOTICE").Path
@@ -942,6 +947,7 @@ jobs:
-d "ProductVersion=$productVersion" `
-d "UpgradeCode=CDD6BF2F-ED1E-4345-A0AB-DCDB7E15FB23" `
-d "ComponentGuid=$componentGuid" `
-d "DesktopShortcutComponentGuid=$desktopShortcutComponentGuid" `
-d "InstallFolderName=GoNavi" `
-d "RegistryKeyName=GoNavi" `
-d "SourceExe=$sourceExe" `