mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix(core/updater): pass /NS to nsis installer to disable creating shortcuts on updates (#9413)
* fix(core/updater): pass `/NS` to nsis installer to disable creating shortcuts on updates closes #9395 * Update .changes/utils-nsis-args-ns.md [skip ci] --------- Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
This commit is contained in:
5
.changes/updater-nsis-shortcut.md
Normal file
5
.changes/updater-nsis-shortcut.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": "patch:bug"
|
||||
---
|
||||
|
||||
Fix NSIS updater creating new shortcuts on update.
|
||||
5
.changes/utils-nsis-args-ns.md
Normal file
5
.changes/utils-nsis-args-ns.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri-utils": "patch:enhance"
|
||||
---
|
||||
|
||||
Added `/NS` flag in the return of `WindowsUpdateInstallMode::nsis_args`.
|
||||
@@ -2756,12 +2756,12 @@ impl WindowsUpdateInstallMode {
|
||||
|
||||
/// Returns the associated nsis arguments.
|
||||
///
|
||||
/// [WindowsUpdateInstallMode::Passive] will return `["/P", "/R"]`
|
||||
/// [WindowsUpdateInstallMode::Quiet] will return `["/S", "/R"]`
|
||||
/// [WindowsUpdateInstallMode::Passive] will return `["/P", "/R", "/NS"]`
|
||||
/// [WindowsUpdateInstallMode::Quiet] will return `["/S", "/R", "/NS"]`
|
||||
pub fn nsis_args(&self) -> &'static [&'static str] {
|
||||
match self {
|
||||
Self::Passive => &["/P", "/R"],
|
||||
Self::Quiet => &["/S", "/R"],
|
||||
Self::Passive => &["/P", "/R", "/NS"],
|
||||
Self::Quiet => &["/S", "/R", "/NS"],
|
||||
_ => &[],
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user