From f475b32321b6b2bd9c9777b0452f8cb5a96a0963 Mon Sep 17 00:00:00 2001 From: MalwareMechanic Date: Fri, 10 Nov 2023 09:54:50 -0500 Subject: [PATCH] Update resource hacker --- packages/resourcehacker.vm/resourcehacker.vm.nuspec | 4 ++-- packages/resourcehacker.vm/tools/chocolateyinstall.ps1 | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/resourcehacker.vm/resourcehacker.vm.nuspec b/packages/resourcehacker.vm/resourcehacker.vm.nuspec index 182f25354..7fc0542d8 100644 --- a/packages/resourcehacker.vm/resourcehacker.vm.nuspec +++ b/packages/resourcehacker.vm/resourcehacker.vm.nuspec @@ -2,12 +2,12 @@ resourcehacker.vm - 5.1.8 + 0.0.0.20240423 Angus Johnson Resource Hacker is a resource editor for 32bit and 64bit Windows applications. - + diff --git a/packages/resourcehacker.vm/tools/chocolateyinstall.ps1 b/packages/resourcehacker.vm/tools/chocolateyinstall.ps1 index 0ad10dd6c..3ae469f05 100644 --- a/packages/resourcehacker.vm/tools/chocolateyinstall.ps1 +++ b/packages/resourcehacker.vm/tools/chocolateyinstall.ps1 @@ -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 $_ }