diff --git a/images/windows/scripts/build/Install-BizTalkBuildComponent.ps1 b/images/windows/scripts/build/Install-BizTalkBuildComponent.ps1 deleted file mode 100644 index 21f84863a..000000000 --- a/images/windows/scripts/build/Install-BizTalkBuildComponent.ps1 +++ /dev/null @@ -1,27 +0,0 @@ -################################################################################ -## File: Install-BizTalkBuildComponent.ps1 -## Desc: Install BizTalk Project Build Component -################################################################################ - -$downloadUrl = "https://aka.ms/BuildComponentSetup.EN" - -Write-Host "Downloading BizTalk Project Build Component archive..." -$zipFile = Invoke-DownloadWithRetry $downloadUrl - -$setupPath = Join-Path $env:TEMP_DIR "BizTalkBuildComponent" -if (-not (Test-Path -Path $setupPath)) { - New-Item -Path $setupPath -ItemType Directory -Force | Out-Null -} -Expand-7ZipArchive -Path $zipFile -DestinationPath $setupPath - -Write-Host "Installing BizTalk Project Build Component..." -Install-Binary ` - -LocalPath "$setupPath\Bootstrap.msi" ` - -ExtraInstallArgs ("/l*v", "$setupPath\bootstrap.log") ` - -ExpectedSubject $(Get-MicrosoftPublisher) -Install-Binary ` - -LocalPath "$setupPath\BuildComponentSetup.msi" ` - -ExtraInstallArgs ("/l*v", "$setupPath\buildComponentSetup.log") ` - -ExpectedSubject $(Get-MicrosoftPublisher) - -Invoke-PesterTests -TestFile "BizTalk" -TestName "BizTalk Build Component Setup" diff --git a/images/windows/scripts/build/Install-CloudFoundryCli.ps1 b/images/windows/scripts/build/Install-CloudFoundryCli.ps1 deleted file mode 100644 index f614cd3e4..000000000 --- a/images/windows/scripts/build/Install-CloudFoundryCli.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -################################################################################ -## File: Install-CloudFoundryCli.ps1 -## Desc: Install Cloud Foundry CLI -################################################################################ - -# Download the latest cf cli exe -$cloudFoundryCliUrl = "https://packages.cloudfoundry.org/stable?release=windows64-exe&source=github" - -$cloudFoundryArchPath = Invoke-DownloadWithRetry $cloudFoundryCliUrl - -# Create directory for cf cli -$cloudFoundryCliPath = "C:\cf-cli" -New-Item -Path $cloudFoundryCliPath -ItemType Directory -Force - -# Extract the zip archive -Write-Host "Extracting cf cli..." -Expand-7ZipArchive -Path $cloudFoundryArchPath -DestinationPath $cloudFoundryCliPath - -# Add cf to path -Add-MachinePathItem $cloudFoundryCliPath - -# Validate cf signature -Test-FileSignature -Path "$cloudFoundryCliPath\cf.exe" -ExpectedSubject 'CN="LF Projects, LLC", O="LF Projects, LLC", L=Wilmington, S=Delaware, C=US' - -Invoke-PesterTests -TestFile "CLI.Tools" -TestName "CloudFoundry CLI" diff --git a/images/windows/scripts/build/Install-GoogleCloudCLI.ps1 b/images/windows/scripts/build/Install-GoogleCloudCLI.ps1 deleted file mode 100644 index 77071230c..000000000 --- a/images/windows/scripts/build/Install-GoogleCloudCLI.ps1 +++ /dev/null @@ -1,12 +0,0 @@ -################################################################################ -## File: Install-GoogleCloudCLI.ps1 -## Desc: Install Google Cloud CLI -################################################################################ - -# https://cloud.google.com/sdk/docs/downloads-interactive -Install-Binary ` - -Url 'https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe' ` - -InstallArgs @("/S", "/allusers", "/noreporting") ` - -ExpectedSubject 'CN=Google LLC, O=Google LLC, L=Mountain View, S=California, C=US, SERIALNUMBER=3582691, OID.2.5.4.15=Private Organization, OID.1.3.6.1.4.1.311.60.2.1.2=Delaware, OID.1.3.6.1.4.1.311.60.2.1.3=US' - -Invoke-PesterTests -TestFile "Tools" -TestName "GoogleCloudCLI" diff --git a/images/windows/scripts/build/Install-NET48-devpack.ps1 b/images/windows/scripts/build/Install-NET48-devpack.ps1 deleted file mode 100644 index 676b762cb..000000000 --- a/images/windows/scripts/build/Install-NET48-devpack.ps1 +++ /dev/null @@ -1,13 +0,0 @@ -################################################################################ -## File: Install-NET48-devpack.ps1 -## Desc: Install .NET 4.8 devpack -## Supply chain security: checksum validation -################################################################################ - -# .NET 4.8 Dev pack -Install-Binary ` - -Url 'https://download.visualstudio.microsoft.com/download/pr/014120d7-d689-4305-befd-3cb711108212/0307177e14752e359fde5423ab583e43/ndp48-devpack-enu.exe' ` - -InstallArgs @("Setup", "/passive", "/norestart") ` - -ExpectedSHA256Sum '0A7AC4A9B44CED6BB7A0EBF3AD9BA29F60BD4D3BEB2047E19F4D8749DE61F5AC' - -Invoke-PesterTests -TestFile "Tools" -TestName "NET48" diff --git a/images/windows/scripts/build/Install-NET48.ps1 b/images/windows/scripts/build/Install-NET48.ps1 deleted file mode 100644 index 799428a8e..000000000 --- a/images/windows/scripts/build/Install-NET48.ps1 +++ /dev/null @@ -1,11 +0,0 @@ -################################################################################ -## File: Install-NET48.ps1 -## Desc: Install .NET 4.8 -## Supply chain security: checksum validation -################################################################################ - -# .NET 4.8 Dev pack -Install-Binary ` - -Url 'https://download.visualstudio.microsoft.com/download/pr/2d6bb6b2-226a-4baa-bdec-798822606ff1/8494001c276a4b96804cde7829c04d7f/ndp48-x86-x64-allos-enu.exe' ` - -InstallArgs @("Setup", "/passive", "/norestart") ` - -ExpectedSHA256Sum '68C9986A8DCC0214D909AA1F31BEE9FB5461BB839EDCA996A75B08DDFFC1483F' diff --git a/images/windows/scripts/build/Install-VCRedist.ps1 b/images/windows/scripts/build/Install-VCRedist.ps1 deleted file mode 100644 index af93a7cee..000000000 --- a/images/windows/scripts/build/Install-VCRedist.ps1 +++ /dev/null @@ -1,20 +0,0 @@ -################################################################################ -## File: Install-VCRedist.ps1 -## Desc: Install Visual C++ Redistributable -## Supply chain security: checksum validation -################################################################################ - -$baseUrl = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC" -$argumentList = ("/install", "/quiet", "/norestart") - -Install-Binary ` - -Url "${baseUrl}/vcredist_x86.exe" ` - -InstallArgs $argumentList ` - -ExpectedSHA256Sum '99DCE3C841CC6028560830F7866C9CE2928C98CF3256892EF8E6CF755147B0D8' - -Install-Binary ` - -Url "${baseUrl}/vcredist_x64.exe" ` - -InstallArgs $argumentList ` - -ExpectedSHA256Sum 'F3B7A76D84D23F91957AA18456A14B4E90609E4CE8194C5653384ED38DADA6F3' - -Invoke-PesterTests -TestFile "Tools" -TestName "VCRedist" diff --git a/images/windows/scripts/docs-gen/SoftwareReport.Android.psm1 b/images/windows/scripts/docs-gen/SoftwareReport.Android.psm1 index 9aeeb4df6..7186d4b77 100644 --- a/images/windows/scripts/docs-gen/SoftwareReport.Android.psm1 +++ b/images/windows/scripts/docs-gen/SoftwareReport.Android.psm1 @@ -7,14 +7,6 @@ function Split-TableRowByColumns { return $Row.Split("|") | ForEach-Object { $_.trim() } } -function Get-AndroidSDKRoot { - param( - [string] $ComponentName - ) - $path = Join-Path $env:ANDROID_HOME $ComponentName - return "Location $path" -} - function Build-AndroidTable { $packageInfo = Get-AndroidInstalledPackages return @( diff --git a/images/windows/scripts/docs-gen/SoftwareReport.Common.psm1 b/images/windows/scripts/docs-gen/SoftwareReport.Common.psm1 index 48cb75759..58d3a96db 100644 --- a/images/windows/scripts/docs-gen/SoftwareReport.Common.psm1 +++ b/images/windows/scripts/docs-gen/SoftwareReport.Common.psm1 @@ -247,10 +247,6 @@ function Get-PowerShellModules { return $result } -function Get-CachedDockerImages { - return (docker images --digests --format "* {{.Repository}}:{{.Tag}}").Split("*") | Where-Object { $_ } -} - function Get-CachedDockerImagesTableData { $allImages = docker images --digests --format "*{{.Repository}}:{{.Tag}}|{{.Digest}} |{{.CreatedAt}}" if (-not $allImages) { @@ -291,11 +287,6 @@ function Get-YAMLLintVersion { yamllint --version | Get-StringPart -Part 1 } -function Get-BizTalkVersion { - $bizTalkReg = Get-ItemProperty "HKLM:\SOFTWARE\WOW6432Node\Microsoft\BizTalk Server\3.0" - return [ToolVersionNode]::new($bizTalkReg.ProductName, $bizTalkReg.ProductVersion) -} - function Get-PipxVersion { pipx --version } diff --git a/images/windows/scripts/docs-gen/SoftwareReport.Tools.psm1 b/images/windows/scripts/docs-gen/SoftwareReport.Tools.psm1 index 532dd52eb..a1e89b261 100644 --- a/images/windows/scripts/docs-gen/SoftwareReport.Tools.psm1 +++ b/images/windows/scripts/docs-gen/SoftwareReport.Tools.psm1 @@ -153,11 +153,6 @@ function Get-PackerVersion { return $packerVersion } -function Get-ParcelVersion { - $parcelVersion = parcel --version - return "$parcelVersion" -} - function Get-PulumiVersion { return (pulumi version).TrimStart("v") } @@ -233,12 +228,6 @@ function Get-AlibabaCLIVersion { return $alicliVersion } -function Get-CloudFoundryVersion { - $(cf version) -match "(?\d+\.\d+\.\d+)" | Out-Null - $cfVersion = $Matches.Version - return $cfVersion -} - function Get-7zipVersion { (7z | Out-String) -match "7-Zip (?\d+\.\d+\.?\d*)" | Out-Null $version = $Matches.Version @@ -263,10 +252,6 @@ function Get-StackVersion { return $stackVersion } -function Get-GoogleCloudCLIVersion { - return (((cmd /c "gcloud --version") -match "Google Cloud SDK") -replace "Google Cloud SDK").Trim() -} - function Get-ServiceFabricSDKVersion { $serviceFabricSDKVersion = Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Service Fabric\' -Name FabricVersion return $serviceFabricSDKVersion