From ba08c9f000d76754c400b0000989c5e81cd3bef7 Mon Sep 17 00:00:00 2001 From: d35ha Date: Tue, 11 Jun 2024 09:19:26 +0000 Subject: [PATCH] Pass the missing category argument to VM-Uninstall-With-Uninstaller --- packages/7zip-15-05.vm/tools/chocolateyuninstall.ps1 | 2 +- packages/explorersuite.vm/tools/chocolateyuninstall.ps1 | 2 +- packages/metasploit.vm/tools/chocolateyuninstall.ps1 | 2 +- packages/nmap.vm/tools/chocolateyuninstall.ps1 | 2 +- packages/npcap.vm/tools/chocolateyuninstall.ps1 | 2 +- packages/vbdec.vm/tools/chocolateyuninstall.ps1 | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/7zip-15-05.vm/tools/chocolateyuninstall.ps1 b/packages/7zip-15-05.vm/tools/chocolateyuninstall.ps1 index 93621f917..cc36a76a8 100644 --- a/packages/7zip-15-05.vm/tools/chocolateyuninstall.ps1 +++ b/packages/7zip-15-05.vm/tools/chocolateyuninstall.ps1 @@ -7,7 +7,7 @@ $category = 'Productivity Tools' VM-Uninstall $toolName $category # Manually silently uninstall -VM-Uninstall-With-Uninstaller "7-Zip 15.05*" "EXE" "/S" +VM-Uninstall-With-Uninstaller "7-Zip 15.05*" $category "EXE" "/S" $extensions = @(".7z", ".bzip2", ".gzip", ".tar", ".wim", ".xz", ".txz", ".zip", ".rar") foreach ($extension in $extensions) { diff --git a/packages/explorersuite.vm/tools/chocolateyuninstall.ps1 b/packages/explorersuite.vm/tools/chocolateyuninstall.ps1 index d27127a3b..8d359ed88 100644 --- a/packages/explorersuite.vm/tools/chocolateyuninstall.ps1 +++ b/packages/explorersuite.vm/tools/chocolateyuninstall.ps1 @@ -9,4 +9,4 @@ foreach ($subtoolName in $subtoolNames) { VM-Remove-From-Right-Click-Menu 'CFF explorer' -VM-Uninstall-With-Uninstaller "Explorer Suite IV" "EXE" "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-" +VM-Uninstall-With-Uninstaller "Explorer Suite IV" $category "EXE" "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-" diff --git a/packages/metasploit.vm/tools/chocolateyuninstall.ps1 b/packages/metasploit.vm/tools/chocolateyuninstall.ps1 index fe77a7b00..4eb9ffc85 100644 --- a/packages/metasploit.vm/tools/chocolateyuninstall.ps1 +++ b/packages/metasploit.vm/tools/chocolateyuninstall.ps1 @@ -7,7 +7,7 @@ $category = 'Command & Control' VM-Uninstall $toolName $category # Silently uninstall -VM-Uninstall-With-Uninstaller $toolName "MSI" "/q /norestart" +VM-Uninstall-With-Uninstaller $toolName $category "MSI" "/q /norestart" # Remove directory, shortcut, shim VM-Uninstall $toolName $category \ No newline at end of file diff --git a/packages/nmap.vm/tools/chocolateyuninstall.ps1 b/packages/nmap.vm/tools/chocolateyuninstall.ps1 index 5c38db70e..b896ca4e0 100644 --- a/packages/nmap.vm/tools/chocolateyuninstall.ps1 +++ b/packages/nmap.vm/tools/chocolateyuninstall.ps1 @@ -18,7 +18,7 @@ try { Uninstall-BinFile -Name "zenmap" # Silently uninstall - VM-Uninstall-With-Uninstaller "Nmap*" "EXE" "/S" + VM-Uninstall-With-Uninstaller "Nmap*" $category "EXE" "/S" } catch { VM-Write-Log-Exception $_ } diff --git a/packages/npcap.vm/tools/chocolateyuninstall.ps1 b/packages/npcap.vm/tools/chocolateyuninstall.ps1 index 0b5298654..0285f54ca 100644 --- a/packages/npcap.vm/tools/chocolateyuninstall.ps1 +++ b/packages/npcap.vm/tools/chocolateyuninstall.ps1 @@ -1,5 +1,5 @@ $ErrorActionPreference = 'Continue' Import-Module vm.common -Force -DisableNameChecking -VM-Uninstall-With-Uninstaller "Npcap*" "EXE" "/S" +VM-Uninstall-With-Uninstaller "Npcap*" "" "EXE" "/S" diff --git a/packages/vbdec.vm/tools/chocolateyuninstall.ps1 b/packages/vbdec.vm/tools/chocolateyuninstall.ps1 index ff622c553..a3c704898 100644 --- a/packages/vbdec.vm/tools/chocolateyuninstall.ps1 +++ b/packages/vbdec.vm/tools/chocolateyuninstall.ps1 @@ -5,7 +5,7 @@ $toolName = 'vbdec' $category = 'Visual Basic' # Silently uninstall -VM-Uninstall-With-Uninstaller $toolName "EXE" "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-" +VM-Uninstall-With-Uninstaller $toolName $category "EXE" "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-" # Remove directory, shortcut, shim VM-Uninstall $toolName $category