-
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1349,7 +1349,6 @@ Please specify one of them using the `--source` option to proceed.</value> | |
</data> | ||
<data name="PortableAliasAdded" xml:space="preserve"> | ||
<value>Command line alias added:</value> | ||
|
||
</data> | ||
<data name="PortableInstallFailed" xml:space="preserve"> | ||
<value>Portable install failed; Cleaning up...</value> | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. |
||
</data> | ||
<data name="PackageAlreadyInstalled" xml:space="preserve"> | ||
<value>A package version is already installed. Installation cancelled.</value> | ||
</data> | ||
</root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -180,6 +180,8 @@ namespace AppInstaller | |
return "Failed to install portable package"; | ||
case APPINSTALLER_CLI_ERROR_PORTABLE_REPARSE_POINT_NOT_SUPPORTED: | ||
return "Volume does not support reparse points."; | ||
case APPINSTALLER_CLI_ERROR_PORTABLE_PACKAGE_ALREADY_EXISTS: | ||
return "Portable package from a different source already exists."; | ||
case APPINSTALLER_CLI_ERROR_PORTABLE_SYMLINK_PATH_IS_DIRECTORY: | ||
return "Unable to create symlink, path points to a directory."; | ||
case APPINSTALLER_CLI_ERROR_INSTALLER_PROHIBITS_ELEVATION: | ||
|
@@ -188,10 +190,28 @@ namespace AppInstaller | |
return "Failed to uninstall portable package"; | ||
case APPINSTALLER_CLI_ERROR_ARP_VERSION_VALIDATION_FAILED: | ||
return "Failed to validate DisplayVersion values against index."; | ||
case APPINSTALLER_CLI_ERROR_UNSUPPORTED_ARGUMENT: | ||
return "One or more arguments are not supported."; | ||
case APPINSTALLER_CLI_ERROR_BIND_WITH_EMBEDDED_NULL: | ||
return "Embedded null characters are disallowed for SQLite"; | ||
case APPINSTALLER_CLI_ERROR_NESTEDINSTALLER_NOT_FOUND: | ||
return "Failed to find the nested installer in the archive."; | ||
case APPINSTALLER_CLI_ERROR_EXTRACT_ARCHIVE_FAILED: | ||
return "Failed to extract archive."; | ||
case APPINSTALLER_CLI_ERROR_NESTEDINSTALLER_INVALID_PATH: | ||
return "Invalid relative file path to nested installer provided."; | ||
case APPINSTALLER_CLI_ERROR_PINNED_CERTIFICATE_MISMATCH: | ||
return "The server certificate did not match any of the expected values."; | ||
case APPINSTALLER_CLI_ERROR_INSTALL_LOCATION_REQUIRED: | ||
return "Install location required but not provided"; | ||
return "Install location must be provided."; | ||
case APPINSTALLER_CLI_ERROR_ARCHIVE_SCAN_FAILED: | ||
return "Archive malware scan failed."; | ||
case APPINSTALLER_CLI_ERROR_PACKAGE_ALREADY_INSTALLED: | ||
return "Found at least one version of the package installed."; | ||
|
||
// Install errors | ||
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 commentThe 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 |
||
case APPINSTALLER_CLI_ERROR_INSTALL_FILE_IN_USE: | ||
|
@@ -222,14 +242,12 @@ namespace AppInstaller | |
return "Organization policies are preventing installation. Contact your admin."; | ||
case APPINSTALLER_CLI_ERROR_INSTALL_DEPENDENCIES: | ||
return "Failed to install package dependencies."; | ||
case APPINSTALLER_CLI_ERROR_BIND_WITH_EMBEDDED_NULL: | ||
return "Embedded null characters are disallowed for SQLite"; | ||
case APPINSTALLER_CLI_ERROR_PINNED_CERTIFICATE_MISMATCH: | ||
return "The server certificate did not match any of the expected values."; | ||
case APPINSTALLER_CLI_ERROR_NESTEDINSTALLER_NOT_FOUND: | ||
return "Failed to find the nested installer in the archive."; | ||
case APPINSTALLER_CLI_ERROR_NESTEDINSTALLER_INVALID_PATH: | ||
return "Invalid relative file path to nested installer provided."; | ||
case APPINSTALLER_CLI_ERROR_INSTALL_PACKAGE_IN_USE_BY_APPLICATION: | ||
return "Application is currently in use by another application."; | ||
case APPINSTALLER_CLI_ERROR_INSTALL_INVALID_PARAMETER: | ||
return "Invalid parameter."; | ||
case APPINSTALLER_CLI_ERROR_INSTALL_SYSTEM_NOT_SUPPORTED: | ||
return "Package not supported by the system."; | ||
default: | ||
return "Unknown Error Code"; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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: should this be assigned to a variable so that it is not called 3 times within this if-else block.