chore(updater): remove /NS (#1371)

This commit is contained in:
Tony
2024-05-27 23:31:58 +08:00
committed by GitHub
parent b0518206cd
commit 7327602f15
2 changed files with 3 additions and 1 deletions
+3
View File
@@ -32,6 +32,9 @@ impl WindowsUpdateInstallMode {
/// Returns the associated nsis arguments.
pub fn nsis_args(&self) -> &'static [&'static str] {
// `/P`: Passive
// `/S`: Silent
// `/R`: Restart
match self {
Self::Passive => &["/P", "/R"],
Self::Quiet => &["/S", "/R"],
-1
View File
@@ -556,7 +556,6 @@ 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 => {