Skip to content

Learn how to automate and simplify post-installation tasks on Windows using winget and chocolatey.

License

Notifications You must be signed in to change notification settings

smabdullah/post-install-windows

Repository files navigation

post-install-windows

Automate and simplify post-installation tasks on Windows using Winget and Chocolatey.

visual

Setting up a freshly installed Windows 10 or 11 computer can be tedious and time-consuming, especially when you have to manually install each application you need. This tutorial will guide you through automating most of the package installation process, saving you time and ensuring you have a reusable setup for future reinstalls.

We will use Winget, a built-in Windows package manager, and Chocolatey, a popular package management tool, to streamline the process.

Table of Contents

Prerequisites

Before starting, ensure you have:

  • Windows 10 (1809 or later) or Windows 11
  • Administrator access
  • Active internet connection

Step-by-Step Guide

Step 1: Install Chocolatey Using Winget

  1. Open a terminal as an administrator.
  2. Run the following command to install Chocolatey:
winget install Chocolatey.Chocolatey

Step 2: Close the Terminal.

After the installation completes, close the terminal.

Step 3: Create a Configuration File

  1. Create a configuration file (e.g., packages.config) to list all the packages you want to install. There is an example configuration file included in this repository. Use it as a reference.
  2. Visit the Chocolatey package repository to find the package names for your desired applications (e.g., googlechrome for Chrome)
  3. Add these package names to your configuration file.

Step 4: Install Packages from the Configuration File

  1. Open a terminal as an administrator.
  2. Run the following command to install all the packages:
choco install packages.config --yes

Replace packages.config with the name of your configuration file.

Chocolatey will begin installing the listed packages. This process is fully automated and requires no input, allowing you to focus on other tasks while it runs.

Step 5: Review the Installation Log

Once the process completes, Chocolatey will display a summary of successes and failures. If a package fails to install, you can try installing it manually. For example, I encountered as issue with googledrive and had to install it separately.

Step 6: Restart your Computer

After the installations are complete, restart your computer to ensure everything is set up correctly. Enjoy your newly configured system!

Package Categories

The example packages.config includes:

Development Tools

  • Git: Version control
  • VS Code: Code editor
  • Notepad++: Text editor

Web Browsers

  • Google Chrome
  • Brave: Privacy-focused browser

System Utilities

  • PowerToys: Windows power-user tools
  • Everything: Fast file search
  • 7zip: File compression
  • HWiNFO: System information
  • LocalSend: File sharing

AI & Productivity

  • Ollama: Local AI models
  • PDFGear: PDF viewer and editor

Troubleshooting

Common Issues

  1. Package Installation Failures

    • Check your internet connection
    • Try installing the package manually by running choco install [package-name]
  2. Permission Issues

    • Ensure you are running as administrator
  3. Chocolatey Installation Issues

    • Try installing manually from chocolatey.org
    • Check system requirements

Maintenance

Updating Packages

To update all installed packages:

choco upgrade all --yes

To update specific packages:

choco upgrade [package-name]

Uninstalling Packages

To remove a package:

choco uninstall [package-name]

About

Learn how to automate and simplify post-installation tasks on Windows using winget and chocolatey.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published