commit 04ccec385f842590d02e94fe784ee162648d8257 parent 06cb4896b94888844b755d6d9e74339ca4478595 Author: yao-msft <50888816+yao-msft@users.noreply.github.com> Date: Tue, 19 Sep 2023 11:46:25 -0700 Add norestart to msi uninstall args (#3638) Diffstat:
| M | src/AppInstallerCLICore/Workflows/ShellExecuteInstallerHandler.cpp | | | 9 | +++------ |
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/AppInstallerCLICore/Workflows/ShellExecuteInstallerHandler.cpp b/src/AppInstallerCLICore/Workflows/ShellExecuteInstallerHandler.cpp @@ -189,17 +189,14 @@ namespace AppInstaller::CLI::Workflow { std::string args = "/x" + productCode.get(); - // Set UI level for MsiExec with the /q flag. - // If interactive is requested, use the default instead of Reduced or Full as the installer may not use them. + // https://learn.microsoft.com/en-us/windows/win32/msi/standard-installer-command-line-options if (context.Args.Contains(Execution::Args::Type::Silent)) { - // n = None = silent - args += " /qn"; + args += " /quiet /norestart"; } else if (!context.Args.Contains(Execution::Args::Type::Interactive)) { - // b = Basic = only progress bar - args += " /qb"; + args += " /passive /norestart"; } return args;