Skip to content

Commit

Permalink
import appx module if pwsh core
Browse files Browse the repository at this point in the history
  • Loading branch information
kdpuvvadi committed Nov 23, 2022
1 parent 4804e66 commit f2dbb73
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Winget-Install-GUI.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f2dbb73

Please sign in to comment.