Skip to content

Commit

Permalink
[sysinternals.vm] Ensure strings is high in PATH
Browse files Browse the repository at this point in the history
I expect the strings from sysinternals to be the first one in the PATH
(and not others like the ones in DidierStevensSuite). Use
`Install-BinFile` to creates a shim for `strings`.exe` in
`$env:ChocolateyInstall\bin` that we ensure is on the top of the PATH
after installing Python.
  • Loading branch information
Ana06 committed Jul 17, 2024
1 parent 5efa360 commit 2b87a5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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.20240306</version>
<version>0.0.0.20240717</version>
<authors>Mark Russinovich, Bryce Cogswell</authors>
<description>Sysinternals suite.</description>
<dependencies>
Expand Down
5 changes: 5 additions & 0 deletions packages/sysinternals.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ try {
try {
# Add sysinternals tools to path
Install-ChocolateyPath $toolDir

# Ensure strings is high in PATH
$executablePath = Join-Path $toolDir "strings.exe" -Resolve
Install-BinFile -Name strings -Path $executablePath

# 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 2b87a5d

Please sign in to comment.