Skip to content

Commit 8539e02

Browse files
committed
fix(bundler): wix upgrade do not installing new files, closes #4182
1 parent f46175d commit 8539e02

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changes/fix-wix-upgrade.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch
3+
---
4+
5+
Fixes lost files on upgrade due to wrong implementation to keep shortcuts.

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@
3030
<Property Id="REINSTALLMODE" Value="dmus" />
3131

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

38+
<InstallExecuteSequence>
39+
<RemoveShortcuts>Installed AND NOT UPGRADINGPRODUCTCODE</RemoveShortcuts>
40+
</InstallExecuteSequence>
41+
3842
<Media Id="1" Cabinet="app.cab" EmbedCab="yes" />
3943

4044
{{#if banner_path}}

0 commit comments

Comments
 (0)