Skip to content

Commit

Permalink
feat(bundler/nsis): add /UPDATE flag (#9559)
Browse files Browse the repository at this point in the history
* feat(bundler/nsis): add `/UPDATE` flag

* typo

* typo

* skip webview2 installation on updating
  • Loading branch information
amrbashir committed May 25, 2024
1 parent 80aa504 commit 418d72d
Show file tree
Hide file tree
Showing 4 changed files with 219 additions and 175 deletions.
6 changes: 6 additions & 0 deletions .changes/bundler-shortcuts-updating.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-bundler": "patch:enhance"
---

Added `/UPDATE` flag for NSIS installer which will make the installer avoid deleting app data and re-creating shortcuts.

4 changes: 4 additions & 0 deletions tooling/bundler/src/bundle/windows/nsis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ fn build_nsis_app_installer(
output_path.join("FileAssociation.nsh"),
include_str!("./templates/FileAssociation.nsh"),
)?;
write_ut16_le_with_bom(
output_path.join("utils.nsh"),
include_str!("./templates/utils.nsh"),
)?;

let installer_nsi_path = output_path.join("installer.nsi");
write_ut16_le_with_bom(
Expand Down
Loading

0 comments on commit 418d72d

Please sign in to comment.