Skip to content

Commit

Permalink
fix: add working directory to wix's shortcut (#1021)
Browse files Browse the repository at this point in the history
* fix: add working directory to wix's shortcut

* chore: add change file

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
  • Loading branch information
amrbashir and lucasfernog authored Sep 24, 2020
1 parent 1d9dc18 commit 5cf3402
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/wix-working-directory.md
Original file line number Diff line number Diff line change
@@ -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`).
3 changes: 2 additions & 1 deletion cli/tauri-bundler/src/bundle/templates/main.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
Name="{{{product_name}}}"
Description="Runs {{{product_name}}}"
Target="[!Path]"
Icon="ProductIcon">
Icon="ProductIcon"
WorkingDirectory="INSTALLDIR">
<ShortcutProperty Key="System.AppUserModel.ID" Value="{{{manufacturer}}}"/>
</Shortcut>
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
Expand Down

0 comments on commit 5cf3402

Please sign in to comment.