Skip to content

Commit

Permalink
Merge pull request #741 from mandiant/MalwareMechanic-patch-1
Browse files Browse the repository at this point in the history
Update Resource Hacker
  • Loading branch information
Ana06 authored Apr 25, 2024
2 parents 68f716d + f475b32 commit 995dd18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/resourcehacker.vm/resourcehacker.vm.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>resourcehacker.vm</id>
<version>5.1.8</version>
<version>0.0.0.20240423</version>
<authors>Angus Johnson</authors>
<description>Resource Hacker is a resource editor for 32bit and 64bit Windows applications.</description>
<dependencies>
<dependency id="common.vm" />
<dependency id="resourcehacker.portable" version="[5.1.8]" />
<dependency id="resourcehacker.portable" version="[5.2.7]" />
</dependencies>
</metadata>
</package>
8 changes: 2 additions & 6 deletions packages/resourcehacker.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ Import-Module vm.common -Force -DisableNameChecking
try {
$toolName = 'Resource Hacker'
$category = 'Utilities'
$shimPath = '\lib\resourcehacker.portable\v5.1.8\ResourceHacker.exe'
$shimPath = '\bin\ResourceHacker.exe'

$shortcutDir = Join-Path ${Env:TOOL_LIST_DIR} $category
$shortcut = Join-Path $shortcutDir "$toolName.lnk"
$executablePath = Join-Path ${Env:ChocolateyInstall} $shimPath -Resolve
Install-BinFile -Name $toolName -Path $executablePath
Install-ChocolateyShortcut -shortcutFilePath $shortcut -targetPath $executablePath -RunAsAdmin
VM-Assert-Path $shortcut
VM-Install-Shortcut $toolName $category $executablePath -RunAsAdmin
} catch {
VM-Write-Log-Exception $_
}

0 comments on commit 995dd18

Please sign in to comment.