From 5cf3402735ac2e88fc4aae5fe39fc0a41262b6fa Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Thu, 24 Sep 2020 03:43:12 +0200 Subject: [PATCH] fix: add working directory to wix's shortcut (#1021) * fix: add working directory to wix's shortcut * chore: add change file Co-authored-by: Lucas Nogueira --- .changes/wix-working-directory.md | 5 +++++ cli/tauri-bundler/src/bundle/templates/main.wxs | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changes/wix-working-directory.md diff --git a/.changes/wix-working-directory.md b/.changes/wix-working-directory.md new file mode 100644 index 000000000..982cb1fab --- /dev/null +++ b/.changes/wix-working-directory.md @@ -0,0 +1,5 @@ +--- +"tauri-bundler": patch +--- + +Set the Windows installer (WiX) `WorkingDirectory` field to `INSTALLDIR` so the app can read paths relatively (previously resolving to `C:\Windows\System32`). diff --git a/cli/tauri-bundler/src/bundle/templates/main.wxs b/cli/tauri-bundler/src/bundle/templates/main.wxs index 650a47d28..c8537ee03 100644 --- a/cli/tauri-bundler/src/bundle/templates/main.wxs +++ b/cli/tauri-bundler/src/bundle/templates/main.wxs @@ -103,7 +103,8 @@ Name="{{{product_name}}}" Description="Runs {{{product_name}}}" Target="[!Path]" - Icon="ProductIcon"> + Icon="ProductIcon" + WorkingDirectory="INSTALLDIR">