|
@@ -2479,9 +2479,9 @@ pub enum WindowsUpdateInstallMode {
|
|
|
/// Specifies there's a basic UI during the installation process, including a final dialog box at the end.
|
|
|
BasicUi,
|
|
|
/// The quiet mode means there's no user interaction required.
|
|
|
- /// Requires admin privileges if the installer does (WiX).
|
|
|
+ /// Requires admin privileges if the installer does.
|
|
|
Quiet,
|
|
|
- /// Specifies unattended mode, which means the installation only shows a progress bar.
|
|
|
+ /// Specifies unattended mode, which means the installation only shows a progress bar. **msi (Wix) Only**
|
|
|
Passive,
|
|
|
// to add more modes, we need to check if the updater relaunch makes sense
|
|
|
// i.e. for a full UI mode, the user can also mark the installer to start the app
|
|
@@ -2496,6 +2496,14 @@ impl WindowsUpdateInstallMode {
|
|
|
Self::Passive => &["/passive"],
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /// Returns the associated nsis arguments.
|
|
|
+ pub fn nsis_args(&self) -> &'static [&'static str] {
|
|
|
+ match self {
|
|
|
+ Self::Quiet => &["/S", "/R"],
|
|
|
+ _ => &[],
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
impl Display for WindowsUpdateInstallMode {
|