Skip to content

PowerShell script for Chocolatey package manager to setup Windows PCs with common freeware applications

License

Notifications You must be signed in to change notification settings

vii33/ChocoVanillaPackage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://twitter.com/vii33_official https://vii33.medium.com/

Header Image

The Choco Vanilla Package

PowerShell script for Chocolatey which installs common freeware applications, like Chrome, 7zip, git, and Python. This is meant to setup vanilla PCs. Installations are fully customizable in the script.

Motivation

When you set up a new Windows PC, you usually need to install a bunch of basic applications. Examples include a browser, PDF reader, text editor, zipping program, and so on. Doing this frequently can get to a hustle, especially if you also have to administer devices for your friends and family.

Furtunately, with Chocolatey there is a package manager for Windows. It allows you to install and update applications directly from the command line.

With this script, you can set up a vanilla Windows PC within minutes.

Short installation instructions

Install Chocolatey, download the script, and run it. You will be asked if the basic apps bundle or developer apps bundle should be installed. Chocolatey then pulls the applications from the official servers and installs them in the background.

For a more detailed description see section below.

Included Applications

All applications are very common freeware, so I refer you to the corresponding websites for further explanation.

Which of the apps are to be installed can be fully customized and extended. Simply delete, uncomment or add lines in the script.

(: Installed by default, : Optionally installed )

Basic Application Bundle

Category Applications Comments
Media Viewers 7zip
Notepad++
VLC Player
IrfanView (incl. Plugins)
Adobe Reader
Foxit Reader
Common freewares for all media formats, texts files, .zips, .raws, and PDFs.
For PDFs you can stick with the default Adobe Reader or alternatively choose Foxit Reader (my recommendation).
Browsers Google Chrome
Mozilla Firefox
Opera
Google Chrome will be installed by default. Alternatively, choose Firefox or Opera.
Cloud storage Dropbox
Google Drive
Microsoft OneDrive is pre-installed on every Windows 11 system, so you probably won't need the others.
Meetings Zoom
Microsoft Teams
Discord
Zoom and Microsoft Teams are common video conference tools (both personal and corporate). Zoom may be not allowed in your company, in this case, you should disable it. Discord gained a lot of attention in the last years, but is still disabled by default at the moment.
System administration Chocolatey GUI
WinDirStat
TeamViewer
CPU-Z
FreeCommander XE
These tools help for a better system administration on your machine. Check the links or disable if you don't know them.
Crypto KeePass
Veracrypt
KeePass is a lean open-source password manager. VeraCrypt is the successor of TrueCrypt (hard disk encryption).

Developer Application Bundle

Category Applications Comments
General Visual Studio Code
git
GitHub Desktop
Sourcetree
VS Code is a multipurpose coding editor. GitHub Desktop and Sourcetree are UIs for code management via git.
API Clients Postman
Insomnia
Postman is a popular client for calling APIs. A leaner alternative is Insomnia, which I can really recommend.
Cloud Azure CLI
AWS Vault
Azure CLI for local command-line development with Microsoft Azure and AWS Vault for Amazon's AWS cloud. Both are not installed by default.
Software Languages Anaconda (Miniconda)
Node.js
DotNet Core
Since Python is very common, I included the Miniconda management suite by default. Miniconda is the small version of Anaconda (without the bulk software). Other languages are hard to guess, please look them up by yourself.

Applications that need to be installed manually

Currently, Spotify fails upon installation and is therefore not included in the script.


Detailed installation instructions

Chocolatey installation

  1. Open PowerShell as admin (Win + X and select PowerShell (Admin))
  2. Paste the following line. This will run the official install script from Chocolatey.
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))  
  1. Chocolatey will be installed. It is normal for some warnings to appear.

If you are behind a proxy, check these instructions.

Download and modify the Vanilla script

  1. Clone this repo or download the .zip (then unzip the folder).
  2. Navigate to the downloaded folder and open up the script choco-install-apps.ps1 in Edit Mode (right-click menu)
  3. Enable or disable needed applications. The # sign comments a line out (disables it), deleting the leading # sign enables the line. See also section below.
  4. Save and close.

Execute Vanilla Script

  1. Open PowerShell as admin (Win + X and select PowerShell (Admin)) and navigate to the downloaded folder.
  2. Run the script choco-install-apps.ps1. If you get an error, then local scripts are disabled on your machine. To enable them, type
    PowerShell.exe -ExecutionPolicy UnRestricted -File choco-install-apps.ps1
  3. Wait and grab a vanilla chocolate :)

You probably want to tidy up your Windows Explorer right-click menu.

Script Content

The PowerShell script consists of a dictionary that contains the applications to install and their customized parameters (if needed). An example of a custom parameter is a different install location or the creation of a desktop shortcut.

There is one dictionary for basic applications and one for development applications. The dictionary is selected on user-startup.


Credits

Photograph by Casey Johnson on Unsplash. Image montage by me.

About

PowerShell script for Chocolatey package manager to setup Windows PCs with common freeware applications

Topics

Resources

License

Stars

Watchers

Forks