Skip to content

Commit

Permalink
Merge pull request #1184 from mandiant/package-vb-decompiler-lite
Browse files Browse the repository at this point in the history
🤖 Add vb-decompiler-lite.vm
  • Loading branch information
Ana06 authored Dec 11, 2024
2 parents 754a7a1 + 9dd5665 commit c0a096b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/vb-decompiler-lite.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$ErrorActionPreference = 'Stop'
Import-Module vm.common -Force -DisableNameChecking

$toolName = 'VB Decompiler'
$category = 'Visual Basic'

$zipUrl = 'https://www.vb-decompiler.org/files/vb_decompiler_lite.zip'
$zipSha256 = '099760dcae9daa4c83885a3817cf6f17442ce709de0105993bfbb4f17db87e62'

$toolDir = Join-Path ${Env:RAW_TOOLS_DIR} $toolName
$executablePath = (Join-Path $toolDir "$toolName.exe")
VM-Install-With-Installer $toolName $category "EXE" "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /Dir=`"$($toolDir)`"" $executablePath $zipUrl -sha256 $zipSha256
9 changes: 9 additions & 0 deletions packages/vb-decompiler-lite.vm/tools/chocolateyuninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
$ErrorActionPreference = 'Continue'
Import-Module vm.common -Force -DisableNameChecking

$toolName = 'VB Decompiler'
$category = 'Visual Basic'

VM-Uninstall-With-Uninstaller $toolName $category "EXE" "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-"

VM-Uninstall $toolName $category
12 changes: 12 additions & 0 deletions packages/vb-decompiler-lite.vm/vb-decompiler-lite.vm.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>vb-decompiler-lite.vm</id>
<version>12.4</version>
<authors>DotFix Software</authors>
<description>Visual Basic decompiler</description>
<dependencies>
<dependency id="common.vm" version="0.0.0.20240509" />
</dependencies>
</metadata>
</package>

0 comments on commit c0a096b

Please sign in to comment.