File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7272 }
7373
7474 # Checking if the installed version of WinGet are the same as the latest version of WinGet
75- [version ]$vWinGet = [string ]$WinGet
75+ [version ]$vWinGet = [string ]$SysInfo . WinGet
7676 [version ]$vGitHub = [string ]$GitHubInfo.Tag
7777
78- if ([Version ]$vWinGet -lt [Version ]$vGitHub ) {
78+ if ([Version ]$vWinGet -lt [Version ]$vGitHub -or $WinGet -like " 1.19.3531.0 " ) {
7979 Write-Output " WinGet has a newer version $ ( $GitHubInfo.Tag ) , downloading and installing it..."
8080 Invoke-WebRequest - UseBasicParsing - Uri $GitHubInfo.DownloadUrl - OutFile $GitHubInfo.OutFile
8181
Original file line number Diff line number Diff line change @@ -179,10 +179,10 @@ Function Confirm-RSWinGet {
179179 }
180180
181181 # Checking if the installed version of WinGet are the same as the latest version of WinGet
182- [version ]$vWinGet = [string ]$WinGet
182+ [version ]$vWinGet = [string ]$SysInfo . WinGet
183183 [version ]$vGitHub = [string ]$GitHubInfo.Tag
184184
185- if ([Version ]$vWinGet -lt [Version ]$vGitHub ) {
185+ if ([Version ]$vWinGet -lt [Version ]$vGitHub -or $WinGet -like " 1.19.3531.0 " ) {
186186 Write-Output " WinGet has a newer version $ ( $GitHubInfo.Tag ) , downloading and installing it..."
187187 Invoke-WebRequest - UseBasicParsing - Uri $GitHubInfo.DownloadUrl - OutFile $GitHubInfo.OutFile
188188
You can’t perform that action at this time.
0 commit comments