From 8539e02f7fd56cc47b25ed45c8403d66abe262ac Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sat, 21 May 2022 15:07:36 -0300 Subject: [PATCH] fix(bundler): wix upgrade do not installing new files, closes #4182 --- .changes/fix-wix-upgrade.md | 5 +++++ tooling/bundler/src/bundle/windows/templates/main.wxs | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changes/fix-wix-upgrade.md diff --git a/.changes/fix-wix-upgrade.md b/.changes/fix-wix-upgrade.md new file mode 100644 index 000000000..b2317a69b --- /dev/null +++ b/.changes/fix-wix-upgrade.md @@ -0,0 +1,5 @@ +--- +"tauri-bundler": patch +--- + +Fixes lost files on upgrade due to wrong implementation to keep shortcuts. diff --git a/tooling/bundler/src/bundle/windows/templates/main.wxs b/tooling/bundler/src/bundle/windows/templates/main.wxs index 779c24161..7ea8a7211 100644 --- a/tooling/bundler/src/bundle/windows/templates/main.wxs +++ b/tooling/bundler/src/bundle/windows/templates/main.wxs @@ -30,11 +30,15 @@ {{#if allow_downgrades}} - + {{else}} {{/if}} + + Installed AND NOT UPGRADINGPRODUCTCODE + + {{#if banner_path}}