Skip to content

Commit

Permalink
Add 1603 to validExitCodes
Browse files Browse the repository at this point in the history
  • Loading branch information
naacbin committed Jun 4, 2024
1 parent 165ec34 commit e6884e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/common.vm/common.vm.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>common.vm</id>
<version>0.0.0.20240516</version>
<version>0.0.0.20240531</version>
<description>Common libraries for VM-packages</description>
<authors>Mandiant</authors>
</metadata>
Expand Down
2 changes: 1 addition & 1 deletion packages/common.vm/tools/vm.common/vm.common.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ function VM-Install-With-Installer {
[Parameter(Mandatory=$false)]
[string] $sha256,
[Parameter(Mandatory=$false)]
[array] $validExitCodes= @(0, 3010, 1605, 1614, 1641),
[array] $validExitCodes= @(0, 3010, 1603, 1605, 1614, 1641),
[Parameter(Mandatory=$false)]
[bool] $consoleApp=$false,
[Parameter(Mandatory=$false)]
Expand Down
5 changes: 3 additions & 2 deletions packages/dokan.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ $toolName = 'Dokan'

$exeUrl = 'https://github.com/dokan-dev/dokany/releases/download/v2.1.0.1000/Dokan_x64.msi'
$exeSha256 = '930b596d6cd7a8f3508f39bd4eab8c2f178178d39d11a9e135180b69820df47f'
$validExitCodes= @(0, 3010, 1603, 1605, 1614, 1641)

$fileType = 'MSI'
$silentArgs = '/qn /norestart'
VM-Install-With-Installer -toolName $toolName -executablePath $executablePath -url $exeUrl -sha256 $exeSha256

try {
$toolDir = Join-Path ${Env:RAW_TOOLS_DIR} $toolName
Expand All @@ -33,6 +33,7 @@ try {
fileType = $fileType
file = $installerPath
silentArgs = $silentArgs
validExitCodes= $validExitCodes
softwareName = $toolName
}
Install-ChocolateyInstallPackage @packageArgs
Expand Down

0 comments on commit e6884e3

Please sign in to comment.