-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support --no-upgrade option for install flow #2655
Conversation
case APPINSTALLER_CLI_ERROR_INSTALL_PACKAGE_IN_USE: | ||
return "Application is currently running.Exit the application then try again."; | ||
return "Application is currently running. Exit the application then try again."; | ||
case APPINSTALLER_CLI_ERROR_INSTALL_INSTALL_IN_PROGRESS: | ||
return "Another installation is already in progress.Try again later."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Since you fixed the space above, might want to fix this one too
@@ -309,7 +309,8 @@ namespace AppInstaller::CLI::Workflow | |||
context.Reporter.Info() << Resource::String::Cancelled << std::endl; | |||
return; | |||
} | |||
else if (searchContext.GetTerminationHR() == APPINSTALLER_CLI_ERROR_UPDATE_NOT_APPLICABLE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1467,4 +1466,10 @@ Please specify one of them using the `--source` option to proceed.</value> | |||
<value>Archive scan detected malware; proceeding due to --force</value> | |||
<comment>{Locked="--force"}</comment> | |||
</data> | |||
<data name="NoUpgradeArgumentDescription" xml:space="preserve"> | |||
<value>Do not try to upgrade any installed version during install operation</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to #929
There are community asks to allow skipping package upgrade if any version is already installed.
Unit tests added.
Microsoft Reviewers: Open in CodeFlow