<# .SYNOPSIS Install and configure Winget-AutoUpdate .DESCRIPTION This script will: - Install Winget if not present - Install Winget-AutoUpdate to get apps daily updated - Install apps with Winget from a custom list file (apps.txt) or directly from popped up default list. #> <# 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:WAUConfiguratorVersion = Get-Content "$PSScriptRoot\Winget-AutoUpdate\Version.txt" <# FUNCTIONS #> . "$PSScriptRoot\Winget-AutoUpdate\functions\Update-WinGet.ps1" . "$PSScriptRoot\Winget-AutoUpdate\functions\Get-WingetCmd.ps1" #Function to start or update popup Function Start-PopUp ($Message) { if (!$PopUpWindow) { #Create window $inputXML = @" "@ [xml]$XAML = ($inputXML -replace 'mc:Ignorable="d"', '' -replace "x:N", 'N' -replace '^