diff --git a/packages/imhex.vm/imhex.vm.nuspec b/packages/imhex.vm/imhex.vm.nuspec new file mode 100644 index 000000000..8283426ae --- /dev/null +++ b/packages/imhex.vm/imhex.vm.nuspec @@ -0,0 +1,13 @@ + + + + imhex.vm + 1.31.0 + WerWolv + A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM. + + + + + + \ No newline at end of file diff --git a/packages/imhex.vm/tools/chocolateyinstall.ps1 b/packages/imhex.vm/tools/chocolateyinstall.ps1 new file mode 100644 index 000000000..765f1abca --- /dev/null +++ b/packages/imhex.vm/tools/chocolateyinstall.ps1 @@ -0,0 +1,17 @@ +$ErrorActionPreference = 'Stop' +Import-Module vm.common -Force -DisableNameChecking + +try { + $toolName = 'ImHex' + $category = 'Hex Editors' + + $shortcutDir = Join-Path ${Env:TOOL_LIST_DIR} $category + $shortcut = Join-Path $shortcutDir "$toolName.lnk" + $executablePath = Join-Path ${Env:ChocolateyInstall} "bin\imhex.exe" -Resolve + Install-ChocolateyShortcut -shortcutFilePath $shortcut -targetPath $executablePath + VM-Assert-Path $shortcut + + VM-Add-To-Right-Click-Menu $toolName $toolName "`"$executablePath`" `"%1`"" "$executablePath" +} catch { + VM-Write-Log-Exception $_ +} \ No newline at end of file diff --git a/packages/imhex.vm/tools/chocolateyuninstall.ps1 b/packages/imhex.vm/tools/chocolateyuninstall.ps1 new file mode 100644 index 000000000..499e5cf17 --- /dev/null +++ b/packages/imhex.vm/tools/chocolateyuninstall.ps1 @@ -0,0 +1,8 @@ +$ErrorActionPreference = 'Continue' +Import-Module vm.common -Force -DisableNameChecking + +$toolName = 'ImHex' +$category = 'Hex Editors' + +VM-Remove-Tool-Shortcut $toolName $category +VM-Remove-From-Right-Click-Menu $toolName \ No newline at end of file