Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rossarioking/bf60c19bfd7295fef878981fb1a13e84 to your computer and use it in GitHub Desktop.

Select an option

Save rossarioking/bf60c19bfd7295fef878981fb1a13e84 to your computer and use it in GitHub Desktop.

Revisions

  1. rossarioking created this gist Sep 23, 2023.
    11 changes: 11 additions & 0 deletions Powershell Script to Check for Specific Application Install.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    $applicationDisplayName = "Your Application Name" # Replace with the name of the application you want to check

    $regPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*"
    $installedApps = Get-ItemProperty -Path $regPath | Where-Object { $_.DisplayName -eq $applicationDisplayName }

    if ($installedApps) {
    Write-Host "$applicationDisplayName is installed."
    }
    else {
    Write-Host "$applicationDisplayName is not installed."
    }