[CmdletBinding()] param([string]$Channel, [switch]$MigrateGlobalTool) $script:LabelWidth = 15 $script:Frames = [char[]](0x280b, 0x2819, 0x2839, 0x2838, 0x283c, 0x2834, 0x2826, 0x2827, 0x2807, 0x280f) $script:Aside = '.current-previous' function Test-PlainTerminal { return $env:TERM -eq 'dumb' -or [bool]$env:CI -or [bool]$env:TF_BUILD } function Test-StyledStream([bool]$Redirected) { if ($Redirected -or (Test-PlainTerminal)) { return $false } try { return [bool]$Host.UI.SupportsVirtualTerminal } catch { return $false } } function Get-InstallerStyle([switch]$Output) { $redirected = [Console]::IsErrorRedirected if ($Output) { $redirected = [Console]::IsOutputRedirected } if (Test-StyledStream $redirected) { return @{ Styled = $true; Color = -not $env:NO_COLOR; Ok = [string][char]0x2713; Bad = [string][char]0x00d7 Operation = [string][char]0x25d6; Dot = [string][char]0x00b7; Arrow = [string][char]0x2192 } } return @{ Styled = $false; Color = $false; Ok = '+'; Bad = 'x'; Operation = '>'; Dot = '-'; Arrow = '->' } } function Test-LiveError { return (Get-InstallerStyle).Styled } function Format-Paint([hashtable]$Style, [string]$Sgr, [string]$Text) { if (-not $Style.Color -or -not $Text) { return $Text } $escape = [char]27 return "$escape[$($Sgr)m$Text$escape[0m" } function Write-InstallerLine([string]$Line) { try { [Console]::Error.WriteLine($Line) } catch [IO.IOException] { return } } function Write-InstallerHeading([string]$Title, [string]$Meta) { $style = Get-InstallerStyle $line = (Format-Paint -Style $style '34' $style.Operation) + ' ' + (Format-Paint -Style $style '1' $Title) if ($Meta) { $line += Format-Paint -Style $style '2' " $($style.Dot) $Meta" } Write-InstallerLine $line } function Write-InstallerRow([string]$State, [string]$Label, [string]$Detail) { $style = Get-InstallerStyle switch ($State) { 'complete' { $glyph = Format-Paint -Style $style '32' $style.Ok } 'failed' { $glyph = Format-Paint -Style $style '31' $style.Bad } default { $glyph = Format-Paint -Style $style '33' '!' } } if ($Detail) { $Label = $Label.PadRight($script:LabelWidth) + (Format-Paint -Style $style '2' $Detail) } Write-InstallerLine " $glyph $Label" } function Write-InstallerNotice([string]$Text) { $style = Get-InstallerStyle Write-InstallerLine (' ' + (Format-Paint -Style $style '2' "$($style.Dot) $Text")) } function Write-InstallerError([string]$Text) { Write-InstallerLine (Format-Paint -Style (Get-InstallerStyle) '31' "tengella install: $Text") } function Join-InstallerDetail([string[]]$Facts) { return $Facts -join " $((Get-InstallerStyle).Dot) " } function Write-LiveRow([string]$Label, [string]$Detail, [long]$Elapsed) { $frame = $script:Frames[[int]($Elapsed / 80) % 10] try { $width = [Math]::Max(4, [Console]::WindowWidth - 1) $text = ($Label.PadRight($script:LabelWidth) + $Detail) if ($text.Length -gt $width - 4) { $text = $text.Substring(0, $width - 4) } $glyph = Format-Paint -Style (Get-InstallerStyle) '34' ([string]$frame) [Console]::Error.Write("`r $glyph " + $text.PadRight($width - 4)) return $width } catch [IO.IOException] { return 0 } } function Clear-LiveRow([int]$Width) { if ($Width -le 0) { return } try { [Console]::Error.Write("`r" + (' ' * $Width) + "`r") } catch [IO.IOException] { return } } function Test-Interactive { return -not [Console]::IsInputRedirected -and -not [Console]::IsErrorRedirected -and [Environment]::UserInteractive -and -not ([Environment]::GetCommandLineArgs() -contains '-NonInteractive') } function Confirm-Installer([string]$Question) { [Console]::Error.Write(' ' + (Format-Paint -Style (Get-InstallerStyle) '1' $Question) + ' [Y/n] ') $answer = [Console]::ReadLine() return $null -ne $answer -and $answer.Trim() -match '^(|y|yes)$' } $script:Channels = @( @{ Name = 'stable'; Purpose = 'Recommended for everyday use'; Sgr = '32' }, @{ Name = 'preview'; Purpose = 'Try the latest changes'; Sgr = '35' } ) function Read-ChannelNumbered { [Console]::Error.WriteLine('Choose a release channel') for ($i = 0; $i -lt $script:Channels.Count; $i++) { $channel = $script:Channels[$i] [Console]::Error.WriteLine((' {0}. {1} {2}' -f ($i + 1), $channel.Name.PadRight(9), $channel.Purpose)) } while ($true) { [Console]::Error.Write('Select channel number [1] (q cancels): ') $answer = [Console]::ReadLine() if ($null -eq $answer) { return $null } switch ($answer.Trim()) { '' { return 'stable' } '1' { return 'stable' } '2' { return 'preview' } 'q' { return $null } } } } function Write-ChannelMenu([int]$Active) { $style = Get-InstallerStyle $escape = [char]27 for ($i = 0; $i -le $script:Channels.Count; $i++) { $marker = ' ' if ($i -eq $Active) { $marker = Format-Paint -Style $style '34' $style.Arrow } if ($i -eq $script:Channels.Count) { $name = 'Cancel'.PadRight(9) if ($i -eq $Active) { $name = Format-Paint -Style $style '1' $name } $line = " $marker $name" } else { $channel = $script:Channels[$i] $name = $channel.Name.PadRight(9) if ($i -eq $Active) { $name = Format-Paint -Style $style "1;$($channel.Sgr)" $name } $line = " $marker $name " + (Format-Paint -Style $style '2' $channel.Purpose) } [Console]::Error.WriteLine("$escape[2K$line") } } function Read-ChannelByKey { $style = Get-InstallerStyle $escape = [char]27 $dot = $style.Dot $hint = " $dot $([char]0x2191)/$([char]0x2193) move $dot Enter select $dot Esc cancel" try { if ([Console]::WindowWidth -le 66) { $hint = '' } } catch [IO.IOException] { $hint = '' } [Console]::Error.WriteLine((Format-Paint -Style $style '34' $style.Operation) + ' ' + (Format-Paint -Style $style '1' 'Choose a release channel') + (Format-Paint -Style $style '2' $hint)) $rows = $script:Channels.Count + 1 $active = 0 $done = $false [Console]::Error.Write("$escape[?25l") try { Write-ChannelMenu $active while (-not $done) { $key = [Console]::ReadKey($true) switch ($key.Key) { 'UpArrow' { $active = ($active + $rows - 1) % $rows } 'DownArrow' { $active = ($active + 1) % $rows } 'Enter' { $done = $true } 'Escape' { $active = $rows - 1; $done = $true } default { switch ($key.KeyChar) { 'k' { $active = ($active + $rows - 1) % $rows } 'j' { $active = ($active + 1) % $rows } '1' { $active = 0; $done = $true } '2' { $active = 1; $done = $true } 'q' { $active = $rows - 1; $done = $true } } } } if (-not $done) { [Console]::Error.Write("$escape[$($rows)A") Write-ChannelMenu $active } } } finally { [Console]::Error.Write("$escape[$($rows + 1)A`r$escape[J$escape[?25h") } if ($active -eq $rows - 1) { return $null } return $script:Channels[$active].Name } function Read-Channel { if (-not (Test-LiveError)) { return Read-ChannelNumbered } return Read-ChannelByKey } function Invoke-DeviceSignInShortcut([string]$Uri, [string]$Code) { if ($env:OS -ne 'Windows_NT') { return $false } try { Start-Process $Uri } catch { $null = $_ } try { Set-Clipboard -Value $Code; return $true } catch { return $false } } function Assert-WindowsPlatform { if ($PSVersionTable.PSVersion -lt [version]'5.1' -or $ExecutionContext.SessionState.LanguageMode -ne 'FullLanguage') { throw 'PowerShell 5.1 or later in FullLanguage mode is required. Unsupported policy; nothing was installed.' } if ($env:OS -ne 'Windows_NT' -or $env:PROCESSOR_ARCHITECTURE -ne 'AMD64' -or -not [Environment]::Is64BitProcess -or [string]::IsNullOrWhiteSpace($env:LOCALAPPDATA)) { throw 'This installer requires a Windows x64 PowerShell process and LOCALAPPDATA. Nothing was installed.' } } function Test-ReleaseVersion([string]$Version) { if ($Version -cnotmatch '^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$') { return $false } $parts = $Version -split '-', 2 if ($parts.Count -eq 2) { foreach ($part in ($parts[1] -split '\.')) { if ($part -cmatch '^0[0-9]+$') { return $false } } } return $true } function Invoke-InstallerRequest([hashtable]$Parameters, [switch]$OAuth, [long]$DownloadSize = 0) { $pipeline = [PowerShell]::Create() try { $Parameters['TimeoutSec'] = 60 if ($Parameters.ContainsKey('OutFile')) { $Parameters['TimeoutSec'] = 600 } $Parameters['MaximumRedirection'] = 0 $Parameters['Verbose'] = $false $Parameters['Debug'] = $false $null = $pipeline.AddScript(@' param($request, $oauth) try { $value = Invoke-RestMethod @request -ErrorAction Stop [pscustomobject]@{ Success = $true; Value = $value; Status = 200; OAuthError = $null } } catch { $failure = $_ $body = $null if ($oauth) { try { $body = $failure.ErrorDetails.Message | ConvertFrom-Json -ErrorAction Stop } catch { $body = $null } } $status = 0 if ($failure.Exception.Response) { $status = [int]$failure.Exception.Response.StatusCode } [pscustomobject]@{ Success = $false; Value = $null; Status = $status; OAuthError = $body } } '@).AddArgument($Parameters).AddArgument($OAuth.IsPresent) if ($Parameters.ContainsKey('OutFile')) { $timer = [Diagnostics.Stopwatch]::StartNew() $live = Test-LiveError $pending = $pipeline.BeginInvoke() $width = 0 try { while (-not $pending.AsyncWaitHandle.WaitOne(80)) { if (-not $live) { continue } $file = [IO.FileInfo]$Parameters.OutFile $received = 0 if ($file.Exists) { $received = $file.Length } $detail = [string]::Format([Globalization.CultureInfo]::InvariantCulture, '{0:0.0} / {1:0.0} MiB {2} {3:0}s', ($received / 1MB), ($DownloadSize / 1MB), (Get-InstallerStyle).Dot, $timer.Elapsed.TotalSeconds) $width = Write-LiveRow 'Download' $detail -Elapsed $timer.ElapsedMilliseconds if ($width -eq 0) { $live = $false } } $result = $pipeline.EndInvoke($pending) } finally { if ($pipeline.InvocationStateInfo.State -eq 'Running') { $pipeline.Stop() } $pending.AsyncWaitHandle.Close() Clear-LiveRow $width } } else { $result = $pipeline.Invoke() } if ($result.Count -ne 1) { throw 'The installer request failed. Nothing was installed.' } $outcome = $result[0] if ($outcome.Success) { return $outcome.Value } if ($OAuth) { if ($outcome.OAuthError.error) { return $outcome.OAuthError } throw 'Could not complete Microsoft sign-in. Nothing was installed.' } $status = $outcome.Status switch ($status) { 401 { throw 'Tengella CLI releases did not accept the sign-in. Nothing was installed.' } 403 { throw 'Access to Tengella CLI releases was denied. Ask to be added to grp-tengella-cli-releases-prod-read. Nothing was installed.' } 404 { if (([uri]$Parameters.Uri).AbsolutePath.EndsWith('/channels/stable.json', [StringComparison]::Ordinal)) { throw 'No stable release has been published yet. Choose preview to try the latest changes. Nothing was installed.' } throw 'The channel or release has not been published. Nothing was installed.' } default { throw 'Could not download Tengella CLI releases. Nothing was installed.' } } } finally { $Parameters.Clear() $pipeline.Dispose() } } function Invoke-SignInRequest([string]$Uri, [hashtable]$Body) { return Invoke-InstallerRequest -Parameters @{ Uri = $Uri; Method = 'Post'; Body = $Body } -OAuth } function Get-StorageToken([string]$LoginUrl) { $client = '989305c2-d454-45af-8633-acd7d6cdb075' $authority = "$LoginUrl/e940439b-df08-4fc7-98df-204a77e4a746/oauth2/v2.0" $device = Invoke-SignInRequest "$authority/devicecode" @{ client_id = $client scope = 'https://storage.azure.com/user_impersonation' } if (-not $device.device_code -or -not $device.user_code -or $device.verification_uri -cnotin @('https://microsoft.com/devicelogin', 'https://login.microsoft.com/device') -or $device.user_code -notmatch '^[A-Z0-9-]+$' -or $device.expires_in -le 0 -or $device.interval -lt 0) { throw 'Sign-in did not provide a supported device-code flow. Check your sign-in policy. Nothing was installed.' } $style = Get-InstallerStyle $color = $style.Styled Write-InstallerLine '' Write-InstallerHeading 'Sign in' 'device code' $copied = Invoke-DeviceSignInShortcut $device.verification_uri $device.user_code Write-InstallerLine (' Open ' + $device.verification_uri) $code = ' Code ' + (Format-Paint -Style $style '1' $device.user_code) if ($copied) { $code += Format-Paint -Style $style '2' " $($style.Dot) copied" } Write-InstallerLine $code Write-InstallerLine '' $deadline = [DateTime]::UtcNow.AddSeconds($device.expires_in) $interval = [int]$device.interval $timer = [Diagnostics.Stopwatch]::StartNew() while ([DateTime]::UtcNow -lt $deadline) { $wait = [Diagnostics.Stopwatch]::StartNew() $width = 0 try { while ($wait.Elapsed.TotalSeconds -lt $interval) { if ($color) { $width = Write-LiveRow 'Sign in' 'waiting for you to sign in' -Elapsed $timer.ElapsedMilliseconds } Start-Sleep -Milliseconds 80 } } finally { Clear-LiveRow $width } $response = Invoke-SignInRequest "$authority/token" @{ client_id = $client grant_type = 'urn:ietf:params:oauth:grant-type:device_code' device_code = $device.device_code } switch ($response.error) { 'authorization_pending' { continue } 'slow_down' { $interval += 5; continue } 'authorization_declined' { throw 'Sign-in was canceled. Nothing was installed.' } 'expired_token' { throw 'Sign-in expired. Nothing was installed.' } $null { if (-not [string]::IsNullOrWhiteSpace($response.access_token)) { return $response.access_token } throw 'Sign-in returned no access token. Nothing was installed.' } default { throw 'Sign-in failed. Access may be blocked by sign-in policy. Nothing was installed.' } } } throw 'Sign-in expired. Nothing was installed.' } function Get-ReleaseBlob([string]$Uri, [hashtable]$Headers, [string]$Destination, [long]$Size = 0) { $parameters = @{ Uri = $Uri; Headers = $Headers } if ($Destination) { $parameters['OutFile'] = $Destination } return Invoke-InstallerRequest -Parameters $parameters -DownloadSize $Size } function Expand-GzipRelease([string]$Source, [string]$Destination, [long]$Size) { $stream = $null $gzip = $null $output = $null try { $stream = [IO.File]::OpenRead($Source) $gzip = [IO.Compression.GZipStream]::new($stream, [IO.Compression.CompressionMode]::Decompress) $output = [IO.File]::Open($Destination, 'CreateNew', 'Write', 'None') $buffer = [byte[]]::new(81920) $written = 0L while (($count = $gzip.Read($buffer, 0, $buffer.Length)) -gt 0) { $written += $count if ($written -gt $Size) { throw [IO.InvalidDataException]::new() } $output.Write($buffer, 0, $count) } } catch [IO.InvalidDataException] { throw 'Checksum mismatch for Tengella CLI. Nothing was installed.' } finally { if ($output) { $output.Dispose() } if ($gzip) { $gzip.Dispose() } if ($stream) { $stream.Dispose() } } } function Get-CurrentTarget([string]$Current) { $item = Get-Item -LiteralPath $Current -Force if ($item.LinkType -ne 'Junction') { throw 'The current directory is not a managed junction. Nothing was installed.' } return [IO.Path]::GetFullPath([string](@($item.Target)[0])) } function New-CurrentJunction { [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '', Justification = 'Internal activation step; the installer has no partial WhatIf mode.')] [CmdletBinding()] param([string]$Current, [string]$Target) $null = New-Item -ItemType Junction -Path $Current -Target $Target -ErrorAction Stop } function Get-UserPath { return [Environment]::GetEnvironmentVariable('Path', 'User') } function Set-UserPath { [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '', Justification = 'Internal activation step; the installer has no partial WhatIf mode.')] [CmdletBinding()] param([string]$Path) [Environment]::SetEnvironmentVariable('Path', $Path, 'User') } function Add-UserPath([string]$Current) { $path = [string](Get-UserPath) $others = @($path -split ';' | Where-Object { $_ -and $_.TrimEnd('\') -ine $Current.TrimEnd('\') }) $updated = (@($Current) + $others) -join ';' if ($updated -cne $path) { Set-UserPath $updated } $others = @($env:PATH -split ';' | Where-Object { $_ -and $_.TrimEnd('\') -ine $Current.TrimEnd('\') }) $env:PATH = (@($Current) + $others) -join ';' } function Confirm-GlobalToolMigration([switch]$OptIn) { $kind = 'none' $version = '' $tools = $null $dotnet = Get-Command dotnet -CommandType Application -ErrorAction SilentlyContinue if ($dotnet) { try { $tools = & $dotnet.Source tool list -g 2>$null if ($LASTEXITCODE -ne 0) { $tools = $null } } catch { $tools = $null } } if ($null -ne $tools) { foreach ($line in $tools) { if ($line -match '^\s*Tengella\.Cli\s+(\S+)') { $kind = 'dotnet'; $version = $Matches[1] } } } elseif (Test-Path -LiteralPath (Get-GlobalToolShim)) { $kind = 'orphaned' } if ($kind -eq 'none' -or $OptIn) { return $kind } if (-not (Test-Interactive)) { throw 'Tengella.Cli global tool found. Run with -MigrateGlobalTool to replace it without an interactive terminal. Nothing was changed.' } if ($kind -eq 'dotnet') { Write-InstallerRow 'warn' "Tengella.Cli global tool $version found" if (-not (Confirm-Installer 'Replace it with the standalone CLI?')) { throw 'Migration declined. Nothing was changed.' } } else { Write-InstallerRow 'warn' 'Leftover Tengella.Cli global tool found in %USERPROFILE%\.dotnet\tools that dotnet cannot remove' if (-not (Confirm-Installer 'Remove it after installing?')) { throw 'Removal declined. Nothing was changed.' } } return $kind } function Get-GlobalToolShim { return Join-Path ([Environment]::GetFolderPath('UserProfile')) '.dotnet/tools/tengella.exe' } function Complete-GlobalToolMigration([string]$Current, [string]$Version, [string]$Kind) { Assert-ExecutableVersion (Join-Path $Current 'tengella.exe') $Version if ($Kind -eq 'dotnet') { $null = & dotnet tool uninstall -g Tengella.Cli if ($LASTEXITCODE -ne 0) { throw 'Could not uninstall Tengella.Cli. Both installations remain; run the installer again to migrate.' } } else { Remove-Item -LiteralPath (Get-GlobalToolShim) -Force $store = Join-Path ([Environment]::GetFolderPath('UserProfile')) '.dotnet/tools/.store/tengella.cli' if (Test-Path -LiteralPath $store) { Remove-Item -LiteralPath $store -Recurse -Force } } } function Get-ShadowingTengella([string]$Current) { $path = [Environment]::GetEnvironmentVariable('Path', 'Machine') + ';' + (Get-UserPath) $managed = Join-Path $Current 'tengella.exe' foreach ($entry in ($path -split ';')) { if ([string]::IsNullOrWhiteSpace($entry)) { continue } $directory = [Environment]::ExpandEnvironmentVariables($entry.Trim('"')) foreach ($extension in (@('.ps1') + ($env:PATHEXT -split ';' | Where-Object { $_ }))) { try { $candidate = [IO.Path]::Combine($directory, 'tengella' + $extension) if (-not [IO.File]::Exists($candidate)) { continue } } catch { continue } if ($candidate -ieq $managed) { return $null } return $candidate } } return $null } function Get-ApplicationControlBlock([Exception]$Exception) { for ($cause = $Exception; $cause; $cause = $cause.InnerException) { if ($cause -is [ComponentModel.Win32Exception] -and $cause.NativeErrorCode -in @(4551, 1260)) { return $cause.NativeErrorCode } } return 0 } function Get-BlockedPolicy([int]$Code) { if ($Code -eq 1260) { return 'An AppLocker or software restriction policy' } return 'Windows Application Control or Smart App Control' } function Invoke-ExecutableVersion([string]$Executable) { return & $Executable --version 2>$null } function Invoke-InstalledUpdate([string]$Executable) { & $Executable update } function Assert-ExecutableVersion( [string]$Executable, [string]$Version, [string]$FailureMessage = 'The downloaded executable did not report its release version. Nothing was installed.' ) { try { $reported = Invoke-ExecutableVersion $Executable } catch { switch (Get-ApplicationControlBlock $_.Exception) { 4551 { throw "Windows Application Control or Smart App Control blocked Tengella CLI $Version. The release is likely unsigned. Nothing was installed." } 1260 { throw "An AppLocker or software restriction policy blocks running programs from %LOCALAPPDATA%\tengella-cli, so Windows blocked Tengella CLI $Version. Nothing was installed. Contact your IT department." } } throw $FailureMessage } if ($LASTEXITCODE -ne 0 -or $reported -cne $Version) { throw $FailureMessage } } function Compare-ReleaseVersion([string]$Left, [string]$Right) { $a = @((($Left -split '\+', 2)[0]) -split '-', 2) $b = @((($Right -split '\+', 2)[0]) -split '-', 2) $ac = $a[0] -split '\.' $bc = $b[0] -split '\.' for ($i = 0; $i -lt 3; $i++) { $difference = ([bigint]::Parse($ac[$i])).CompareTo([bigint]::Parse($bc[$i])) if ($difference -ne 0) { return [Math]::Sign($difference) } } if ($a.Count -ne $b.Count) { if ($a.Count -eq 1) { return 1 } else { return -1 } } if ($a.Count -eq 1) { return 0 } $ap = $a[1] -split '\.' $bp = $b[1] -split '\.' for ($i = 0; $i -lt [Math]::Min($ap.Count, $bp.Count); $i++) { $an = $ap[$i] -match '^[0-9]+$' $bn = $bp[$i] -match '^[0-9]+$' if ($an -and $bn) { $difference = ([bigint]::Parse($ap[$i])).CompareTo([bigint]::Parse($bp[$i])) } elseif ($an -ne $bn) { if ($an) { $difference = -1 } else { $difference = 1 } } else { $difference = [string]::CompareOrdinal($ap[$i], $bp[$i]) } if ($difference -ne 0) { return [Math]::Sign($difference) } } return [Math]::Sign($ap.Count.CompareTo($bp.Count)) } function Test-LockContention([Exception]$Exception) { for ($cause = $Exception; $cause; $cause = $cause.InnerException) { if ($cause -is [IO.IOException] -and ($cause.HResult -band 0xffff) -in @(11, 32, 33, 35)) { return $true } } return $false } function Wait-UpdateLock([string]$Root) { $path = Join-Path $Root 'update.lock' $live = Test-LiveError $timer = $null $width = 0 try { while ($true) { try { return [IO.File]::Open($path, 'OpenOrCreate', 'ReadWrite', 'None') } catch { if (-not (Test-LockContention $_.Exception)) { throw } } if (-not $timer) { $timer = [Diagnostics.Stopwatch]::StartNew() if (-not $live) { Write-InstallerNotice 'Waiting for another tengella update to finish.' } } if ($live) { $width = Write-LiveRow 'Lock' 'waiting for another tengella update' -Elapsed $timer.ElapsedMilliseconds } Start-Sleep -Milliseconds 100 } } finally { Clear-LiveRow $width } } function Get-InstallLink([string]$Path) { $item = Get-Item -LiteralPath $Path -Force -ErrorAction SilentlyContinue if (-not $item) { return $false } if (-not $item.LinkType) { throw 'The managed install state or current junction is invalid. Nothing was installed.' } return $true } function Restore-CurrentJunction([string]$Root) { $aside = Join-Path $Root $script:Aside if (-not (Get-InstallLink $aside)) { return $false } $current = Join-Path $Root 'current' if (Get-InstallLink $current) { [IO.Directory]::Delete($current) } [IO.Directory]::Move($aside, $current) return $true } function Get-ManagedState([string]$Root) { if (-not (Test-Path -LiteralPath $Root)) { return $null } $statePath = Join-Path (Join-Path $Root 'current') 'install.json' $legacyPath = Join-Path $Root 'install.json' if (-not (Test-Path -LiteralPath $statePath -PathType Leaf)) { $statePath = $legacyPath } if (-not (Test-Path -LiteralPath $statePath -PathType Leaf)) { throw 'The install directory exists without managed install state. Nothing was installed.' } $state = Get-Content -LiteralPath $statePath -Raw | ConvertFrom-Json if ($statePath -ne $legacyPath -and (Test-Path -LiteralPath $legacyPath -PathType Leaf)) { $legacy = Get-Content -LiteralPath $legacyPath -Raw | ConvertFrom-Json if ($legacy.schemaVersion -ne $state.schemaVersion -or $legacy.channel -cne $state.channel -or $legacy.version -cne $state.version) { throw 'Conflicting managed install state. Nothing was installed.' } } $target = Join-Path (Join-Path $Root 'versions') ([string]$state.version) if ($state.schemaVersion -ne 1 -or $state.channel -notin @('stable', 'preview') -or -not (Test-ReleaseVersion $state.version) -or -not (Test-Path -LiteralPath (Join-Path $target 'tengella.exe') -PathType Leaf) -or (Get-CurrentTarget (Join-Path $Root 'current')) -ine [IO.Path]::GetFullPath($target)) { throw 'The managed install state or current junction is invalid. Nothing was installed.' } return $state } function Move-LegacyState([string]$Root, $State) { $legacy = Join-Path $Root 'install.json' if (-not (Test-Path -LiteralPath $legacy -PathType Leaf)) { return } $active = Join-Path (Join-Path $Root 'current') 'install.json' $written = "$active.tmp" $json = @{ schemaVersion = 1; channel = [string]$State.channel; version = [string]$State.version } | ConvertTo-Json [IO.File]::WriteAllText($written, $json) if (Test-Path -LiteralPath $active -PathType Leaf) { [IO.File]::Replace($written, $active, $null) } else { [IO.File]::Move($written, $active) } Remove-Item -LiteralPath $legacy -Force } function Install-Tengella([string]$RequestedChannel, [switch]$MigrateGlobalTool) { Set-PSDebug -Off $ErrorActionPreference = 'Stop' $VerbosePreference = 'SilentlyContinue' $DebugPreference = 'SilentlyContinue' $ProgressPreference = 'SilentlyContinue' if ($RequestedChannel -and $RequestedChannel -notin @('stable', 'preview')) { throw 'Unknown channel. Use stable or preview. Nothing was installed.' } Assert-WindowsPlatform [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 $previousEncoding = [Console]::OutputEncoding [Console]::OutputEncoding = New-Object Text.UTF8Encoding($false) try { Install-TengellaCore $RequestedChannel -MigrateGlobalTool:$MigrateGlobalTool } finally { [Console]::OutputEncoding = $previousEncoding } } function Get-InstallerOrigin { $login = 'https://login.microsoftonline.com' $releases = 'https://ccstdata.blob.core.windows.net/tengella-cli-releases' if ($env:TENGELLA_INSTALL_LOGIN_URL) { $login = $env:TENGELLA_INSTALL_LOGIN_URL.TrimEnd('/') } if ($env:TENGELLA_INSTALL_RELEASES_URL) { $releases = $env:TENGELLA_INSTALL_RELEASES_URL.TrimEnd('/') } foreach ($url in @($login, $releases)) { $uri = [uri]$url if (-not $uri.IsAbsoluteUri -or $uri.UserInfo -or $uri.Query -or $uri.Fragment -or ($uri.Scheme -ne 'https' -and -not ($uri.Scheme -eq 'http' -and $uri.IsLoopback))) { throw 'Release and sign-in origins require HTTPS, or loopback HTTP for tests. Nothing was installed.' } } return @{ Login = $login; Releases = $releases } } function Get-ChannelRelease([hashtable]$Origins, [string]$Channel, [hashtable]$Headers, [hashtable]$Progress) { $Progress.Step = 'Sign in' $Headers['Authorization'] = 'Bearer ' + (Get-StorageToken $Origins.Login) $Headers['x-ms-version'] = '2021-08-06' Write-InstallerRow 'complete' $Progress.Step $Progress.Step = 'Check release' $origin = $Origins.Releases $pointer = Get-ReleaseBlob "$origin/channels/$Channel.json" $Headers if ($pointer.schemaVersion -ne 1 -or $pointer.channel -cne $Channel -or -not (Test-ReleaseVersion $pointer.version) -or ($Channel -eq 'stable' -and $pointer.version.Contains('-'))) { throw 'Invalid release channel metadata. Nothing was installed.' } $version = [string]$pointer.version $release = Get-ReleaseBlob "$origin/releases/$version/release.json" $Headers $artifacts = @($release.artifacts | Where-Object { $_.platform -ceq 'win-x64' }) if ($release.schemaVersion -ne 1 -or $release.version -cne $version -or $artifacts.Count -ne 1) { throw 'Invalid release metadata or missing win-x64 build. Nothing was installed.' } $artifact = $artifacts[0] if ($artifact.path -cne "releases/$version/win-x64/tengella.exe" -or $artifact.size -isnot [ValueType] -or $artifact.size -le 0 -or $artifact.size -ne [long]$artifact.size -or $artifact.sha256 -notmatch '^[0-9a-fA-F]{64}$') { throw 'Invalid win-x64 artifact metadata. Nothing was installed.' } $gzip = $artifact.gzip if (-not ($gzip -and $gzip.path -ceq "$($artifact.path).gz" -and $gzip.size -is [ValueType] -and $gzip.size -gt 0 -and $gzip.size -eq [long]$gzip.size -and $gzip.sha256 -match '^[0-9a-fA-F]{64}$')) { $gzip = $null } Write-InstallerRow 'complete' $Progress.Step -Detail (Join-InstallerDetail $version, $Channel) return @{ Channel = $Channel; Version = $version; Release = $release; Artifact = $artifact; Gzip = $gzip } } function Save-ChannelRelease([hashtable]$Origins, [hashtable]$Headers, [hashtable]$Selected, [string]$Staging, [hashtable]$Progress) { $origin = $Origins.Releases $artifact = $Selected.Artifact $gzip = $Selected.Gzip $executable = Join-Path $Staging 'tengella.exe' $Progress.Step = 'Download' $timer = [Diagnostics.Stopwatch]::StartNew() if ($gzip) { $compressed = "$executable.gz" Get-ReleaseBlob -Uri "$origin/$($gzip.path)" -Headers $Headers -Destination $compressed -Size $gzip.size if ((Get-Item -LiteralPath $compressed).Length -ne $gzip.size) { throw 'Checksum mismatch for Tengella CLI. Nothing was installed.' } Expand-GzipRelease -Source $compressed -Destination $executable -Size ([long]$artifact.size) Remove-Item -LiteralPath $compressed $transferred = $gzip.size } else { Get-ReleaseBlob -Uri "$origin/$($artifact.path)" -Headers $Headers -Destination $executable -Size $artifact.size $transferred = $artifact.size } Write-InstallerRow 'complete' $Progress.Step -Detail ([string]::Format([Globalization.CultureInfo]::InvariantCulture, '{0:0.0} MiB {1} {2:0}s', ($transferred / 1MB), (Get-InstallerStyle).Dot, $timer.Elapsed.TotalSeconds)) $Progress.Step = 'Verify' if ((Get-Item -LiteralPath $executable).Length -ne $artifact.size -or (Get-FileHash -LiteralPath $executable -Algorithm SHA256).Hash -ine $artifact.sha256) { throw 'Checksum mismatch for Tengella CLI. Nothing was installed.' } Assert-ExecutableVersion $executable $Selected.Version @{ schemaVersion = 1; channel = $Selected.Channel; version = $Selected.Version } | ConvertTo-Json | Set-Content -LiteralPath (Join-Path $Staging 'install.json') -Encoding UTF8 Write-InstallerRow 'complete' $Progress.Step -Detail 'sha256' } function Switch-CurrentJunction([string]$Root, [string]$Target, [string]$Version) { $current = Join-Path $Root 'current' $aside = Join-Path $Root $script:Aside [IO.Directory]::Move($current, $aside) try { New-CurrentJunction $current $Target Assert-ExecutableVersion -Executable (Join-Path $current 'tengella.exe') -Version $Version ` -FailureMessage "Tengella CLI $Version did not run after activation. The previous version is still active." } catch { try { $null = Restore-CurrentJunction $Root } catch { throw 'Activation failed and the previous version could not be restored. Run install.ps1 again to restore it.' } throw } [IO.Directory]::Delete($aside) } function Invoke-ManagedUpdate([string]$Root) { $origins = Get-InstallerOrigin $headers = @{} $progress = @{ Step = $null } $lock = $null $staging = $null try { $lock = Wait-UpdateLock $Root $null = Restore-CurrentJunction $Root $state = Get-ManagedState $Root Move-LegacyState $Root $state $installed = [string]$state.version $channel = [string]$state.channel $selected = Get-ChannelRelease -Origins $origins -Channel $channel -Headers $headers -Progress $progress $progress.Step = $null $comparison = Compare-ReleaseVersion $selected.Version $installed if ($comparison -lt 0 -and $channel -eq 'stable') { throw "Tengella CLI $installed is ahead of the newest stable release $($selected.Version) and was kept, as tengella update does. Nothing was changed. To install $($selected.Version), remove %LOCALAPPDATA%\tengella-cli and run install.ps1 again." } if ($comparison -le 0) { throw "Tengella CLI $installed is already the newest $channel release, so there is no update to replace it. Nothing was changed. Run install.ps1 again after the next release." } $staging = Join-Path $Root ('.staging.' + [Guid]::NewGuid().ToString('N')) $null = New-Item -ItemType Directory -Path $staging -ErrorAction Stop Save-ChannelRelease -Origins $origins -Headers $headers -Selected $selected -Staging $staging -Progress $progress $progress.Step = 'Activate' $destination = Join-Path (Join-Path $Root 'versions') $selected.Version if (Test-Path -LiteralPath $destination) { $retained = Join-Path $destination 'tengella.exe' if ((Get-Item -LiteralPath $destination -Force).LinkType -or -not (Test-Path -LiteralPath $retained -PathType Leaf) -or (Get-FileHash -LiteralPath $retained -Algorithm SHA256).Hash -ine $selected.Artifact.sha256) { throw "The retained Tengella CLI $($selected.Version) differs from the verified release. Nothing was installed." } Move-Item -LiteralPath (Join-Path $staging 'install.json') -Destination (Join-Path $destination 'install.json') -Force Remove-Item -LiteralPath $staging -Recurse -Force } else { Move-Item -LiteralPath $staging -Destination $destination -ErrorAction Stop } $staging = $null Switch-CurrentJunction -Root $Root -Target $destination -Version $selected.Version Write-InstallerRow 'complete' $progress.Step -Detail "$installed $((Get-InstallerStyle).Arrow) $($selected.Version)" } catch { if ($progress.Step) { Write-InstallerRow 'failed' $progress.Step } throw } finally { $headers.Clear() if ($staging -and (Test-Path -LiteralPath $staging)) { Remove-Item -LiteralPath $staging -Recurse -Force } if ($lock) { $lock.Dispose() } } return @{ Selected = $selected; Previous = $installed } } function Invoke-BlockedUpdate([string]$Root, [int]$Block) { $policy = Get-BlockedPolicy $Block if (-not (Test-Interactive)) { throw "$policy blocked tengella.exe. Updating without it needs a device-code sign-in, so run install.ps1 again in an interactive PowerShell window. Nothing was changed." } Write-InstallerRow 'warn' "$policy blocked tengella.exe; updating from the installer instead." return Invoke-ManagedUpdate $Root } function Install-TengellaCore([string]$RequestedChannel, [switch]$MigrateGlobalTool) { $root = Join-Path $env:LOCALAPPDATA 'tengella-cli' if (Test-Path -LiteralPath (Join-Path $root $script:Aside)) { $lock = Wait-UpdateLock $root try { $restored = Restore-CurrentJunction $root } finally { $lock.Dispose() } if ($restored) { Write-InstallerNotice 'Restored the previous version after an interrupted update.' } } $state = Get-ManagedState $root if ($state) { $other = 'preview' if ($state.channel -eq 'preview') { $other = 'stable' } if ($RequestedChannel -and $RequestedChannel -ne $state.channel) { throw "This installation follows the $($state.channel) channel. Switch with: tengella update --channel $RequestedChannel. Nothing was installed." } $migrate = Confirm-GlobalToolMigration -OptIn:$MigrateGlobalTool Write-InstallerNotice "Tengella CLI $($state.version) is installed on the $($state.channel) channel; running tengella update." $current = Join-Path $root 'current' $block = 0 try { Invoke-InstalledUpdate (Join-Path $current 'tengella.exe'); $code = $LASTEXITCODE } catch { $block = Get-ApplicationControlBlock $_.Exception if (-not $block) { throw 'Could not delegate to tengella.exe update. Remove %LOCALAPPDATA%\tengella-cli and reinstall with install.ps1.' } } if ($block) { $outcome = Invoke-BlockedUpdate $root $block } elseif ($code -ne 0) { Write-InstallerError "tengella update failed with exit code $code. If this version lacks Windows update support, remove %LOCALAPPDATA%\tengella-cli and reinstall with install.ps1." exit $code } if ($migrate -ne 'none') { $updated = Get-ManagedState $root Complete-GlobalToolMigration $current $updated.version -Kind $migrate Write-InstallerRow 'complete' 'Migrate' -Detail 'removed Tengella.Cli global tool' $shadow = Get-ShadowingTengella $current if ($shadow) { Write-InstallerRow 'warn' "Another tengella at $shadow comes first on PATH and runs instead." } } if ($block) { Write-InstallerResult -Version $outcome.Selected.Version -Channel $outcome.Selected.Channel -Previous $outcome.Previous } else { Write-InstallerNotice "Switch channel with: tengella update --channel $other" } return } $origins = Get-InstallerOrigin Write-InstallerHeading 'Install Tengella CLI' 'Windows x64' $migrate = Confirm-GlobalToolMigration -OptIn:$MigrateGlobalTool $selected = 'stable' if ($RequestedChannel) { $selected = $RequestedChannel } elseif (Test-Interactive) { $selected = Read-Channel if ($null -eq $selected) { Write-InstallerLine 'Installation canceled. Nothing was changed.' return } } Write-InstallerRow 'complete' 'Channel' -Detail $selected $headers = @{} $progress = @{ Step = 'Sign in' } $staging = $null $lock = $null $createdRoot = $false $installed = $false try { $channelRelease = Get-ChannelRelease -Origins $origins -Channel $selected -Headers $headers -Progress $progress $version = $channelRelease.Version $release = $channelRelease.Release $null = New-Item -ItemType Directory -Path $root -ErrorAction Stop $createdRoot = $true $lock = [IO.File]::Open((Join-Path $root 'install.lock'), 'OpenOrCreate', 'ReadWrite', 'None') $versions = Join-Path $root 'versions' $null = New-Item -ItemType Directory -Path $versions -ErrorAction Stop $staging = Join-Path $root ('.staging.' + [Guid]::NewGuid().ToString('N')) $null = New-Item -ItemType Directory -Path $staging -ErrorAction Stop Save-ChannelRelease -Origins $origins -Headers $headers -Selected $channelRelease -Staging $staging -Progress $progress $progress.Step = 'Activate' $destination = Join-Path $versions $version Move-Item -LiteralPath $staging -Destination $destination -ErrorAction Stop $staging = $null $current = Join-Path $root 'current' New-CurrentJunction $current $destination Assert-ExecutableVersion -Executable (Join-Path $current 'tengella.exe') -Version $version ` -FailureMessage "The activated installation at $current could not run tengella.exe. Nothing was installed." Add-UserPath $current $installed = $true Write-InstallerRow 'complete' $progress.Step -Detail '%LOCALAPPDATA%\tengella-cli' if ($migrate -ne 'none') { $progress.Step = 'Migrate' Complete-GlobalToolMigration $current $version -Kind $migrate Write-InstallerRow 'complete' $progress.Step -Detail 'removed Tengella.Cli global tool' } } catch { Write-InstallerRow 'failed' $progress.Step throw } finally { $headers.Clear() if ($lock) { $lock.Dispose() } if ($createdRoot -and -not $installed) { $current = Join-Path $root 'current' if (Test-Path -LiteralPath $current) { [IO.Directory]::Delete($current) } Remove-Item -LiteralPath $root -Recurse -Force } } $current = Join-Path $root 'current' Write-InstallerResult -Version $version -Channel $selected -Release $release -Current $current ` -Shadow (Get-ShadowingTengella $current) } function Write-InstallerResult([string]$Version, [string]$Channel, $Release, [string]$Current, [string]$Shadow, [string]$Previous) { $style = Get-InstallerStyle -Output $sgr = '32' if ($Channel -eq 'preview') { $sgr = '35' } $title = "Installed Tengella CLI $Version" if ($Previous) { $title = "Updated Tengella CLI $Previous $($style.Arrow) $Version" } Write-Output '' Write-Output (' ' + (Format-Paint -Style $style '32' $style.Ok) + ' ' + (Format-Paint -Style $style '1' $title) + ' ' + (Format-Paint -Style $style $sgr "$($style.Dot) $Channel")) if ($Previous) { return } if ($Shadow) { Write-Output (' ' + (Format-Paint -Style $style '33' '!') + " Another tengella at $Shadow comes first on PATH and runs instead.") return } Write-Output (' ' + (Format-Paint -Style $style '2' "$($style.Dot) Open a new terminal to use tengella.")) Write-Output '' $metadata = [IO.Path]::GetTempFileName() try { [IO.File]::WriteAllText($metadata, ($Release | ConvertTo-Json -Depth 10)) $welcome = Start-Process -FilePath (Join-Path $Current 'tengella.exe') -ArgumentList "--installed-release `"$metadata`"" ` -NoNewWindow -Wait -PassThru if ($welcome.ExitCode -ne 0) { throw "Tengella CLI $Version is installed, but its welcome failed with exit code $($welcome.ExitCode)." } } finally { Remove-Item -LiteralPath $metadata -Force -ErrorAction SilentlyContinue } } function Write-InstallerFailure([Management.Automation.ErrorRecord]$Failure, [switch]$Diagnostic) { $exception = $Failure.Exception if ($exception.GetType() -eq [Management.Automation.RuntimeException] -and $exception.WasThrownFromThrowStatement) { Write-InstallerError $exception.Message return } $message = 'The installer stopped unexpectedly. Run it again, adding -Verbose to see the error.' if ($Diagnostic) { $message = "The installer stopped unexpectedly: $($exception.GetType().FullName): $($exception.Message)" } Write-InstallerError $message } if ($MyInvocation.InvocationName -ne '.') { try { Install-Tengella $Channel -MigrateGlobalTool:$MigrateGlobalTool } catch { Write-InstallerFailure $_ -Diagnostic:($PSBoundParameters.ContainsKey('Verbose')) $global:LASTEXITCODE = 1 if ([Console]::IsInputRedirected -or [Console]::IsOutputRedirected -or ([Environment]::GetCommandLineArgs() -contains '-NonInteractive')) { exit 1 } } } # SIG # Begin signature block # MIItYgYJKoZIhvcNAQcCoIItUzCCLU8CAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoG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