Skip to content

nirsoft_uninstall_view.ps1

Corey Watson edited this page Dec 1, 2025 · 1 revision

nirsoft_uninstall_view.ps1

Downloads NirSoft UninstallView utility and uses it to uninstall software matching a specified pattern.

Overview

This script downloads the NirSoft UninstallView utility and uses it to uninstall software matching a specified pattern using wildcard matching. The script automatically detects system architecture and downloads the appropriate version.

Purpose

Downloads NirSoft UninstallView utility and uses it to uninstall software matching a specified pattern using wildcard matching.

Prerequisites

  • Windows OS
  • Administrator privileges
  • Internet connectivity

Configuration

Required Inputs

  • $appName : Name or pattern of application to uninstall (supports wildcards)

Behavior

  1. Validates input parameters
  2. Determines system architecture (32/64-bit)
  3. Downloads appropriate UninstallView version
  4. Extracts to limehawk\nirsoft directory
  5. Runs uninstall command with wildcard matching
  6. Cleans up downloaded zip file

Security Notes

  • No secrets in logs
  • Downloads from official NirSoft website

Exit Codes

  • 0 = Success
  • 1 = Failure

Example Output

[ INPUT VALIDATION ]
--------------------------------------------------------------
Application Pattern : Adobe*
System : 64-bit
Inputs validated successfully

[ DOWNLOAD ]
--------------------------------------------------------------
Downloading UninstallView (64-bit)...
Extracting to C:\limehawk\nirsoft...
Download completed

[ UNINSTALL ]
--------------------------------------------------------------
Attempting to uninstall: Adobe*
Uninstall command executed

[ CLEANUP ]
--------------------------------------------------------------
Removing downloaded zip file...
Cleanup completed

[ FINAL STATUS ]
--------------------------------------------------------------
Result : SUCCESS
Check manually to confirm uninstallation

[ SCRIPT COMPLETED ]
--------------------------------------------------------------

Version History

  • 2024-12-01 v1.0.0 - Initial release - migrated from SuperOps

Links

Clone this wiki locally