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 <lucas@tauri.studio>
This commit is contained in:
Amr Bashir
2020-09-24 03:43:12 +02:00
committed by GitHub
parent 1d9dc18567
commit 5cf3402735
2 changed files with 7 additions and 1 deletions

View File

@@ -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`).

View File

@@ -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"/>