Changelog since 1.3.4
-
Packages with reboot type 5 will now be correctly classified as unattended (thanks @dkattan)
-
The
Install-LSUpdate
cmdlet now returns richPackageInstallResult
objects with the following properties:[string] $ID [string] $Title [Nullable[PackageType]] $Type [bool] $Success [string] $FailureReason [PackagePendingAction] $PendingAction [Nullable[Int64]] $ExitCode [string[]] $StandardOutput [string[]] $StandardError [string[]] $LogOutput [TimeSpan] $Runtime
where
PendingAction
is an enum ofNONE
,REBOOT_SUGGESTED
,REBOOT_MANDATORY
orSHUTDOWN
.ℹ️ The PendingAction
property is now the recommended way to determine whether a power cycle should be performed (over the-SaveBIOSUpdateInfoToRegistry
parameter ofInstall-LSUpdate
), because thePendingAction
property is set for ALL installs, not just BIOS updates, and there are other updates as well for which "it simply isn't safe to postpone the reboot".That said,
-SaveBIOSUpdateInfoToRegistry
will continue to work the same as before. To aid the transition, the following table compares the values to expect in different scenarios - the exact code deciding the value of PendingAction can be referenced here as well:Scenario PendingAction "ActionNeeded" registry value with -SaveBIOSUpdateInfoToRegistry
ThinkPad BIOS update REBOOT_MANDATORY REBOOT ThinkCentre BIOS update SHUTDOWN SHUTDOWN Any Reboot Type 5 update REBOOT_MANDATORY - Any Reboot Type 3 update REBOOT_SUGGESTED - Any Reboot Type 0 update NONE - Any unsuccessful update NONE - -
Fix some packages with MSI installers failing to install with "The command or file ... could not be found" error
-
Fix a syntax mistake that caused all _OS tests to always succeed leading to inaccurate Win10/Win11 distinction [#48]