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

9 lines
275 B
PowerShell

#Function to get current WAU installed version
function Get-WAUCurrentVersion{
#Get current installed version
[xml]$About = Get-Content "$WorkingDir\config\about.xml" -Encoding UTF8 -ErrorAction SilentlyContinue
$Script:WAUCurrentVersion = $About.app.version
}