Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c461d41

Browse files
committedJan 6, 2025·
create Binary Ninja package
1 parent 3f5fdf0 commit c461d41

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
3+
<metadata>
4+
<id>binaryninja-free.vm</id>
5+
<version>4.2</version>
6+
<authors>Vector 35, Inc.</authors>
7+
<description>Binary Ninja is an interactive decompiler, disassembler, debugger, and binary analysis platform built by reverse engineers, for reverse engineers.</description>
8+
<dependencies>
9+
<dependency id="common.vm" />
10+
</dependencies>
11+
</metadata>
12+
</package>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
$ErrorActionPreference = 'Stop'
2+
Import-Module vm.common -Force -DisableNameChecking
3+
4+
try {
5+
$toolName = 'BinaryNinja Free'
6+
$category = 'Disassemblers'
7+
8+
$packageArgs = @{
9+
packageName = ${Env:ChocolateyPackageName}
10+
fileType = 'exe'
11+
silentArgs = '/S /ALLUSERS=1'
12+
url = 'https://cdn.binary.ninja/installers/binaryninja_free_win64.exe'
13+
checksum = '426aa8219415a64df90562274ae7e420471934c60f3a19c459e982467469cf55'
14+
checksumType = 'sha256'
15+
}
16+
17+
Install-ChocolateyPackage @packageArgs
18+
19+
$toolDir = Join-Path ${Env:ProgramFiles} "Vector35" -Resolve
20+
$toolDir = Join-Path $toolDir "BinaryNinja" -Resolve
21+
$executablePath = Join-Path $toolDir "binaryninja.exe" -Resolve
22+
23+
Install-BinFile -Name $toolname -Path $executablePath
24+
$executableIcon = Join-Path $toolDir "icon.ico" -Resolve
25+
VM-Install-Shortcut -toolName "binja" -category $category -executablePath $executablePath -IconLocation $executableIcon
26+
27+
} catch {
28+
VM-Write-Log-Exception $_
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
$ErrorActionPreference = 'Continue'
2+
Import-Module vm.common -Force -DisableNameChecking
3+
4+
$toolName = 'BinaryNinja Free'
5+
$category = 'Disassemblers'
6+
VM-Remove-Tool-Shortcut $toolName $category
7+
8+
Uninstall-BinFile -Name $toolName
9+
10+
VM-Uninstall-With-Uninstaller "Binary Ninja*" $category "EXE" "/S /ALLUSERS=1"

0 commit comments

Comments
 (0)
Please sign in to comment.