Skip to main content

How do I tell what Patches a customer has installed

  • November 28, 2023
  • 2 replies
  • 0 views

We need to find out if one of our customers have had certain Visual COBOL Server patches applied.  Is there a way to see that? 

Where would I look? 

2 replies

Chris Glazier
Forum|alt.badge.img+2

We need to find out if one of our customers have had certain Visual COBOL Server patches applied.  Is there a way to see that? 

Where would I look? 

If this is Windows then you could look in Control Panel->Programs and Features under Installed Updates and the PU version will show as being installed.


Neil Hayes
Forum|alt.badge.img+1
  • Participating Frequently
  • December 5, 2023

We need to find out if one of our customers have had certain Visual COBOL Server patches applied.  Is there a way to see that? 

Where would I look? 

Use PowerShell as often these updates are no longer visible depending the operating system:

function Get-MicroFocusInstallations {
    $uninstallKey = "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"
    $uninstallKeyWow64 = "HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall"

    $microFocusInstallations = @()

 

    # Check 64-bit and 32-bit registry keys for Micro Focus installations
    if (Test-Path $uninstallKeyWow64) {
        $microFocusInstallations += Get-ChildItem $uninstallKeyWow64 | Get-ItemProperty | Where-Object { $_.DisplayName -like "*Micro Focus*" }
    }
    if (Test-Path $uninstallKey) {
        $microFocusInstallations += Get-ChildItem $uninstallKey | Get-ItemProperty | Where-Object { $_.DisplayName -like "*Micro Focus*" }
    }

 

    return $microFocusInstallations
}

 

# Get Micro Focus installations
$microFocusInstallations = Get-MicroFocusInstallations

 

# Display the results
if ($microFocusInstallations.Count -gt 0) {
    Write-Host "Micro Focus installations found:"
    foreach ($installation in $microFocusInstallations) {
        Write-Host ("Name: {0}, Version: {1}, Publisher: {2}" -f $installation.DisplayName, $installation.DisplayVersion, $installation.Publisher)
    }
}
else {
    Write-Host "No Micro Focus installations found on this system."
}