Citrix Version Check.ps1
#Citrix Version Wanted
#
#----------
#WORKFLOW
#------------
#Check location, clear/delete
#Download correct version to temp
#run script to detect/uninstall old version, then run script to install
#
#
#
#
#
#
#
#
$wantedver = "
22.6.0.61
"
$citrixver = Get-childitem "HKLM:\SOFTWARE\WOW6432Node\Citrix\InstallDetect\" | Get-itemProperty | select DisplayVersion | ft -HideTableHeaders | Out-String
if ($citrixver -ne $wantedver)
{
$title = 'Wrong Version of Citrix installed!'
$question = 'The correct version will be installed now, Are you sure you want to proceed?'
$choices = '&Yes', '&No'
$decision = $Host.UI.PromptForChoice($title, $question, $choices, 1)
if ($decision -eq 0) {
Write-Host 'confirmed'
C:\temp\CurrentCitrixWorkspaceApp.exe /silent /uninstall
} else {
Write-Host 'cancelled'
}
}
#Download correct version
# $URL = "http://files.thecartwrights.nz/share/Whl3ekUX/CitrixWorkspaceApp LTSR 2201-1.exe"
# $DLPath = "C:\temp"
# (New-Object System.Net.WebClient).DownloadFile($URL, $Path)
No comments to display
No comments to display