Skip to content

Commit

Permalink
6-17 weekly-ish.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengillie committed Jun 17, 2024
1 parent 35dadf6 commit c7fbf20
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 28 deletions.
85 changes: 63 additions & 22 deletions Tools/ExitCodes.csv
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ Code, Message
0x80070001,Windows cannot install required files.
0x80070002,File not found.
0x80070057,The parameter is incorrect.
0x80070661,`ERROR_INSTALL_PLATFORM_UNSUPPORTED` - This installation package is not supported by this processor type. Does this manifest have `Architecture: x86`? It might need to be `x64`.
0x800700d8,This version of this application is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher. (Should this have `Architecture: x64`?)
0x80070424,The specified service does not exist as an installed service.
0x80072EE2,The operation timed out.
0x80072EFD,The operation timed out.
0x80072EFE,The operation timed out.
0x80D02002,The operation timed out.
0x80072F76,Network or Firewall Error.
0x80190193,Forbidden (403)
0x80190194,Not found (404).
0x80D02002,The operation timed out.
0x81F40001,Bundle condition evaluated to false. (Possibly `Microsoft.VCRedist.2015+.` with the wrong architecture.)
0x8A150003,Executing command failed (APPINSTALLER_CLI_ERROR_COMMAND_FAILED).
0x8A150104,This package has a dependency missing from your system. (APPINSTALLER_CLI_ERROR_INSTALL_MISSING_DEPENDENCY) (The most common dependency is `Microsoft.VCRedist.2015+.x64` / `.x86`)
Expand All @@ -39,33 +40,73 @@ Code, Message
0xC0000142,The application failed to initialize properly - does this package require `ElevationRequirement: elevationRequired`?
0xC0000409,Stack overflow / exhaustion.
0xE0434F4D,Unhandled exception in .NET application.
1601,Contact Support.
1602,Cancelled By User.
1601,`ERROR_INSTALL_SERVICE_FAILURE` - The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed.
1602,`ERROR_INSTALL_USEREXIT` - User cancelled installation.
1603,Install successful but system restart may be required. Should this be add as an `InstallerSuccessCode` or similar?
1618,install In Progress.
1623,System Not Supported. Does this manifest have `Architecture: x86`? It might need to be `x64`.
1625,Blocked By Policy.
1628,Invalid Parameter. Double-check the installer switches.
1638,`alreadyInstalled` - does this package's UpgradeBehavior need to be modified?
1639,Invalid Parameter. Double-check the installer switches.
1641,Reboot Initiated.
1640,Blocked By Policy.
1643,Blocked By Policy.
1644,Blocked By Policy.
1649,Blocked By Policy.
1650,Invalid Parameter. Double-check the installer switches.
1654,System Not Supported. Does this manifest have `Architecture: x86`? It might need to be `x64`.
3010,Install successful but system restart may be required. Should this be add as an `InstallerSuccessCode` or similar?
1604,`ERROR_INSTALL_SUSPEND` - Installation suspended
1605,`ERROR_UNKNOWN_PRODUCT` - This action is only valid for products that are currently installed.
1606,`ERROR_UNKNOWN_FEATURE` - Feature ID not registered.
1607,`ERROR_UNKNOWN_COMPONENT` - Component ID not registered.
1608,`ERROR_UNKNOWN_PROPERTY` - Unknown property.
1609,`ERROR_INVALID_HANDLE_STATE` - Handle is in an invalid state.
1610,`ERROR_BAD_CONFIGURATION` - The configuration data for this product is corrupt.
1611,`ERROR_INDEX_ABSENT` - Component qualifier not present.
1612,`ERROR_INSTALL_SOURCE_ABSENT` - The installation source for this product is not available.
1613,`ERROR_INSTALL_PACKAGE_VERSION` - This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.
1614,`ERROR_PRODUCT_UNINSTALLED` - Product is uninstalled.
1615,`ERROR_BAD_QUERY_SYNTAX` - SQL query syntax invalid or unsupported.
1616,`ERROR_INVALID_FIELD` - Record field does not exist.
1617,`ERROR_DEVICE_REMOVED` - The device has been removed.
1618,`ERROR_INSTALL_ALREADY_RUNNING` - Another installation is already in progress.
1619,`ERROR_INSTALL_PACKAGE_OPEN_FAILED` - This installation package could not be opened.
1620,`ERROR_INSTALL_PACKAGE_INVALID` - This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package.
1621,`ERROR_INSTALL_UI_FAILURE` - There was an error starting the Windows Installer service user interface.
1622,`ERROR_INSTALL_LOG_FAILURE` -
1623,`ERROR_INSTALL_LANGUAGE_UNSUPPORTED` - The language of this installation package is not supported by your system.
1624,`ERROR_INSTALL_TRANSFORM_FAILURE` - ???
1625,`ERROR_INSTALL_PACKAGE_REJECTED` - This installation is forbidden by system policy.
1626,`ERROR_FUNCTION_NOT_CALLED` - Function could not be executed.
1627,`ERROR_FUNCTION_FAILED` - Function failed during execution.
1628,`ERROR_INVALID_TABLE` - Invalid or unknown table specified.
1628,`Invalid Parameter. Double-check the installer switches.
1629,`ERROR_DATATYPE_MISMATCH` - Data supplied is of wrong type.
1630,`ERROR_UNSUPPORTED_TYPE` - Data of this type is not supported.
1631,`ERROR_CREATE_FAILED` - The Windows Installer service failed to start.
1632,`ERROR_INSTALL_TEMP_UNWRITABLE` - The Temp folder is on a drive that is full or is inaccessible. Free up space on the drive or verify that you have write permission on the Temp folder.
1633,`ERROR_INSTALL_PLATFORM_UNSUPPORTED` - This installation package is not supported by this processor type. Does this manifest have `Architecture: x86`? It might need to be `x64`.
1634,`ERROR_INSTALL_NOTUSED` - Component not used on this computer.
1635,`ERROR_PATCH_PACKAGE_OPEN_FAILED` - This update package could not be opened.
1636,`ERROR_PATCH_PACKAGE_INVALID` - This update package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer update package.
1637,`ERROR_PATCH_PACKAGE_UNSUPPORTED` - This update package cannot be processed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.
1638,`ERROR_PRODUCT_VERSION` - Another version of this product is already installed. Does this package's `UpgradeBehavior` need to be modified?
1639,`ERROR_INVALID_COMMAND_LINE` - Invalid command line argument. Double-check the installer switches.
1640,`ERROR_INSTALL_REMOTE_DISALLOWED` - Only administrators have permission to add
1641,`ERROR_SUCCESS_REBOOT_INITIATED` - The requested operation completed successfully. The system will be restarted so the changes can take effect.
1642,`ERROR_PATCH_TARGET_NOT_FOUND` - The upgrade cannot be installed by the Windows Installer service because the program to be upgraded may be missing
1643,`ERROR_PATCH_PACKAGE_REJECTED` - The update package is not permitted by software restriction policy.
1644,`ERROR_INSTALL_TRANSFORM_REJECTED` - One or more customizations are not permitted by software restriction policy.
1645,`ERROR_INSTALL_REMOTE_PROHIBITED` - The Windows Installer does not permit installation from a Remote Desktop Connection.
1646,`ERROR_PATCH_REMOVAL_UNSUPPORTED` - Uninstallation of the update package is not supported.
1647,`ERROR_UNKNOWN_PATCH` - The update is not applied to this product.
1648,`ERROR_PATCH_NO_SEQUENCE` - No valid sequence could be found for the set of updates.
1649,`ERROR_PATCH_REMOVAL_DISALLOWED` - Update removal was disallowed by policy.
1650,`ERROR_INVALID_PATCH_XML` - The XML update data is invalid.
1651,`ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT` - Windows Installer does not permit updating of managed advertised products. At least one feature of the product must be installed before applying the update.
1652,`ERROR_INSTALL_SERVICE_SAFEBOOT` - The Windows Installer service is not accessible in Safe Mode. Please try again when your computer is not in Safe Mode or you can use System Restore to return your machine to a previous good state.
1653,`ERROR_FAIL_FAST_EXCEPTION` - A fail fast exception occurred. Exception handlers will not be invoked and the process will be terminated immediately.
1654,`ERROR_INSTALL_REJECTED` - The app that you are trying to run is not supported on this version of Windows. Does this manifest have `Architecture: x86`? It might need to be `x64`.
14081,The referenced assembly could not be found. Is a dependency missing?
2147942402,File not found.
2147954550,Network or Firewall Error.
2147958003,Error Installing Dependency - Windows cannot install this package because it depends on a framework (version) that could not be found.
2147954402,The operation timed out.
2147954429,A connection with the server could not be established.
2147954407,The server name or address could not be resolved.
2147954429,A connection with the server could not be established.
2147954550,Network or Firewall Error.
2147958003,Error Installing Dependency - Windows cannot install this package because it depends on a framework (version) that could not be found.
2148086027,ASN1 bad tag value met.
2149122449,Unauthorized (401).
2149122451,Forbidden (403).
2149122455,Proxy authentication required (407).
2149122449,Unauthorized (401).
3010,Install successful but system restart may be required. Should this be add as an `InstallerSuccessCode` or similar?
3010,Install successful but system restart may be required. Should this be add as an `InstallerSuccessCode` or similar?
3221225477,Converted to hexadecimal (0xC0000005) possibly [Access Violation](https://learn.microsoft.com/en-us/shows/inside/access-violation-c0000005-execute). (This is occasionally seen in PRs, despite the install otherwise being successful. Should it be added as an `InstallerSuccessCode` or similar here?)
3221225495,Not enough virtual memory is available. (VM ran out of RAM)
Expand All @@ -74,4 +115,4 @@ Code, Message
3221225794,The application failed to initialize properly - does this package require `ElevationRequirement: elevationRequired`?
3221226505,Stack overflow / exhaustion.
3762507597,Unhandled exception in .NET application.
autopf64,Application is 64-bit only. Does this manifest have `Architecture: x86`? It might need to be `x64`.
autopf64,Application is 64-bit only. Does this manifest have `Architecture: x86`? It might need to be `x64`.
9 changes: 6 additions & 3 deletions Tools/ManualValidationPipeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ 17. Status bar (pending)
namespace WinGetApprovalNamespace {
public class WinGetApprovalPipeline : Form {
//vars
public int build = 907;//Get-RebuildPipeApp
public int build = 908;//Get-RebuildPipeApp
public string appName = "WinGetApprovalPipeline";
public string appTitle = "WinGet Approval Pipeline - Build ";
public static string owner = "microsoft";
Expand Down Expand Up @@ -563,7 +563,7 @@ public void drawMenuBar (){
submenu.MenuItems.Add("Update hash 'Specified hash doesn't match.'", new EventHandler(Update_Hash_Action));
submenu.MenuItems.Add("Update hash 2 'SHA256 in manifest...'", new EventHandler(Update_Hash2_Action));
submenu.MenuItems.Add("Update architecture (x64)", new EventHandler(Update_Arch_Action));
item.MenuItems.Add("@wingetbot run", new EventHandler(Retry_Action));
item.MenuItems.Add("/azp run", new EventHandler(Retry_Action));
item.MenuItems.Add("Installs Normally in VM", new EventHandler(Manually_Validated_Action));
item.MenuItems.Add("Close: (User Input);", new EventHandler(Closed_Action));
item.MenuItems.Add("Close: Merge Conflicts;", new EventHandler(Merge_Conflicts_Action));
Expand Down Expand Up @@ -1317,6 +1317,9 @@ string to number
155918 "v0.8.0-alpha1"
156200 "V0"
156550 "dev-2024-06"
Returned array instead of string
157466
*/


Expand Down Expand Up @@ -2164,7 +2167,7 @@ public string ApprovePR(int PR,string Data = "") {

public string RetryPR(int PR) {
AddPRToRecord(PR,"Retry");
return InvokeGitHubPRRequest(PR,WebRequestMethods.Http.Post,"comments","@wingetbot run");
return InvokeGitHubPRRequest(PR,WebRequestMethods.Http.Post,"comments","/azp run");
}

public string AddGitHubReviewComment(int PR, string Comment,int? StartLine,int Line) {
Expand Down
6 changes: 3 additions & 3 deletions Tools/ManualValidationPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#3.88.19 - A few bugfixes.
#3.88.18 - Restore waiver and retry fucntionality.

$build = 884
$build = 885
$appName = "ManualValidationPipeline"
Write-Host "$appName build: $build"
$MainFolder = "C:\ManVal"
Expand Down Expand Up @@ -1945,7 +1945,7 @@ Function Get-GitHubPreset {
$out += Reply-ToPR -PR $PR -Body "Reset approval workflow." -Policy "Reset Feedback `n[Policy] Validation Completed `n[Policy] Approved" }
"Retry" {
Add-PRToRecord -PR $PR -Action $Preset
$out += Invoke-GitHubPRRequest -PR $PR -Type comments -Output StatusDescription -Method POST -Data "@wingetbot run"
$out += Invoke-GitHubPRRequest -PR $PR -Type comments -Output StatusDescription -Method POST -Data "/azp run"
}
"Squash" {
Add-PRToRecord -PR $PR -Action $Preset
Expand Down Expand Up @@ -2880,7 +2880,7 @@ Function Add-GitHubReviewComment {
Function Get-BuildFromPR {
param(
$PR,
$content = ((Invoke-WebRequest "$ADOMSBaseUrl/$Repo/_apis/build/builds?branchName=refs/pull/$PR/merge&api-version=6.0").content | ConvertFrom-Json),
$content = ((Invoke-WebRequest "$ADOMSBaseUrl/$Repo/_apis/build/builds?branchName=refs/pull/$PR/merge&api-version=7.1").content | ConvertFrom-Json),
$href = ($content.value[0]._links.web.href),
$PRbuild = (($href -split "=")[1])
)
Expand Down

0 comments on commit c7fbf20

Please sign in to comment.