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>
pull/1371/head
Amr Bashir 1 year ago committed by GitHub
parent 7581576a24
commit 69e4c2e56f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"updater": "patch"
---
Fix NSIS updater creating new shortcuts on update.

@ -556,6 +556,8 @@ impl Update {
match updater_type { match updater_type {
WindowsUpdaterType::Nsis => { WindowsUpdaterType::Nsis => {
installer_args.extend(install_mode.nsis_args().iter().map(OsStr::new)); 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 => { WindowsUpdaterType::Msi => {
installer_args.extend(install_mode.msiexec_args().iter().map(OsStr::new)); installer_args.extend(install_mode.msiexec_args().iter().map(OsStr::new));

@ -21,8 +21,8 @@
"icons/icon.ico" "icons/icon.ico"
], ],
"windows": { "windows": {
"wix": { "webviewInstallMode": {
"skipWebviewInstall": true "type": "skip"
} }
} }
} }

Loading…
Cancel
Save