wingetautoupdate/Winget-AutoUpdate/functions/Get-WAUCurrentVersion.ps1

6 lines
282 B
PowerShell
Raw Normal View History

2022-03-22 13:39:01 +00:00
function Get-WAUCurrentVersion{
#Get current installed version
[xml]$About = Get-Content "$WorkingDir\config\about.xml" -Encoding UTF8 -ErrorAction SilentlyContinue
$Script:WAUCurrentVersion = $About.app.version
2022-03-26 21:27:11 +00:00
Write-Log "WAU Current version : $WAUCurrentVersion"
2022-03-22 13:39:01 +00:00
}