Skip to content

Commit

Permalink
Merge pull request #41 from nyanhp/fixSoftwarePackage
Browse files Browse the repository at this point in the history
Win7/2008R2 compatibility (fixes #42)
  • Loading branch information
nyanhp authored Nov 14, 2018
2 parents 2597648 + 2d9c833 commit c65944a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AutomatedLab.Common/Common/Public/Install-SoftwarePackage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function Install-SoftwarePackage

[int[]]$ExpectedReturnCodes,

[pscredential]$Credential
[system.management.automation.pscredential]$Credential
)

#region New-InstallProcess
Expand Down Expand Up @@ -207,7 +207,7 @@ function Install-SoftwarePackage
if ($result.Process.ExitCode -ne 0 `
-and $result.Process.ExitCode -ne 3010 `
-and $result.Process.ExitCode -ne $null `
-and $result.Process.ExitCode -notin $ExpectedReturnCodes)
-and $ExpectedReturnCodes -notcontains $result.Process.ExitCode )
{
throw (New-Object System.ComponentModel.Win32Exception($result.Process.ExitCode))
}
Expand Down

0 comments on commit c65944a

Please sign in to comment.