mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
chore(updater): remove /NS (#1371)
This commit is contained in:
@@ -32,6 +32,9 @@ impl WindowsUpdateInstallMode {
|
|||||||
|
|
||||||
/// Returns the associated nsis arguments.
|
/// Returns the associated nsis arguments.
|
||||||
pub fn nsis_args(&self) -> &'static [&'static str] {
|
pub fn nsis_args(&self) -> &'static [&'static str] {
|
||||||
|
// `/P`: Passive
|
||||||
|
// `/S`: Silent
|
||||||
|
// `/R`: Restart
|
||||||
match self {
|
match self {
|
||||||
Self::Passive => &["/P", "/R"],
|
Self::Passive => &["/P", "/R"],
|
||||||
Self::Quiet => &["/S", "/R"],
|
Self::Quiet => &["/S", "/R"],
|
||||||
|
|||||||
@@ -556,7 +556,6 @@ 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"));
|
installer_args.push(OsStr::new("/UPDATE"));
|
||||||
}
|
}
|
||||||
WindowsUpdaterType::Msi => {
|
WindowsUpdaterType::Msi => {
|
||||||
|
|||||||
Reference in New Issue
Block a user