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

9 lines
275 B
PowerShell
Raw Normal View History

2022-04-13 16:50:06 +00:00
#Function to get current WAU installed version
2022-03-22 13:39:01 +00:00
function Get-WAUCurrentVersion{
2022-04-13 16:50:06 +00:00
2022-03-22 13:39:01 +00:00
#Get current installed version
[xml]$About = Get-Content "$WorkingDir\config\about.xml" -Encoding UTF8 -ErrorAction SilentlyContinue
$Script:WAUCurrentVersion = $About.app.version
2022-04-13 16:50:06 +00:00
2022-03-22 13:39:01 +00:00
}