minor changes
parent
2ad831a2df
commit
fb73eee55d
|
@ -2,5 +2,4 @@ function Get-WAUCurrentVersion{
|
||||||
#Get current installed version
|
#Get current installed version
|
||||||
[xml]$About = Get-Content "$WorkingDir\config\about.xml" -Encoding UTF8 -ErrorAction SilentlyContinue
|
[xml]$About = Get-Content "$WorkingDir\config\about.xml" -Encoding UTF8 -ErrorAction SilentlyContinue
|
||||||
$Script:WAUCurrentVersion = $About.app.version
|
$Script:WAUCurrentVersion = $About.app.version
|
||||||
Write-Log "WAU Current version : $WAUCurrentVersion"
|
|
||||||
}
|
}
|
|
@ -27,8 +27,12 @@ if (Test-Network){
|
||||||
#Compare
|
#Compare
|
||||||
if ($WAUAvailableVersion -gt $WAUCurrentVersion){
|
if ($WAUAvailableVersion -gt $WAUCurrentVersion){
|
||||||
#If new version is available, update it
|
#If new version is available, update it
|
||||||
|
Write-Log "WAU Current version: $WAUCurrentVersion - Available version: $WAUAvailableVersion" "Yellow"
|
||||||
Update-WAU
|
Update-WAU
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
Write-Log "WAU Current version : $WAUCurrentVersion - Up to date." "Green"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#Get exclude apps list
|
#Get exclude apps list
|
||||||
|
|
Loading…
Reference in New Issue