diff --git a/Sources/Winget-Install-GUI.ps1 b/Sources/Winget-Install-GUI.ps1 index 9e6fe86..df0b18c 100644 --- a/Sources/Winget-Install-GUI.ps1 +++ b/Sources/Winget-Install-GUI.ps1 @@ -12,6 +12,11 @@ https://github.com/Romanitho/Winget-AllinOne <# APP INFO #> +# import Appx module if the powershell version is 7/core +if ( $psversionTable.PSEdition -eq "core" ) { + import-Module -name Appx -UseWIndowsPowershell -WarningAction:SilentlyContinue +} + $Script:WiGuiVersion = "1.8.0" $Script:WAUGithubLink = "https://github.com/Romanitho/Winget-AutoUpdate/archive/refs/tags/v1.15.0.zip" $Script:WIGithubLink = "https://github.com/Romanitho/Winget-Install/archive/refs/tags/v1.8.1.zip"