Difference between revisions of "Winget"
Jump to navigation
Jump to search
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | https://learn.microsoft.com/en-us/windows/package-manager/winget/ | ||
+ | ``` | ||
+ | $progressPreference = 'silentlyContinue' | ||
+ | Write-Information "Downloading WinGet and its dependencies..." | ||
+ | Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle | ||
+ | Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile Microsoft.VCLibs.x64.14.00.Desktop.appx | ||
+ | Invoke-WebRequest -Uri https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.7.3/Microsoft.UI.Xaml.2.7.x64.appx -OutFile Microsoft.UI.Xaml.2.7.x64.appx | ||
+ | # Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.5.2201/e9f07317387242099dd02cb57aa04c37_License1.xml | ||
+ | Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.5.2201/e9f07317387242099dd02cb57aa04c37_License1.xml -out license.xml | ||
+ | Add-AppxPackage Microsoft.VCLibs.x64.14.00.Desktop.appx | ||
+ | Add-AppxPackage Microsoft.UI.Xaml.2.7.x64.appx | ||
+ | Add-AppxPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle | ||
+ | # Add-AppxPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -LicensePath e9f07317387242099dd02cb57aa04c37_License1.xml | ||
+ | # Add-ProvisionedAppxPackage -PackagePath Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -LicensePath 7bcb1a0ab33340daa57fa5b81faec616_License1.xml -Online | ||
+ | ``` | ||
+ | |||
+ | https://github.com/microsoft/winget-cli/releases | ||
+ | ``` | ||
+ | Add-ProvisionedAppxPackage -PackagePath Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -LicensePath 7bcb1a0ab33340daa57fa5b81faec616_License1.xml -Online | ||
+ | ``` | ||
+ | |||
+ | |||
+ | ``` | ||
+ | winget upgrade --all | ||
+ | ``` | ||
+ | |||
``` | ``` | ||
winget list | findstr -i power | winget list | findstr -i power | ||
winget search powerhsell | winget search powerhsell | ||
winget upgrade powershell --version 7.3.4 | winget upgrade powershell --version 7.3.4 | ||
+ | winget install --id Microsoft.Powershell --source winget | ||
winget upgrade Microsoft.WindowsTerminal | winget upgrade Microsoft.WindowsTerminal | ||
winget install -e --id Canonical.Multipass | winget install -e --id Canonical.Multipass | ||
+ | winget install Oracle.VirtualBox | ||
+ | set PATH=%PATH%;"C:\Program Files\Oracle\VirtualBox" | ||
+ | multipass set local.driver=virtualbox | ||
+ | |||
+ | winget install Vim.Vim | ||
+ | Set-Alias vim 'C:\Program Files\Vim\vim90\vim.exe' | ||
+ | ``` | ||
+ | |||
+ | Set Terminal default version to powershell 7 | ||
+ | ``` | ||
+ | Open your powershell (old version) -> click on the arrow down button -> Settings -> Startup -> Default profile -> choose PowerShell 7.3.0 icon | ||
``` | ``` | ||
Latest revision as of 16:21, 12 November 2023
https://learn.microsoft.com/en-us/windows/package-manager/winget/
$progressPreference = 'silentlyContinue' Write-Information "Downloading WinGet and its dependencies..." Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile Microsoft.VCLibs.x64.14.00.Desktop.appx Invoke-WebRequest -Uri https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.7.3/Microsoft.UI.Xaml.2.7.x64.appx -OutFile Microsoft.UI.Xaml.2.7.x64.appx # Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.5.2201/e9f07317387242099dd02cb57aa04c37_License1.xml Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.5.2201/e9f07317387242099dd02cb57aa04c37_License1.xml -out license.xml Add-AppxPackage Microsoft.VCLibs.x64.14.00.Desktop.appx Add-AppxPackage Microsoft.UI.Xaml.2.7.x64.appx Add-AppxPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle # Add-AppxPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -LicensePath e9f07317387242099dd02cb57aa04c37_License1.xml # Add-ProvisionedAppxPackage -PackagePath Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -LicensePath 7bcb1a0ab33340daa57fa5b81faec616_License1.xml -Online
https://github.com/microsoft/winget-cli/releases
Add-ProvisionedAppxPackage -PackagePath Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -LicensePath 7bcb1a0ab33340daa57fa5b81faec616_License1.xml -Online
winget upgrade --all
winget list | findstr -i power winget search powerhsell winget upgrade powershell --version 7.3.4 winget install --id Microsoft.Powershell --source winget winget upgrade Microsoft.WindowsTerminal winget install -e --id Canonical.Multipass winget install Oracle.VirtualBox set PATH=%PATH%;"C:\Program Files\Oracle\VirtualBox" multipass set local.driver=virtualbox winget install Vim.Vim Set-Alias vim 'C:\Program Files\Vim\vim90\vim.exe'
Set Terminal default version to powershell 7
Open your powershell (old version) -> click on the arrow down button -> Settings -> Startup -> Default profile -> choose PowerShell 7.3.0 icon
https://github.com/PowerShell/PowerShell/releases/download/v7.3.4/PowerShell-7.3.4-win-x64.msi