diff --git a/FFUDevelopment/FFUUI.Core/FFUUI.Core.Winget.psm1 b/FFUDevelopment/FFUUI.Core/FFUUI.Core.Winget.psm1 index 7a8c8f9..a7abc8b 100644 --- a/FFUDevelopment/FFUUI.Core/FFUUI.Core.Winget.psm1 +++ b/FFUDevelopment/FFUUI.Core/FFUUI.Core.Winget.psm1 @@ -323,7 +323,7 @@ function Confirm-WingetInstallationUI { # Initial Check WriteLog "Confirm-WingetInstallationUI: Starting checks..." $cliStatus = Test-WingetCLI - $module = Get-InstalledModule -Name Microsoft.WinGet.Client -ErrorAction SilentlyContinue + $module = Import-Module -Name Microsoft.WinGet.Client -ErrorAction SilentlyContinue -PassThru $result.CliVersion = $cliStatus.Version $result.ModuleVersion = if ($null -ne $module) { $module.Version.ToString() } else { "Not installed" }