winget-install.ps1

<#PSScriptInfo
 
.VERSION 1.0.2
 
.GUID 3b581edb-5d90-4fa1-ba15-4f2377275463
 
.AUTHOR asherto, 1ckov
 
.COMPANYNAME asheroto
 
.TAGS PowerShell Windows winget win get install installer fix script
 
.PROJECTURI https://github.com/asheroto/winget-installer
 
.RELEASENOTES
[Version 0.0.1] - Initial Release.
[Version 0.0.2] - Implemented function to get the latest version of Winget and its license.
[Version 0.0.3] - Signed file for PSGallery.
[Version 0.0.4] - Changed URI to grab latest release instead of releases and preleases.
[Version 0.0.5] - Updated version number of dependencies.
[Version 1.0.0] - Major refactor code, see release notes for more information.
[Version 1.0.1] - Fixed minor bug where version 2.8 was hardcoded in URL.
[Version 1.0.2] - Hardcoded UI Xaml version 2.8.4 as a failsafe in case the API fails. Improved CheckForUpdates function by converting time to local time and switching to variables. Various bug fixes.
 
#>


<#
.SYNOPSIS
    Downloads the latest version of Winget, its dependencies, and installs everything. PATH variable is adjusted after installation. Reboot required after installation.
.DESCRIPTION
    Downloads the latest version of Winget, its dependencies, and installs everything. PATH variable is adjusted after installation. Reboot required after installation.
.EXAMPLE
    Install-Winget
.NOTES
    Version : 1.0.2
    Created by : asheroto
.LINK
    Project Site: https://github.com/asheroto/winget-installer
#>


param (
    [switch]$Version,
    [switch]$Help,
    [switch]$CheckForUpdates
)

# Version
$CurrentVersion = '1.0.2'
$RepoOwner = 'asheroto'
$RepoName = 'winget-installer'

# Versions
$VCLibsVersion = "14.00"
$ProgressPreference = 'SilentlyContinue' # Suppress progress bar (makes downloading super fast)

# Check if -Version is specified
if ($Version.IsPresent) {
    $CurrentVersion
    exit 0
}

# Help
if ($Help) {
    Get-Help -Name $MyInvocation.MyCommand.Source -Full
    exit 0
}

function Check-GitHubRelease {
    param (
        [string]$Owner,
        [string]$Repo
    )
    try {
        $url = "https://api.github.com/repos/$Owner/$Repo/releases/latest"
        $response = Invoke-RestMethod -Uri $url -ErrorAction Stop

        $latestVersion = $response.tag_name
        $publishedAt = $response.published_at
        $UtcDateTimeFormat = "MM/dd/yyyy HH:mm:ss"

        # Convert UTC time string to local time
        $UtcDateTime = [DateTime]::ParseExact($publishedAt, $UtcDateTimeFormat, $null)
        $PublishedLocalDateTime = $UtcDateTime.ToLocalTime()

        [PSCustomObject]@{
            LatestVersion     = $latestVersion
            PublishedDateTime = $PublishedLocalDateTime
        }
    } catch {
        Write-Error "Unable to check for updates. Error: $_"
        exit 1
    }
}

# Check for updates
if ($CheckForUpdates) {
    $Data = Check-GitHubRelease -Owner $RepoOwner -Repo $RepoName

    if ($Data.LatestVersion -gt $CurrentVersion) {
        Write-Output "A new version of $RepoName is available.`nCurrent version: $CurrentVersion. Latest version: $($Data.LatestVersion). Published at: $($Data.PublishedDateTime)."
        Write-Output "You can download the latest version from https://github.com/$RepoOwner/$RepoName/releases"
    } else {
        Write-Output "$RepoName is up to date.`nCurrent version: $CurrentVersion. Latest version: $($Data.LatestVersion). Published at: $($Data.PublishedDateTime)."
        Write-OUtput "Repository: https://github.com/$RepoOwner/$RepoName/releases"
    }
    exit 0
}

# Get latest version of Microsoft.UI.Xaml
function Get-LatestMicrosoftUIXamlVersion {
    # Get latest version from API
    $url = "https://api.nuget.org/v3-flatcontainer/Microsoft.UI.Xaml/index.json"

    # Try to get the latest version from the API, if it fails, use the hardcoded version
    try {
        # Get the JSON from the API
        $json = Invoke-RestMethod -Method Get -Uri $url

        # Remove all versions containing "prerelease"
        $filteredVersions = $json.versions | Where-Object { $_ -notlike "*-*" }

        # Extract the versions using regular expressions
        $versions = $filteredVersions | ForEach-Object {
            if ($_ -match '(\d+\.\d+\.\d+)') {
                $matches[1]
            }
        }

        # Sort the versions array in descending order
        $sortedVersions = $versions | Sort-Object -Descending

        # Get the latest version
        $latestVersion = $sortedVersions[0]
    } catch {
        # If the API fails, use the hardcoded version
        $latestVersion = "2.8.4"
    }

    return $latestVersion
}

## KEEP THIS HERE AFTER Get-LatestMicrosoftUIXamlVersion
# Initialize Microsoft.UI.Xaml version
$MicrosoftUIXamlVersion = Get-LatestMicrosoftUIXamlVersion

# KEEP THIS HERE AFTER $MicrosoftUIXamlVersion
# URLs
$urlMicrosoftUIXaml = "https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/$MicrosoftUIXamlVersion"
$urlVCLibsx64 = "https://aka.ms/Microsoft.VCLibs.x64.$VCLibsVersion.Desktop.appx"
$urlVCLibsx86 = "https://aka.ms/Microsoft.VCLibs.x86.$VCLibsVersion.Desktop.appx"

# Adding AppxPackage and silently continue on error
function Add-AppxPackageSilently($pkg) {
    <#
        .SYNOPSIS
        Adds an AppxPackage to the system and silently continues on error.
        .EXAMPLE
        PS C:\> Add-AppxPackageSilently("https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx")
    #>

    Add-AppxPackage $pkg -ErrorAction SilentlyContinue
}

# Generates a section divider for easy reading of the output.
function Write-Section($text) {
    <#
        .SYNOPSIS
        Prints a section divider for easy reading of the output.
        .EXAMPLE
        PS C:\> Write-Section("Downloading Files...")
    #>

    Write-Output ("#" * 50)
    Write-Output "# $text"
    Write-Output ("#" * 50)
    Write-Output ""
}

function Get-NewestLink($match) {
    <#
    .SYNOPSIS
        This function fetches the newest link for a specified match from the GitHub API.
    .EXAMPLE
        Get-NewestLink("msixbundle")
    #>

    $uri = "https://api.github.com/repos/microsoft/winget-cli/releases/latest"
    Write-Verbose "[$((Get-Date).TimeofDay)] Getting information from $uri"
    $get = Invoke-RestMethod -uri $uri -Method Get -ErrorAction stop
    Write-Verbose "[$((Get-Date).TimeofDay)] getting latest release"
    $data = $get.assets | Where-Object name -Match $match
    return $data.browser_download_url
}

# Using temp directory for downloads
$tempFolder = [System.IO.Path]::GetTempPath()

# Determine architecture
$arch = if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" }

try {
    # Spacer
    Write-Output ""

    # Download XAML nupkg and extract appx file
    Write-Section("Downloading Xaml nupkg file...")
    $zipFile = Join-Path -Path $tempFolder -ChildPath "Microsoft.UI.Xaml.$MicrosoftUIXamlVersion.nupkg.zip"
    Write-Output "Downloading $urlMicrosoftUIXaml`nSaving as: $zipFile`n"
    try {
        Invoke-WebRequest -Uri $urlMicrosoftUIXaml -OutFile $zipFile
    } catch {
        Write-Warning "Failed to download $urlMicrosoftUIXaml"
        Write-Warning "Will try again using hardcoded version 2.8.4 (known good)..."
        Write-Output "Downloading:`n$urlMicrosoftUIXaml`nSaving as: $zipFile`n"
        $DownloadURL = "https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.8.4"
        Invoke-WebRequest -Uri $DownloadURL -OutFile $zipFile
    }
    $nupkgFolder = Join-Path -Path $tempFolder -ChildPath "Microsoft.UI.Xaml.$MicrosoftUIXamlVersion"
    Write-Output "Expanding: $zipFile`nInto: $nupkgFolder`n"
    Expand-Archive -Path $zipFile -DestinationPath $nupkgFolder -Force

    # Install VCLibs
    Write-Section("Downloading & installing ${arch} VCLibs...")
    $urlVCLibs = if ($arch -eq "x64") { $urlVCLibsx64 } else { $urlVCLibsx86 }
    Add-AppxPackageSilently $urlVCLibs

    # Install XAML
    Write-Section("Installing ${arch} XAML...")
    $XamlAppxPath = Join-Path -Path $nupkgFolder -ChildPath "tools\AppX\$arch\Release\Microsoft.UI.Xaml.$MicrosoftUIXamlVersion.appx"
    Add-AppxPackageSilently $XamlAppxPath

    # Download winget
    Write-Output "Retrieving download URL for winget from GitHub...`n"
    $wingetUrl = Get-NewestLink("msixbundle")
    $wingetPath = Join-Path -Path $tempFolder -ChildPath "winget.msixbundle"
    $wingetLicenseUrl = Get-NewestLink("License1.xml")
    $wingetLicensePath = Join-Path -Path $tempFolder -ChildPath "license1.xml"
    Write-Section("Downloading winget...")
    Write-Output "Downloading:`n$wingetUrl`nSaving as: $wingetPath`n"
    Invoke-WebRequest -Uri $wingetUrl -OutFile $wingetPath
    Write-Output "Downloading:`n$wingetLicenseUrl`nSaving as: $wingetLicensePath`n"
    Invoke-WebRequest -Uri $wingetLicenseUrl -OutFile $wingetLicensePath

    # Install winget
    Write-Section("Installing winget...")
    Add-AppxProvisionedPackage -Online -PackagePath $wingetPath -LicensePath $wingetLicensePath -ErrorAction SilentlyContinue | Out-Null

    # Adding WindowsApps directory to PATH variable for current user if not already present
    Write-Section("Checking and adding WindowsApps directory to PATH variable for current user if not present...")
    $path = [Environment]::GetEnvironmentVariable("PATH", "User")
    $WindowsAppsPath = [IO.Path]::Combine([Environment]::GetEnvironmentVariable("LOCALAPPDATA"), "Microsoft", "WindowsApps")
    if (!$path.Contains($WindowsAppsPath)) {
        $path = $path + ";" + $WindowsAppsPath
        [Environment]::SetEnvironmentVariable("PATH", $path, "User")
    }

    # Cleanup
    Write-Section("Cleaning up...")
    Remove-Item -Path $zipFile
    Remove-Item -Path $nupkgFolder -Recurse
    Remove-Item -Path $wingetPath
    Remove-Item -Path $wingetLicensePath

    # Finished
    Write-Section("Installation complete!")
    Write-Section("Please restart your computer to complete the installation.")

    # Spacer
    Write-Output ""
} catch {
    Write-Output "Something went wrong. Please try again or open an issue at https://github.com/asheroto/winget-install/issues"
}
# SIG # Begin signature block
# MIIpMQYJKoZIhvcNAQcCoIIpIjCCKR4CAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCp5VXoWzeusWyi
# kZ/Gg9Y8cSh/f8Q3zDNstFYlKaMgb6CCDh8wggawMIIEmKADAgECAhAIrUCyYNKc
# TJ9ezam9k67ZMA0GCSqGSIb3DQEBDAUAMGIxCzAJBgNVBAYTAlVTMRUwEwYDVQQK
# EwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20xITAfBgNV
# BAMTGERpZ2lDZXJ0IFRydXN0ZWQgUm9vdCBHNDAeFw0yMTA0MjkwMDAwMDBaFw0z
# NjA0MjgyMzU5NTlaMGkxCzAJBgNVBAYTAlVT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