Skip to content

Commit

Permalink
Merge pull request #1068 from mandiant/fix-dokan-install
Browse files Browse the repository at this point in the history
Add 1603 to validExitCodes
  • Loading branch information
Ana06 authored Jun 7, 2024
2 parents 7ceb07c + 998bb17 commit 60daf3d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 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
2 changes: 1 addition & 1 deletion packages/dokan.vm/dokan.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>dokan.vm</id>
<version>2.1.0</version>
<version>2.1.0.20240603</version>
<authors>kacos2000</authors>
<description>Dokan simplifies the creation of custom file systems on Windows without the complexity of developing kernel-level drivers, offering an accessible solution for file system development, similar to FUSE on Linux.</description>
<dependencies>
Expand Down
2 changes: 2 additions & 0 deletions packages/dokan.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ $exeSha256 = '930b596d6cd7a8f3508f39bd4eab8c2f178178d39d11a9e135180b69820df47f'

$fileType = 'MSI'
$silentArgs = '/qn /norestart'
$validExitCodes= @(0, 3010, 1603, 1605, 1614, 1641)

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

0 comments on commit 60daf3d

Please sign in to comment.