Skip to content

Commit

Permalink
Merge pull request #944 from Ana06/sysinternals-path
Browse files Browse the repository at this point in the history
[sysinternals.vm] Add tools to PATH & fix exception order
  • Loading branch information
Ana06 authored Mar 6, 2024
2 parents 0b7f4d8 + 25fbbee commit 45790b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/sysinternals.vm/sysinternals.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>sysinternals.vm</id>
<version>0.0.0.20240112</version>
<version>0.0.0.20240306</version>
<authors>Mark Russinovich, Bryce Cogswell</authors>
<description>Sysinternals suite.</description>
<dependencies>
Expand Down
8 changes: 5 additions & 3 deletions packages/sysinternals.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ try {
VM-Assert-Signature $_.FullName
}
} catch {
VM-Write-Log-Exception $_
# Remove files with invalid signature
Remove-Item $toolDir -Recurse -Force -ea 0 | Out-Null
# Remove files with invalid signature
Remove-Item $toolDir -Recurse -Force -ea 0 | Out-Null
VM-Write-Log-Exception $_
}

try {
# Add sysinternals tools to path
Install-ChocolateyPath $toolDir
# Add shortcut to sysinternals folder
$shortcutDir = Join-Path ${Env:TOOL_LIST_DIR} $category
$shortcut = Join-Path $shortcutDir 'sysinternals.lnk'
Expand Down

0 comments on commit 45790b3

Please sign in to comment.