Skip to content

Commit

Permalink
fix param bug with vm-uninstall-with-uninstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
emtuls committed Apr 16, 2024
1 parent d30b404 commit 72e9e5b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/common.vm/common.vm.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>common.vm</id>
<version>0.0.0.20240412</version>
<version>0.0.0.20240416</version>
<description>Common libraries for VM-packages</description>
<authors>Mandiant</authors>
</metadata>
Expand Down
4 changes: 2 additions & 2 deletions packages/common.vm/tools/vm.common/vm.common.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -639,10 +639,10 @@ function VM-Uninstall-With-Uninstaller {
[string] $toolName,
[Parameter(Mandatory=$true, Position=1)]
[string] $category,
[Parameter(Mandatory=$true, Position=1)]
[Parameter(Mandatory=$true, Position=2)]
[ValidateSet("EXE", "MSI")]
[string] $fileType,
[Parameter(Mandatory=$true, Position=2)]
[Parameter(Mandatory=$true, Position=3)]
# Some general silent args:
# $silentArgs = '/qn /norestart' # MSI
# $silentArgs = '/S' # NSIS
Expand Down
2 changes: 1 addition & 1 deletion packages/map.vm/map.vm.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>map.vm</id>
<version>0.0.0.20240410</version>
<version>0.0.0.20240416</version>
<authors>David Zimmer</authors>
<description>Handful of small utility type applications useful for analyzing malicious code.</description>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion packages/map.vm/tools/chocolateyuninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ $category = 'Utilities'
VM-Remove-Tool-Shortcut $toolName $category

# Manually silently uninstall
VM-Uninstall-With-Uninstaller "Malcode Analyst Pack *" "EXE" "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-"
VM-Uninstall-With-Uninstaller "Malcode Analyst Pack *" "$category" "EXE" "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-"

0 comments on commit 72e9e5b

Please sign in to comment.