I am checking to see what version they have based on their registry key, and the switch will apply the next update.
When I run this, it keeps looping over what version I have. It does NOT start the install process, It just checks what version I have and tells me and repeats that process.
Could it be timeing out when it tries to get the next update. Or does it even enter the switch?
Here is what I have.
Write-Host "Checking for the latest file version." do { $AdobeRegistryName = Get-ChildItem "HKLM:\software\microsoft\windows\curr
entversion\uninstall" | Where-Object {$_.Name -match "_95"} | Select-Object -Property Name | Out-String [regex]$regex = "\{.+\}_\d+" $Match = $regex.Match("$AdobeRegistryName") $AdobeRegistryValue = $Match.Value write-host $AdobeRegistryValue switch ($AdobeRegistryValue) { '{AC76BA86-1033-0000-7760-000000000004}_950' {Write-Host "In
stalling 951"|start-process -FilePath "C:\Windows\System32\msiexec.exe" -ArgumentList
"/p c:\software\AdobePatches\AdobeAcrobat951\AcrobatUpd951_all_incr.msp /qn" -wait } '{AC76BA86-1033-0000-7760-000000000004}_951' {
Write-Host "Installing 952"|start-process -FilePath "C:\Windows\System32\msiexec.exe"
-ArgumentList "/p c:\software\AdobePatches\AdobeAcrobat952\AcrobatUpd952_all_incr.msp
/qn" -wait } '{AC76BA86-1033-0000-7760-000000000004}_952' {
start-process -FilePath C:\Windows\System32\msiexec.exe -ArgumentList
"/p c:\sw\AdobePatches\AdobeAcrobat950\AcrobatUpd953_all_incr.msp /qn" -wait } '{AC76BA86-1033-0000-7760-000000000004}_953' {
start-process -FilePath C:\Windows\System32\msiexec.exe -ArgumentList
"/p c:\sw\AdobePatches\AdobeAcrobat950\AcrobatUpd954_all_incr.msp /qn" -wait } } } until($AdobeRegistryValue -match "{AC76BA86-1033-0000-7760-000000000004}_954") { Write-Verbose "Adobe Acrobat 9 Pro is already installed" }