With growing number of updates, keeping tack of what cumulative update's (CU) are installed on which developer machine can be painful point .. We can always go the control panel and manually get the list .. but imagine if you have stack of developer machines and you need to do this on every machine ... i know its pain full..
function SearchRegistry([string] $Name) { Write-Host "Checking Registry for $Name" $Results = Get-ChildItem -path HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ -Recurse -ErrorAction SilentlyContinue | where { $_.Name -match $Name} if($Results.Count -gt 0) { return $true } } #Adapter Pack CU3 Install if(SearchRegistry 'Biztalk Adaptor Pack 2010 CU3*') { write-host 'Software Already Installed Skipping' } else { #install the package } #HIS 2010 CU9 Install if(SearchRegistry 'CU9: Host Integration Server 2010 Hotfix (KB2897923)*') { write-host 'Software Already Installed Skipping' } else { #install the package }
Hope this help... If you have any question please feel to ping me ..
Happy Integrating ..
Happy Integrating ..
No comments:
Post a Comment