A fresh install of windows is good and all, but this feeling of joy comes to an end, as we realize that we have to download and install all the required programs.
We usually start by opening Edge Browser, installing our favorite browser, and then scavenge all over the internet for the programs we need to install.
This procedure is rather cumbersome. We no longer need to waste time looking for software all over the internet. All of this can be done with a package manager like Chocolatey.
-
Download the
main_script.ps1
file locally. -
Populate the
$packagesList
with your desired apps separated with commas. For example:#List of Packages $packagesList = "brave,deezer,notepadplusplus,discord,7zip,vscodium"
-
Save the file.
-
On your current folder, right-click and then click on
Open in terminal
-
Before running the script:
- Check ExecutionPolicy by running:
Get-ExecutionPolicy
If it returnsRestricted
, then runSet-ExecutionPolicy RemoteSigned
orSet-ExecutionPolicy Bypass -Scope Process
.
- Check ExecutionPolicy by running:
-
Then run:
.\main_script.ps1
and sit back.
The bonus.ps1
uses Github API to run this Repo remotely. Extending the capabilities of main_script.ps1
. For more information refer to the Automating Programs Installations with Chocolatey - Part 2