This PowerShell script automates the installation process for WinGet and its dependencies on a Windows Server 2019 system.
-
Clone or download this repository to your local machine.
-
Open PowerShell as an administrator.
-
Navigate to the directory where the script is located.
-
Run the script using the following command:
.\InstallWinget_WINSERV2019.ps1
The script performs the following tasks:
- Creates the WinGet folder if it doesn't exist.
- Installs VCLibs, Microsoft.UI.Xaml, and the latest WinGet from GitHub.
- Fixes permissions for the WindowsApps folder.
- Adds the WinGet installation path to the system's PATH environment variable.
- PowerShell
- Administrator privileges are required to run the script.
-
This script is specifically designed for Windows Server 2019.
-
Ensure that execution policy allows running PowerShell scripts. You can set it using:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
This project is licensed under the MIT License.