Skip to content

Open Chocolatey Reducer is a script that mimics the official Package Reducer available in the Pro and Business versions of Chocolatey.

License

Notifications You must be signed in to change notification settings

PixelPickaxe/open-chocolatey-reducer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

open-chocolatey-reducer

Open Chocolatey Reducer is a script that mimics the official Chocolatey Package Reducer available in the Pro and Business versions of Chocolatey.

How my program works

Open Chocolatey Reducer mimics the official Chocolatey Package Reducer by using Windows batch scripting to manually & recursively delete any 7z, zip, rar, gz, tar, sfx, iso, msi, msu, msp, and exe files in the "%APPDATA%\chocolatey" directory at the log-on of any user.

How the official program works

The official Chocolatey Package Reducer scans the "%APPDATA%\chocolatey" directory recursively for any 7z, zip, rar, gz, tar, sfx, iso, msi, msu, msp, and exe files. If it locates any of the listed file types, it deletes them. Additionally, it also reduces the file size of nupkg files. This is an effective way to remove unwanted installation files, but it's unfortunately locked behind a paywall. I highly encourage you to support Chocolatey if you feel so inclined.

Requirements

  • Working installation of Windows 7 / 8 / 8.1 / 10 / 11
  • Working installation of Chocolatey
  • Administrator access on your PC

Installation

  1. Extract "OCR_1.0.1.zip" into your Downloads folder. If you extract to a different directory, you'll have to edit the installation .bat file accordingly.

  2. Open the "Installer" directory located within the "OCR_1.0.1" folder that you just extracted.

  3. Open "(Step 1) Import Task into Task Scheduler"

  4. Import the "Open Chocolatey Reducer.xml" into Task Scheduler.

A guide on how to import tasks can be found here or elsewhere online.

  1. Return to the "Installer" directory.

  2. Right-click "(Step 2) Installer" and click "Run as administrator" from the context menu.

  3. Press any key to continue . . .

Post-Installation

  1. Navigate back to your Downloads folder and delete "OCR_1.0.1" and "OCR_1.0.1.zip"

  2. Tell your friends about this script :D Spread the word!

  3. Upon the next reboot, the script will become active.

License

Boost Software License - Version 1.0 - see LICENSE

About

Open Chocolatey Reducer is a script that mimics the official Package Reducer available in the Pro and Business versions of Chocolatey.

Topics

Resources

License

Stars

Watchers

Forks