-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #700 from d35ha/ImHex
Add the ImHex.vm package
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> | ||
<metadata> | ||
<id>imhex.vm</id> | ||
<version>1.31.0</version> | ||
<authors>WerWolv</authors> | ||
<description>A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.</description> | ||
<dependencies> | ||
<dependency id="common.vm" /> | ||
<dependency id="imhex" version="[1.31.0]" /> | ||
</dependencies> | ||
</metadata> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 $_ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |