fix(updater): pass /NS and /UPDATE to nsis installer to disable creating shortcuts on updates (#1162)

* fix(updater): pass `/NS` to nsis installer to disable creating shortcuts on updates

ref: tauri-apps/tauri#9395

* add `/UPDATE`

* move args to function

* update updater test config

* revert /R

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
Amr Bashir
2024-05-25 16:26:27 +03:00
committed by GitHub
parent 7581576a24
commit 69e4c2e56f
3 changed files with 9 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"updater": "patch"
---
Fix NSIS updater creating new shortcuts on update.
+2
View File
@@ -556,6 +556,8 @@ impl Update {
match updater_type {
WindowsUpdaterType::Nsis => {
installer_args.extend(install_mode.nsis_args().iter().map(OsStr::new));
installer_args.push(OsStr::new("/NS"));
installer_args.push(OsStr::new("/UPDATE"));
}
WindowsUpdaterType::Msi => {
installer_args.extend(install_mode.msiexec_args().iter().map(OsStr::new));
@@ -21,8 +21,8 @@
"icons/icon.ico"
],
"windows": {
"wix": {
"skipWebviewInstall": true
"webviewInstallMode": {
"type": "skip"
}
}
}