minor changes

pull/35/head
Romain 2022-03-26 22:48:56 +01:00
parent 2ad831a2df
commit fb73eee55d
2 changed files with 4 additions and 1 deletions

View File

@ -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"
} }

View File

@ -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