Just some ideas with Copilot help:
download Microsoft.WindowsApp_x64.msixbundle
-- application Windows app in store (for workstations only)
https://apps.microsoft.com/detail/9n1f85v9t8bn
-- Enable sideloading (step 1)
Set-ExecutionPolicy Bypass -Scope Process -Force
-- Install the MSIX bundle
-- Add-AppxPackage -Path "C:\Install\Microsoft.WindowsApp_x64.msixbundle"
Add-AppxPackage -Path "C:\Install\WindowsApp_x64_Release_2.0.918.0.msix"
check version:
Get-AppxPackage Microsoft.VCLibs.140.00 -AllUsers
Add-AppxPackage -Path "C:\Install\Microsoft.VCLibs.x64.14.00.Desktop.appx" -Verb
-- real package
https://learn.microsoft.com/en-gb/windows-app/whats-new?tabs=windows#latest-release
-- You can safely use the x64 version:
-- framework "Microsoft.VCLibs.140.00"
-- This link always points to the latest supported version.
https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx
Add-AppxPackage -Path "C:\Install\Microsoft.VCLibs.x64.14.00.Desktop.appx"
-- VS 2022 download: https://aka.ms/vs/17/release/vs_professional.exe
-- after create layout
C:\Install\vs_Professional.exe --layout C:\VSLayout --lang en-US
%ProgramFiles(x86)%\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs.Desktop\14.0