Skip to content

Commit 418d72d

Browse files
authored
feat(bundler/nsis): add /UPDATE flag (#9559)
* feat(bundler/nsis): add `/UPDATE` flag * typo * typo * skip webview2 installation on updating
1 parent 80aa504 commit 418d72d

File tree

4 files changed

+219
-175
lines changed

4 files changed

+219
-175
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-bundler": "patch:enhance"
3+
---
4+
5+
Added `/UPDATE` flag for NSIS installer which will make the installer avoid deleting app data and re-creating shortcuts.
6+

tooling/bundler/src/bundle/windows/nsis.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,10 @@ fn build_nsis_app_installer(
451451
output_path.join("FileAssociation.nsh"),
452452
include_str!("./templates/FileAssociation.nsh"),
453453
)?;
454+
write_ut16_le_with_bom(
455+
output_path.join("utils.nsh"),
456+
include_str!("./templates/utils.nsh"),
457+
)?;
454458

455459
let installer_nsi_path = output_path.join("installer.nsi");
456460
write_ut16_le_with_bom(

0 commit comments

Comments
 (0)