diff --git a/packages/binaryninja-free.vm/binaryninja-free.vm.nuspec b/packages/binaryninja-free.vm/binaryninja-free.vm.nuspec new file mode 100644 index 00000000..50c56570 --- /dev/null +++ b/packages/binaryninja-free.vm/binaryninja-free.vm.nuspec @@ -0,0 +1,12 @@ + + + + binaryninja-free.vm + 4.2 + Vector 35, Inc. + Binary Ninja is an interactive decompiler, disassembler, debugger, and binary analysis platform built by reverse engineers, for reverse engineers. + + + + + diff --git a/packages/binaryninja-free.vm/tools/chocolateyinstall.ps1 b/packages/binaryninja-free.vm/tools/chocolateyinstall.ps1 new file mode 100644 index 00000000..33ab3e00 --- /dev/null +++ b/packages/binaryninja-free.vm/tools/chocolateyinstall.ps1 @@ -0,0 +1,29 @@ +$ErrorActionPreference = 'Stop' +Import-Module vm.common -Force -DisableNameChecking + +try { + $toolName = 'BinaryNinja Free' + $category = 'Disassemblers' + + $packageArgs = @{ + packageName = ${Env:ChocolateyPackageName} + fileType = 'exe' + silentArgs = '/S /ALLUSERS=1' + url = 'https://cdn.binary.ninja/installers/binaryninja_free_win64.exe' + checksum = '426aa8219415a64df90562274ae7e420471934c60f3a19c459e982467469cf55' + checksumType = 'sha256' + } + + Install-ChocolateyPackage @packageArgs + + $toolDir = Join-Path ${Env:ProgramFiles} "Vector35" -Resolve + $toolDir = Join-Path $toolDir "BinaryNinja" -Resolve + $executablePath = Join-Path $toolDir "binaryninja.exe" -Resolve + + Install-BinFile -Name $toolname -Path $exe + $executableIcon = Join-Path $toolDir "icon.ico" -Resolve + VM-Install-Shortcut -toolName "binja" -category $category -executablePath $executablePath -IconLocation $executableIcon + +} catch { + VM-Write-Log-Exception $_ +} diff --git a/packages/binaryninja-free.vm/tools/chocolateyuninstall.ps1 b/packages/binaryninja-free.vm/tools/chocolateyuninstall.ps1 new file mode 100644 index 00000000..10b00ae6 --- /dev/null +++ b/packages/binaryninja-free.vm/tools/chocolateyuninstall.ps1 @@ -0,0 +1,10 @@ +$ErrorActionPreference = 'Continue' +Import-Module vm.common -Force -DisableNameChecking + +$toolName = 'BinaryNinja Free' +$category = 'Disassemblers' +VM-Remove-Tool-Shortcut $toolName $category + +Uninstall-BinFile -Name $toolName + +VM-Uninstall-With-Uninstaller "Binary Ninja*" $category "EXE" "/S /ALLUSERS=1" \ No newline at end of file