fix(bundler): wix upgrade do not installing new files, closes #4182

This commit is contained in:
Lucas Nogueira
2022-05-21 15:07:36 -03:00
parent f46175d5d4
commit 8539e02f7f
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---
Fixes lost files on upgrade due to wrong implementation to keep shortcuts.

View File

@@ -30,11 +30,15 @@
<Property Id="REINSTALLMODE" Value="dmus" />
{{#if allow_downgrades}}
<MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallExecute" />
<MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallValidate" />
{{else}}
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeErrorMessage)" AllowSameVersionUpgrades="yes" />
{{/if}}
<InstallExecuteSequence>
<RemoveShortcuts>Installed AND NOT UPGRADINGPRODUCTCODE</RemoveShortcuts>
</InstallExecuteSequence>
<Media Id="1" Cabinet="app.cab" EmbedCab="yes" />
{{#if banner_path}}