Skip to content

Commit d965b92

Browse files
authored
fix(bundler): prevent removal of pin to taskbar on Windows (#4144)
1 parent 29d8e76 commit d965b92

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changes/fix-windows-upgrade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch
3+
---
4+
5+
Change WiX MajorUpgrade element's `Schedule` to `afterInstallExecute` to prevent removal of existing configuration such as the executable's pin to taskbar.

tooling/bundler/src/bundle/windows/templates/main.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<Property Id="REINSTALLMODE" Value="dmus" />
3131

3232
{{#if allow_downgrades}}
33-
<MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallInitialize" />
33+
<MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallExecute" />
3434
{{else}}
3535
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeErrorMessage)" AllowSameVersionUpgrades="yes" />
3636
{{/if}}

0 commit comments

Comments
 (0)