#madeBy krolaki.eu
#-------------[deklarations]--------------------------
#params
$registryPath='HKLM:\SOFTWARE\ESET\ESET Security\CurrentVersion\Info\'
$winscpActualVersion='7.3.2041.0'
$winscpVersion='0.0.0.0'
#-------------[functions]--------------------------
function getWinscpVersion {
if(Test-Path $registryPath) {
return $winscpVersion=(Get-ItemProperty -Path $registryPath).ProductVersion
}
}
$winscpVersion = getWinscpVersion
if($winscpActualVersion -le $winscpVersion) {
break
} else {
\\fs\deploy\winSCP\WinSCP-5.17.10.exe /ALLUSERS /VERYSILENT
}