Skip to content

Commit 406be93

Browse files
author
Robin Stolpe
committed
once again fixed version handler
1 parent 7939b9e commit 406be93

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

.src/private/function/Get-RSInstallInfo.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
# Collects everything in pscustomobject to get easier access to the information
5555
[System.Object]$SysInfo = [PSCustomObject]@{
5656
VCLibs = $(Get-AppxPackage -Name "Microsoft.VCLibs.140.00" -AllUsers | Where-Object { $_.Architecture -eq $Arch })
57-
WinGet = $(try { (Get-AppxPackage -AllUsers | Where-Object { $_.name -like "Microsoft.DesktopAppInstaller" } | Sort-Object { $_.Version -as [version] } -Descending | Select-Object Version -First 1).version } catch { "no" })
57+
WinGet = $(try { (Get-AppxPackage -AllUsers | Where-Object { $_.name -like "Microsoft.DesktopAppInstaller" } | Sort-Object { $_.Version -as [version] } -Descending | Select-Object Version -First 1).version } catch { "0.0.0.0" })
5858
VisualCRedistUrl = $VisualCRedistUrl
59-
$VCLibsUrl = $VCLibsUrl
59+
VCLibsUrl = $VCLibsUrl
6060
Arch = $Arch
6161
}
6262

.src/public/function/Update-RSWinSoftware.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
[System.Object]$SysInfo = Get-RSInstallInfo
6767

6868
# If user has choosen to skip the WinGet version don't check, if WinGet is not installed this will install WinGet anyway.
69-
if ($SkipVersionCheck -eq $false -or $SysInfo.WinGet -eq "No") {
69+
if ($SkipVersionCheck -eq $false -or $SysInfo.WinGet -eq "0.0.0.0") {
7070
Confirm-RSWinGet -GitHubUrl $GitHubUrl -GithubHeaders $GithubHeaders -WinGet $SysInfo.WinGet
7171
}
7272

RSModuleBuilder.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[string]$apiKey = ""
1010
#
1111
# Changes on every build
12-
[string]$Version = "0.1.0"
12+
[string]$Version = "0.1.1"
1313
[string]$PowerShellVersion = "5.1"
1414
[string]$Tags = '"windows", "maintenance", "autoupdate", "autoupdate-script", "psmodule", "update", "winget", "windows10", "windows11"'
1515
[string]$ProcessorArchitecture = ""

WinSoftwareUpdate/WinSoftwareUpdate.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
RootModule = '.\WinSoftwareUpdate.psm1'
3737

3838
# Version number of this module.
39-
ModuleVersion = '0.1.0'
39+
ModuleVersion = '0.1.1'
4040

4141
# Supported PSEditions
4242
# CompatiblePSEditions = @()

WinSoftwareUpdate/WinSoftwareUpdate.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Function Update-RSWinSoftware {
8989
[System.Object]$SysInfo = Get-RSInstallInfo
9090

9191
# If user has choosen to skip the WinGet version don't check, if WinGet is not installed this will install WinGet anyway.
92-
if ($SkipVersionCheck -eq $false -or $SysInfo.WinGet -eq "No") {
92+
if ($SkipVersionCheck -eq $false -or $SysInfo.WinGet -eq "0.0.0.0") {
9393
Confirm-RSWinGet -GitHubUrl $GitHubUrl -GithubHeaders $GithubHeaders -WinGet $SysInfo.WinGet
9494
}
9595

@@ -245,9 +245,9 @@ Function Get-RSInstallInfo {
245245
# Collects everything in pscustomobject to get easier access to the information
246246
[System.Object]$SysInfo = [PSCustomObject]@{
247247
VCLibs = $(Get-AppxPackage -Name "Microsoft.VCLibs.140.00" -AllUsers | Where-Object { $_.Architecture -eq $Arch })
248-
WinGet = $(try { (Get-AppxPackage -AllUsers | Where-Object { $_.name -like "Microsoft.DesktopAppInstaller" } | Sort-Object { $_.Version -as [version] } -Descending | Select-Object Version -First 1).version } catch { "no" })
248+
WinGet = $(try { (Get-AppxPackage -AllUsers | Where-Object { $_.name -like "Microsoft.DesktopAppInstaller" } | Sort-Object { $_.Version -as [version] } -Descending | Select-Object Version -First 1).version } catch { "0.0.0.0" })
249249
VisualCRedistUrl = $VisualCRedistUrl
250-
$VCLibsUrl = $VCLibsUrl
250+
VCLibsUrl = $VCLibsUrl
251251
Arch = $Arch
252252
}
253253

0 commit comments

Comments
 (0)