Minor fixes

pull/23/head v1.5.2
Romain 2022-03-07 12:40:55 +01:00 committed by GitHub
parent d90e0413fa
commit 061e43f965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -235,7 +235,7 @@ function Start-WAUUpdateCheck{
#Get current installed version
[xml]$About = Get-Content "$WorkingDir\config\about.xml" -Encoding UTF8 -ErrorAction SilentlyContinue
[version]$CurrentVersion = $About.app.version
[version]$Script:CurrentVersion = $About.app.version
#Check if AutoUpdate is enabled
if ($AutoUpdateStatus -eq $false){
@ -312,7 +312,8 @@ function Update-WAU{
Start-NotifTask $Title $Message $MessageType $Balise
#Rerun with newer version
Get-ScheduledTask -TaskName "Winget-AutoUpdate" -ErrorAction SilentlyContinue | Start-ScheduledTask -ErrorAction SilentlyContinue
Write-Log "Re-run WAU"
Start-Process powershell -ArgumentList "-ExecutionPolicy Bypass -Command `"$WorkingDir\winget-upgrade`""
exit
}
catch{