Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

12,561

Downloads of v 2.01:

389

Last Update:

20 May 2018

Package Maintainer(s):

Software Author(s):

  • Bill Curran

Tags:

bcurran3 instchoco choco chocolatey unofficial installer portable

(unofficial) InstChoco (Portable)

This is not the latest version of (unofficial) InstChoco (Portable) available.

  • 1
  • 2
  • 3

2.01 | Updated: 20 May 2018

Downloads:

12,561

Downloads of v 2.01:

389

Maintainer(s):

Software Author(s):

  • Bill Curran

(unofficial) InstChoco (Portable) 2.01

This is not the latest version of (unofficial) InstChoco (Portable) available.

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged:

This package was submitted (and approved) prior to automated virus scanning integration into the package moderation processs.

We recommend clicking the "Details" link to make your own decision on installing this package.

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install (unofficial) InstChoco (Portable), run the following command from the command line or from PowerShell:

>

To upgrade (unofficial) InstChoco (Portable), run the following command from the command line or from PowerShell:

>

To uninstall (unofficial) InstChoco (Portable), run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade instchoco -y --source="'INTERNAL REPO URL'" --version="'2.01'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade instchoco -y --source="'INTERNAL REPO URL'" --version="'2.01'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install instchoco
  win_chocolatey:
    name: instchoco
    version: '2.01'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'instchoco' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '2.01'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller instchoco
{
    Name     = "instchoco"
    Version  = "2.01"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'instchoco':
  ensure   => '2.01',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved as a trusted package on 20 May 2018.

Description

Screenshot of InstChoco in use

InstChoco - The ULTIMATE Chocolatey and Chocolatey packages (re)installer!

QUESTION: "Why do I need an installer for Chocolatey when I already have Chocolatey installed?"

ANSWER: You need InstChoco for the NEXT time you want to install Chocolatey and automate package (re)installation!

InstChoco is the evolution of an old batch file I used over the years to automate installing Chocolatey followed by a bunch of "choco install program -y" commands to install my standard set of packages. I eventually decided to make it a program and add many additional features as well as integrate with other Chocolatey packages I've created. What you see now is the culmination of many long days of work. I think InstChoco is the best it can be, but I'm always open to new features. Feel free to contact me with feedback. You can find InstChoco.exe in \ProgramData\chocolatey\lib\instchoco\tools.

FEATURES:

  • InstChoco uses ferventcoder/Rob's "Install with cmd.exe" method for installing Chocolatey.
  • InstChoco will enable up to four choco features if you pass them as parameters, i.e. allowGlobalConfirmation, failOnAutoUninstaller, allowEmptyChecksums, useRememberedArgumentsForUpgrades, etc.
  • InstChoco can download a packages.config file from the Internet and install packages from that downloaded file.
  • InstChoco will automatically search for a PACKAGES.CONFIG file in various locations on your computer and install packages from it if found.
  • InstChoco has baked in support for Choco Package List Backup to Local and Cloud. InstChoco will use the first found PACKAGES.CONFIG in the following order: current directory, Documents folder, HOMESHARE, Box, Dropbox, Google Drive, iCloudDrive, OneDrive, ReadyCLOUD, Nextcloud, Resilio Sync, Seafile, or Tonido Sync.
  • InstChoco has baked in support for Choco Persistent Packages. InstChoco will use PERSISTANTPACKAGES.CONFIG and install packages from it if found.
  • InstChoco has a baked in mini version of Choco Package List Backup to Local and Cloud to backup a list of your installed Chocolatey packages.
  • InstChoco has baked in support for Windows Active Directory domains. InstChoco will use various PACKAGES.CONFIG files based on domain and user account to install packages from them if found. Now you can easily standardize your organization with base Chocolatey package installs.

SPECIAL FEATURES FOR WINDOWS ACTIVE DIRECTORY DOMAINS:

  • InstChoco will use DOMAINNAMEPACKAGES.CONFIG and install packages from it if found. This allows Windows AD domain joined computers to have a commonly installed base setup of Chocolatey packages across all organizational computers. To use this feature, system administrators of Windows AD domains need to create a DOMAINNAMEPACKAGES.CONFIG file and put it in your logon server's NETLOGON directory; i.e. \LOGONSERVER\NETLOGON\DOMAINNAMEPACKAGES.CONFIG
  • InstChoco will use USERNAMEPACKAGES.CONFIG and install packages from it if found. This allows users of Windows AD domain joined computers to have their own specific Chocolatey packages installed for them, useful for first time setup and roaming users. To use this feature, system administrators or users of Windows AD domains need to create a USERNAMEPACKAGES.CONFIG file and put it in the root of the user's HOMESHARE; i.e. \LOGONSERVER\HOMESHARE\USERNAMEPACKAGES.CONFIG

Usage - please see Release Notes below (ran out of space).

PACKAGE NOTES


tools\InstChoco.exe
md5: 467620C41A2FC07180813462BFCEF3D5 | sha1: 79D0AD5196D09E9806A33CD82B672D852BCB190A | sha256: 3E89A851FB69070D09D80CF409C45612CE7678221ADE6AA248844C599D347256 | sha512: 5D0C6F03F36AEA7477360ED63F9BB7337F67651314A4224F4BE99D6C377CABC532BC0EE99EE71F31B6A6ECB5A50B4B8843D50B64BF5C453B7F9B6B88DF012003
tools\LICENSE.txt
==================== InstChoco ====================

InstChoco is Copyright 2018 Bill Curran and is free
for personal use, though donations are appreciated. 

Commercial use of InstChoco is forbidden without 
a paid license. Organizations who purchase an 
InstChoco license will receive a customized 
version of InstChoco with their organization's 
name embedded in the program and without 
corporate nag screens. 

To inquire about purchasing a license, please 
contact [email protected]

==================== InstChoco ====================
tools\VERIFICATION.txt
==================== InstChoco ====================

This InstChoco Chocolatey package was uploaded by the author, Bill Curran aka BCURRAN3.

v2.01 sha256: 3E89A851FB69070D09D80CF409C45612CE7678221ADE6AA248844C599D347256
v2.00 sha256: 87AC9E9E30193268058476E72DDA9593E4FDB795AC76029B70A5217FB63A436E
v1.30 sha256: D9B593CF4EBC390360DE1BA801103D0A3208F1602C2B10072500D80E09FF74DE
v1.21 sha256: 59498D9BB5AECB5EFE022F544D3537C5C3886C4478B1711FFDE2666AF0F83D75
v1.20 sha256: C41F13CDDA1B147F3B41E5C9F9FE4B9A5BFA8C9AFD722A23DF579D485F241354
v1.10 sha256: 4FD57C57A7F7BEC7891AD8CB8D645126336965F7151EB0B514E8A6F49DDF4076
v1.00 sha256: 99366BD182946F7AAAF0070244F8F96CC160274E85892F5AD3D54F658444908B

==================== InstChoco ====================

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
(unofficial) InstChoco (Portable) 2.10 1107 Sunday, February 24, 2019 Approved
(unofficial) InstChoco (Portable) 2.02 1182 Tuesday, May 22, 2018 Approved
(unofficial) InstChoco (Portable) 2.01 389 Sunday, May 20, 2018 Approved
(unofficial) InstChoco (Portable) 2.00 406 Thursday, May 17, 2018 Approved
(unofficial) InstChoco (Portable) 1.10 369 Tuesday, January 30, 2018 Approved
(unofficial) InstChoco (Portable) 1.00 540 Saturday, August 19, 2017 Approved

Usage:

OPTIONS AND SWITCHES:

-help, -?, /?

Displays this information.

-y

Installs Chocolatey and packages if a PACKAGES.CONFIG file is found.

-y -s URL

Installs Chocolatey and packages from specificed URL, i.e. http://website.com/directory/packagefilename.config

-y -browse

Installs Chocolatey and packages from a file you choose via Window's browser, interaction required.

-y -popular

Installs Chocolatey and a few popular packages.

-ynp, -np

Installs Chocolatey but no packages.

-b, -backup

Makes a backup list of your currently installed Chocolatey packages.

-bwv, -backupwithversions

Makes a backup list of your currently installed Chocolatey packages with versions.

-info

Displays InstChoco program information.

-license

Displays InstChoco license information.

Optional - You may pass up to 4 choco features to enable after other options and switches,
i.e. allowGlobalConfirmation failOnAutoUninstaller allowEmptyChecksums useRememberedArgumentsForUpgrades

CHANGELOG:

  • 2.00 - fixed bug with non-domain joined computers
  • 2.00 - Added -browse, -popular, -backup, -backupwithversions, -license options as well as many cosmetic changes. Added iCloudDrive support. Commercial use of InstChoco v2+ requires a paid license.
  • 1.30 - Added ability to download a packages.config file from the web and install packages from it.
  • 1.21 - Added Box, Nextcloud, and Seafile support to catch up with choco-package-list-backup.
  • 1.20 - Added domain support to install predefined packages for domain joined computers and user specific packages.
  • 1.11 - (unreleased) Added -ynp switch to skip installation of packages. (Install Chocolatey only)
  • 1.10 - Added Choco Package List Backup to Local and Cloud and choco persistent packages support for package (re)installation. Cosmetic changes. Checks for year 2018 or greater instead of 2017 or greater. Updated donation info. :)
  • 1.00 - initial release

This package has no dependencies.

Discussion for the (unofficial) InstChoco (Portable) Package

Ground Rules:

  • This discussion is only about (unofficial) InstChoco (Portable) and the (unofficial) InstChoco (Portable) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or (unofficial) InstChoco (Portable), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus