diff --git a/.build/compile.step b/.build/compile.step index df0452e71d..62aaf4ec6b 100644 --- a/.build/compile.step +++ b/.build/compile.step @@ -108,14 +108,12 @@ diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index fce17313d4..2bfa507794 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -2,7 +2,7 @@ REPORTING A SECURITY FINDING? Stop, this is not the correct place to provide a security disclosure. -Please go to https://chocolatey.org/security for the proper disclosure process. +Please go to https://docs.chocolatey.org/en-us/information/security for the proper disclosure process. BEFORE YOU SUBMIT AN ISSUE: diff --git a/.github/ISSUE_TEMPLATE/AskQuestion.md b/.github/ISSUE_TEMPLATE/AskQuestion.md index e8d529bfe0..a2c10d7513 100644 --- a/.github/ISSUE_TEMPLATE/AskQuestion.md +++ b/.github/ISSUE_TEMPLATE/AskQuestion.md @@ -5,7 +5,7 @@ about: Do you have a question? STOP RIGHT HERE - DO NOT CREATE A TICKET FOR A QUESTION ON THIS REPOSITORY -1. Start with https://chocolatey.org/docs/troubleshooting (Troubleshooting) and https://chocolatey.org/docs/chocolatey-faqs (FAQs) to see if your question or issue already has an answer. You can also explore https://chocolatey.org/docs (which are pretty comprehensive, but not always the most searchable). +1. Start with https://docs.chocolatey.org/en-us/troubleshooting (Troubleshooting) and https://docs.chocolatey.org/en-us/faqs (FAQs) to see if your question or issue already has an answer. You can also explore https://docs.chocolatey.org/en-us/ (which are pretty comprehensive, but not always the most searchable). 2. If not found or resolved, please see https://chocolatey.org/support to see what avenues are available to you based on whether you are an open source user or a licensed customer (have a commercial edition). diff --git a/.github/ISSUE_TEMPLATE/ReportPackageIssue.md b/.github/ISSUE_TEMPLATE/ReportPackageIssue.md index 8cb2de665b..ddf94ac11e 100644 --- a/.github/ISSUE_TEMPLATE/ReportPackageIssue.md +++ b/.github/ISSUE_TEMPLATE/ReportPackageIssue.md @@ -5,14 +5,14 @@ about: Something went wrong with an installation? Want a package to be added to STOP RIGHT HERE - DO NOT CREATE A TICKET FOR PACKAGES ON THIS REPOSITORY -This is the repository for choco.exe, the command line interface for Chocolatey, and issues/feature suggestions should be limited to only choco. For a package failure, typically you would be reporting an issue with a package on the community package repository, which is not what this repository represents. In fact, the community repository and all of its packages represents about 5% of the packages in existence and less than half of the usage of choco itself. +This is the repository for choco.exe, the command line interface for Chocolatey, and issues/feature suggestions should be limited to only choco. For a package failure, typically you would be reporting an issue with a package on the community package repository, which is not what this repository represents. In fact, the community repository and all of its packages represents about 5% of the packages in existence and less than half of the usage of choco itself. In other words Chocolatey != Chocolatey.org Packages. For all things packages, you have two routes: -1. If you are having issue with a package or you want to see an enhancement, please see https://chocolatey.org/docs/package-triage-process (Package Triage Process / Becoming a maintainer of existing packages). -2. If you are looking for packages to be added to the community package repository (aka https://chocolatey.org/packages), please see https://chocolatey.org/docs/package-triage-process#package-request-package-missing (Package Requests). +1. If you are having issue with a package or you want to see an enhancement, please see https://docs.chocolatey.org/en-us/community-repository/users/package-triage-process (Package Triage Process / Becoming a maintainer of existing packages). +2. If you are looking for packages to be added to the community package repository (aka https://community.chocolatey.org/packages), please see https://docs.chocolatey.org/en-us/community-repository/users/package-triage-process#package-request-package-missing (Package Requests). diff --git a/.github/ISSUE_TEMPLATE/ReportWebsiteIssue.md b/.github/ISSUE_TEMPLATE/ReportWebsiteIssue.md index f9927c6e99..fa551b2019 100644 --- a/.github/ISSUE_TEMPLATE/ReportWebsiteIssue.md +++ b/.github/ISSUE_TEMPLATE/ReportWebsiteIssue.md @@ -1,13 +1,13 @@ --- name: Website - Report Issue / Suggest Feature -about: Something weird about https://chocolatey.org or do you want to suggest a feature? +about: Something weird about https://community.chocolatey.org or do you want to suggest a feature? --- STOP RIGHT HERE - DO NOT CREATE A TICKET FOR THE WEBSITE ON THIS REPOSITORY This is the repository for choco.exe, the command line interface for Chocolatey, and issues/feature suggestions should be limited to only choco. -For Chocolatey Gallery aka Chocolatey Community Package Repository, you will need to head over to https://github.com/chocolatey/chocolatey.org and file a ticket there. +For Chocolatey Gallery aka Chocolatey Community Package Repository, you will need to head over to https://github.com/chocolatey/home and file a ticket there. diff --git a/.github/SECURITY.md b/.github/SECURITY.md index fc8bb5354b..43998ec9bb 100644 --- a/.github/SECURITY.md +++ b/.github/SECURITY.md @@ -2,5 +2,5 @@ Security reports should never start out in the open. Please follow up directly with the team if you have a contact. If not you can always start with the -information at https://chocolatey.org/security to see instructions on how to -provide the disclosure. Thank you! +information at https://docs.chocolatey.org/en-us/information/security to see +instructions on how to provide the disclosure. Thank you! diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..73b3553bb8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: Chocolatey Builds + +on: + # Trigger on pushes to master and stable, or with pull requests + push: + branches: + - master + - stable + pull_request: + branches: + - master + - stable + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + # Build using mono on Ubuntu + ubuntu-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build with Mono + run: | + chmod +x build.sh + $GITHUB_WORKSPACE//build.sh -v + # Build on Windows + windows-build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - name: Build with .Net Framework + run: .\build.bat -v + # Build using mono on MacOS + macos-build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - name: Build with Mono + run: | + chmod +x build.sh + $GITHUB_WORKSPACE//build.sh -v \ No newline at end of file diff --git a/.gitignore b/.gitignore index 301537b097..32976f4a68 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,5 @@ SolutionVersion.vb src/_dotCover.chocolatey/ src/_dotTrace.chocolatey/ src/chocolatey.sln.GhostDoc.xml + +docs/generated \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index bf92067bca..e1f2471ade 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: csharp +dist: bionic mono: - - 5.20.1 + - 6.12.0 install: - sudo apt-get install mono-devel - nuget restore src/chocolatey.sln diff --git a/CHANGELOG.md b/CHANGELOG.md index 93d10607aa..a9fb907c5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -156,7 +156,7 @@ We've also brought in the long desired logging with no colorization. You can set ## [0.10.8](https://github.com/chocolatey/choco/issues?q=milestone%3A0.10.8+is%3Aclosed) (August 30, 2017) -With this release, Package Parameters are fully supported from both the user side and the packaging side. Check out [the documentation](https://chocolatey.org/docs/helpers-get-packageparameters) and check out the [walkthrough](https://chocolatey.org/docs/how-to-parse-package-parameters-argument) on how to use package parameters in your packaging. Note if you are pushing packages to the community repository, you must continue to take a dependency on the `chocolatey-core.extension` as a polyfill for older versions until at least six months after a new feature is released. +With this release, Package Parameters are fully supported from both the user side and the packaging side. Check out [the documentation](https://docs.chocolatey.org/en-us/create/functions/get-packageparameters) and check out the [walkthrough](https://docs.chocolatey.org/en-us/guides/create/parse-packageparameters-argument) on how to use package parameters in your packaging. Note if you are pushing packages to the community repository, you must continue to take a dependency on the `chocolatey-core.extension` as a polyfill for older versions until at least six months after a new feature is released. What you can do with logging has greatly increased your ability to have more power over how it works and deeper output to determine errors (we've expanded `--trace` [#1379](https://github.com/chocolatey/choco/issues/1379)). This release also gives packagers and users more power when working with the AutoUninstaller - opt-out ([#1257](https://github.com/chocolatey/choco/issues/1257)) and passing arguments to the uninstaller ([#1133](https://github.com/chocolatey/choco/issues/1133)). @@ -463,7 +463,7 @@ What was planned for 0.9.10.4 is now 0.10.0. This is due partly to a breaking ch ### BREAKING CHANGES * [Security] Checksum requirement and enhancements - see [#112](https://github.com/chocolatey/choco/issues/112) -Checksums in package scripts are meant as a measure to validate the originally intended downloaded resources used in the creation of a package are the same files that are received at a future date. This also ensures that the same files that are checked by all parts of moderation (if applicable) are the same files that are received by users for a package. This is seen mostly on the community repository because it is public and packages are subject to copyright laws (distribution rights), which typically requires the package scripts to download software from the official distribution locations. The Chocolatey framework has had the ability to use checksums in package scripts since [July 2014](https://chocolatey.org/packages/chocolatey/0.9.8.24#releasenotes). +Checksums in package scripts are meant as a measure to validate the originally intended downloaded resources used in the creation of a package are the same files that are received at a future date. This also ensures that the same files that are checked by all parts of moderation (if applicable) are the same files that are received by users for a package. This is seen mostly on the community repository because it is public and packages are subject to copyright laws (distribution rights), which typically requires the package scripts to download software from the official distribution locations. The Chocolatey framework has had the ability to use checksums in package scripts since [July 2014](https://community.chocolatey.org/packages/chocolatey/0.9.8.24#releasenotes). **What is the requirement?** choco will now fail if a package download resources from HTTP/FTP and does not use checksums to verify those downloaded resources. The requirement for HTTP/FTP is [#112](https://github.com/chocolatey/choco/issues/112). We are considering also requiring it for [HTTPS (#895)](https://github.com/chocolatey/choco/issues/895) as well. You can optionally set a feature (`allowEmptyChecksumsSecure`) to ensure packages using HTTPS also use checksums. @@ -474,11 +474,11 @@ Checksums in package scripts are meant as a measure to validate the originally i **Can I shut this behavior off or opt out per package?** You can shut off the checksum requirement by enabling the feature `allowEmptyChecksums`. This will return Chocolatey to previous behavior. We strongly recommend against it. -You can shut it off or turn it per package install/upgrade with `--allow-empty-checksums` and `--require-checksums`, respectively. See https://chocolatey.org/docs/commands-install / https://chocolatey.org/docs/commands-upgrade. +You can shut it off or turn it per package install/upgrade with `--allow-empty-checksums` and `--require-checksums`, respectively. See https://docs.chocolatey.org/en-us/choco/commands/install / https://docs.chocolatey.org/en-us/choco/commands/upgrade. You can also disable the feature `allowEmptyChecksumsSecure` to enforce checksums for packages that download from secure locations (HTTPS). -**Other things I should know?** Users also now have the ability to pass their own checksums and checksumtypes into the install. See https://chocolatey.org/docs/commands-install / https://chocolatey.org/docs/commands-upgrade. +**Other things I should know?** Users also now have the ability to pass their own checksums and checksumtypes into the install. See https://docs.chocolatey.org/en-us/choco/commands/install / https://docs.chocolatey.org/en-us/choco/commands/upgrade. ### KNOWN ISSUES * [Known Issues](https://github.com/chocolatey/choco/labels/Bug) @@ -552,7 +552,7 @@ You can also disable the feature `allowEmptyChecksumsSecure` to enforce checksum ## [0.9.10](https://github.com/chocolatey/choco/issues?q=milestone%3A0.9.10+is%3Aclosed) (June 17, 2016) -![Chocolatey Logo](https://cdn.rawgit.com/chocolatey/choco/14a627932c78c8baaba6bef5f749ebfa1957d28d/docs/logo/chocolateyicon.gif "Chocolatey") +![Chocolatey Logo](https://rawcdn.githack.com/chocolatey/choco/14a627932c78c8baaba6bef5f749ebfa1957d28d/docs/logo/chocolateyicon.gif "Chocolatey") The "I got 99 problems, but a package manager ain't one" release. With the release of 0.9.10 (or if you prefer 0.9.10.0), we're about to make everything 100% better in your Windows package management world. We've addressed over 100 features and bugs in this release. We looked at how we could improve PowerShell and we've come out with a [competely internal host](https://github.com/chocolatey/choco/issues/8) that can Prompt and Read-Host in a way that times out and selects default values after a period of time. Speaking of PowerShell, how about some tab completion `choco <tab>` to `choco install node<tab>`? How about never having to [close and reopen your shell again](https://github.com/chocolatey/choco/issues/664)? @@ -562,7 +562,7 @@ Here's one you probably never knew existed - extensions. Chocolatey has had the We redesigned our `choco new` default packaging template and we've made managing templates as easy as managing packages. -`choco search`/`choco list` has so many enhancements, you may not need to visit dot org again. [See it in action](https://chocolatey.org/docs/commands-list#see-it-in-action). +`choco search`/`choco list` has so many enhancements, you may not need to visit dot org again. [See it in action](https://docs.chocolatey.org/en-us/choco/commands/list#see-it-in-action). * [search -v provides moderation related information and a world of nuspec information](https://github.com/chocolatey/choco/issues/493) * [search by id only](https://github.com/chocolatey/choco/issues/663) * [search by id exact](https://github.com/chocolatey/choco/issues/453) @@ -615,8 +615,8 @@ This further restricts the default installation location by removing all permiss * Uninstall-ChocolateyEnvironmentVariable function - see [#772](https://github.com/chocolatey/choco/issues/772) * Get-UninstallRegistryKey function - see [#739](https://github.com/chocolatey/choco/issues/739) * Pro/Business - Ubiquitous Install Directory Switch - see [#258](https://github.com/chocolatey/choco/issues/258) - * Pro/Business - Runtime Virus Scanning - see [virus scanning](https://chocolatey.org/docs/features-virus-check) - * Pro/Business - Private CDN cache for downloads - see [private CDN cache](https://chocolatey.org/docs/features-private-cdn) + * Pro/Business - Runtime Virus Scanning - see [virus scanning](https://docs.chocolatey.org/en-us/features/virus-check) + * Pro/Business - Private CDN cache for downloads - see [private CDN cache](https://docs.chocolatey.org/en-us/features/private-cdn) * Pro/Business - Sync "choco installed status" with "Windows installed status" - see [#567](https://github.com/chocolatey/choco/issues/567) ### BUG FIXES @@ -994,13 +994,13 @@ We'll try to capture everything here that you should know about. Please call `ch ### FEATURES * In app documentation! Use `choco -?`, `choco -h` or `choco commandName -?` to learn about each command, complete with examples! - * WhatIf/Noop mode for all commands (`--noop` can also be specified as `-whatif`) - see [Chocolatey #263](https://github.com/chocolatey/chocolatey/issues/263) and [Default Options and Switches](https://chocolatey.org/docs/commands-reference#how-to-pass-options-switches) + * WhatIf/Noop mode for all commands (`--noop` can also be specified as `-whatif`) - see [Chocolatey #263](https://github.com/chocolatey/chocolatey/issues/263) and [Default Options and Switches](https://docs.chocolatey.org/en-us/choco/commands#how-to-pass-options-switches) * Performs like a package manager, expect to see queries failing because of unmet dependency issues. * **New Commands:** - 1. `pin` - Suppress upgrades. This allows you to 'pin' an install to a particular version - see [#1](https://github.com/chocolatey/choco/issues/1), [Chocolatey #5](https://github.com/chocolatey/chocolatey/issues/5) and [Pin Command](https://chocolatey.org/docs/commands-pin) - 2. `apikey` - see [ApiKey Command](https://chocolatey.org/docs/commands-apikey) - 3. `new` - see [New Command](https://chocolatey.org/docs/commands-new) and [Chocolatey #157](https://github.com/chocolatey/chocolatey/issues/157) - * New ways to pass arguments! See [How to Pass Options/Switches](https://chocolatey.org/docs/commands-reference#how-to-pass-options-switches) + 1. `pin` - Suppress upgrades. This allows you to 'pin' an install to a particular version - see [#1](https://github.com/chocolatey/choco/issues/1), [Chocolatey #5](https://github.com/chocolatey/chocolatey/issues/5) and [Pin Command](https://docs.chocolatey.org/en-us/choco/commands/pin) + 2. `apikey` - see [ApiKey Command](https://docs.chocolatey.org/en-us/create/commands/api-key) + 3. `new` - see [New Command](https://docs.chocolatey.org/en-us/create/commands/new) and [Chocolatey #157](https://github.com/chocolatey/chocolatey/issues/157) + * New ways to pass arguments! See [How to Pass Options/Switches](https://docs.chocolatey.org/en-us/choco/commands#how-to-pass-options-switches) * Did we mention there is a help menu that is actually helpful now? Shiny! * AutoUninstaller!!!! But it is not enabled by default this version. See [#15](https://github.com/chocolatey/choco/issues/15), [#9](https://github.com/chocolatey/choco/issues/9) and [Chocolatey #6](https://github.com/chocolatey/chocolatey/issues/6) * **New Helpers:** @@ -1011,7 +1011,7 @@ Probably a lot of bug fixes that may not make it here, but here are the ones we * Fix - Cannot upgrade from prerelease to same version released - see [Chocolatey #122](https://github.com/chocolatey/chocolatey/issues/122) * Fix - install `--force` should not use cache - see [Chocolatey #199](https://github.com/chocolatey/chocolatey/issues/199) - * Fix - force dependencies as well - see [--force-dependencies](https://chocolatey.org/docs/commands-install) and [Chocolatey #199](https://github.com/chocolatey/chocolatey/issues/199) + * Fix - force dependencies as well - see [--force-dependencies](https://docs.chocolatey.org/en-us/choco/commands/install) and [Chocolatey #199](https://github.com/chocolatey/chocolatey/issues/199) * Fix - Chocolatey should not stop on error - see [Chocolatey #192](https://github.com/chocolatey/chocolatey/issues/192) * Fix - Upgrading does not remove previous version - see [Chocolatey #259](https://github.com/chocolatey/chocolatey/issues/259) * Fix - Non-elevated shell message spills errors - see [Chocolatey #540](https://github.com/chocolatey/chocolatey/issues/540) @@ -1036,7 +1036,7 @@ Probably a lot of bug fixes that may not make it here, but here are the ones we * Add $env:CHOCOLATEY_VERSION - see [Chocolatey #251](https://github.com/chocolatey/chocolatey/issues/251) * Replace ascii cue with visual cues - see [Chocolatey #376](https://github.com/chocolatey/chocolatey/pull/376) * Uninstall all versions of an app - see [Chocolatey #389](https://github.com/chocolatey/chocolatey/issues/389) - * Add parameters in packages.config files - see [Packages.config](https://chocolatey.org/docs/commands-install#packages.config), [Chocolatey #472](https://github.com/chocolatey/chocolatey/issues/472), and [#10](https://github.com/chocolatey/choco/issues/10) + * Add parameters in packages.config files - see [Packages.config](https://docs.chocolatey.org/en-us/choco/commands/install#packages.config), [Chocolatey #472](https://github.com/chocolatey/chocolatey/issues/472), and [#10](https://github.com/chocolatey/choco/issues/10) * Choco pack should support `-version` - see [Chocolatey #526](https://github.com/chocolatey/chocolatey/issues/526) * Enhancements to Start-ChocolateyProcessAsAdmin - see [Chocolatey #564](https://github.com/chocolatey/chocolatey/pull/564) * Install-ChocolateyFileAssociation - add label to new file types - see [Chocolatey #564](https://github.com/chocolatey/chocolatey/pull/564) diff --git a/CHANGELOG_LICENSED.md b/CHANGELOG_LICENSED.md index 9933f78cb9..7354b9c3e4 100644 --- a/CHANGELOG_LICENSED.md +++ b/CHANGELOG_LICENSED.md @@ -93,7 +93,7 @@ When we first released package reducer, it was in a preview mode to allow for fo ### FEATURES * Run background service interactively - sometimes you install applications that are unattended but cannot be silent. -If you want self-service to interactively manage installations, run `choco feature enable --name=useBackgroundServiceInteractively`. This requires that you use the `ChocolateyLocalAdmin` account with the Chocolatey-managed password as passwords are not stored and the service would need to produce that at runtime. There are some security considerations and why this is not turned on by default. Please see [interactive self-service consideration](https://chocolatey.org/docs/features-agent-service#interactive-self-service-consideration). +If you want self-service to interactively manage installations, run `choco feature enable --name=useBackgroundServiceInteractively`. This requires that you use the `ChocolateyLocalAdmin` account with the Chocolatey-managed password as passwords are not stored and the service would need to produce that at runtime. There are some security considerations and why this is not turned on by default. Please see [interactive self-service consideration](https://docs.chocolatey.org/en-us/features/self-service-anywhere#interactive-self-service-consideration). ### BUG FIXES * Windows Service Management Functions: @@ -160,7 +160,7 @@ If you want self-service to interactively manage installations, run `choco featu ### IMPROVEMENTS * Self-Service / Background Mode: - * Allow commands to be configurable. Covered in more detail at https://chocolatey.org/docs/features-agent-service#setup. + * Allow commands to be configurable. Covered in more detail at https://docs.chocolatey.org/en-us/features/self-service-anywhere#setup. ## 1.12.3 (September 8, 2017) @@ -231,13 +231,13 @@ Among the bug fixes, we've brought Package Internalizer to the MSP edition of Ch If you have a significant number of Chocolatey packages you manage, you may notice that you also may have a pretty significant space usage under the Chocolatey lib directory. Package reducer automatically decreases the size of nupkg files to around 5KB and removes installers and zips automatically from your package install directories. This may allow you to save GBs of usage for a large amount of packages being managed. - To learn more about Package Reducer and `choco optimize`, please see https://chocolatey.org/docs/features-package-reducer. + To learn more about Package Reducer and `choco optimize`, please see https://docs.chocolatey.org/en-us/features/package-reducer. * Package Audit (C4B) - Learn Who and When Reporting is very important, and auditing not only when your installations occurred but who installed them can be critical. There is nothing that presents this kind of information as easily as you will be able to gather it with Chocolatey for Business (C4B) and Package Audit. - To learn more about Package Audit, please see https://chocolatey.org/docs/features-package-audit. + To learn more about Package Audit, please see https://docs.chocolatey.org/en-us/features/package-audit. ### IMPROVEMENTS * Package Internalizer (Choco Download): @@ -271,18 +271,18 @@ This release brings Package Throttle, Package Synchronizer's "Show All Packages If you are using self-service functionality, when you upgrade to v1.10, you will need to go to those sources that you allow to be self-service and ensure they are selected to allow self-service (`choco source list`). Otherwise by default users are going to be locked out of using those sources. The move to opt-in is best from a security standpoint and we want to give you the ability to have folks opt-in to the better behavior. - To change this behavior back to the way it was previously, simply run `choco disable -n useBackgroundServiceWithSelfServiceSourcesOnly`. For more details see `choco feature list` or https://chocolatey.org/docs/chocolatey-configuration#self-service-background-mode + To change this behavior back to the way it was previously, simply run `choco disable -n useBackgroundServiceWithSelfServiceSourcesOnly`. For more details see `choco feature list` or https://docs.chocolatey.org/en-us/configuration#self-service-background-mode ### FEATURES * Package Throttle - Throttle Bandwidth / Rate Limit Download Speeds - By default, Chocolatey downloads packages and resources as fast as it can. Package Throttle gives you a way to slow down Chocolatey so it doesn't overwhelm any bandwidth restrictions you may have. This is done as both a setting and per package install/upgrade. This is in bits per second (not bytes, bits is what most network traffic is measured in). When adding at runtime, simply add `--bps=VALUE`. To set the value in the configuration, call `choco config set maximumDownloadRateBitsPerSecond VALUE`. For more details see https://chocolatey.org/docs/features-package-reducer. + By default, Chocolatey downloads packages and resources as fast as it can. Package Throttle gives you a way to slow down Chocolatey so it doesn't overwhelm any bandwidth restrictions you may have. This is done as both a setting and per package install/upgrade. This is in bits per second (not bytes, bits is what most network traffic is measured in). When adding at runtime, simply add `--bps=VALUE`. To set the value in the configuration, call `choco config set maximumDownloadRateBitsPerSecond VALUE`. For more details see https://docs.chocolatey.org/en-us/features/package-reducer. * Package Synchronizer's Show All Packages In Programs and Features This means packages that do not have an underlying installation can still show up in Programs and Features and be managed there as well, which allows for legacy inventory reporting systems to see all the software that is installed in the same way that Chocolatey is able to. A picture can probably best explain this feature, check out [All Package In Programs and Features](https://raw.githubusercontent.com/chocolatey/choco-wiki/e619d5d25018f9362d50749ee86554ebc4f4f04d/images/features/features_packages_in_programs_and_features.png) - To turn this feature on, simply run the following command `choco feature enable -n showAllPackagesInProgramsAndFeatures`. For more details on the feature, see https://chocolatey.org/docs/chocolatey-configuration#package-synchronizer and https://chocolatey.org/docs/features-synchronize. This does require one additional run of `choco` to take affect (same when disabling the feature), hopefully we can remove that in the future. + To turn this feature on, simply run the following command `choco feature enable -n showAllPackagesInProgramsAndFeatures`. For more details on the feature, see https://docs.chocolatey.org/en-us/configuration#package-synchronizer and https://docs.chocolatey.org/en-us/features/package-synchronization/packages-to-programs. This does require one additional run of `choco` to take affect (same when disabling the feature), hopefully we can remove that in the future. * Package-less Install / Direct Installer - Install and upgrade directly from installers (MSIs, EXEs, etc)! @@ -383,7 +383,7 @@ This release brings Package Throttle, Package Synchronizer's "Show All Packages This release brings the coveted PackageBuilder UI to the Pro+ license (minus auto detection) and adds a tabbed interface that allows you to fill out the entire nuspec. Package Synchronizer now has `choco sync` to compliment the automatic synchronization. The sync command brings all unmanaged software in Programs and Features under Chocolatey management. ### FEATURES - * Package Synchronizer v2 - `choco sync` to associate existing packages with unmanaged software - see https://chocolatey.org/docs/features-synchronize#sync-command + * Package Synchronizer v2 - `choco sync` to associate existing packages with unmanaged software - see https://docs.chocolatey.org/en-us/features/package-synchronization/sync-command#sync-command * Package Builder UI: * Starts at Professional edition (minus autodetection) * Tabbed interface @@ -418,7 +418,7 @@ This release brings the coveted PackageBuilder UI to the Pro+ license (minus aut ## 1.8.4 (January 5, 2017) ### FEATURES - * Support Self-Service Install / Background Mode - see https://chocolatey.org/docs/features-agent-service + * Support Self-Service Install / Background Mode - see https://docs.chocolatey.org/en-us/features/self-service-anywhere * Manage Windows Services We've introduced some service management functions to the business edition. `Install-ChocolateyWindowsService`, `Uninstall-ChocolateyWindowsService`, `Start-ChocolateyWindowsService`, and `Stop-ChocolateyWindowsService`. Those will be documented soon enough. For now some example code should suffice. @@ -513,7 +513,7 @@ Uninstall-ChocolateyWindowsService -Name 'chocolatey-agent' ## 1.8.0 (November 16, 2016) -Package Builder has some major improvements in this release, including a new UI! See https://chocolatey.org/blog/package-builder-announcements for details! While building some of the features for the enhancements for this release, we've made quite a few tweaks and fixes to Package Builder and we think you are going to like the results. Being able to generate packages from the installed software on a reference system is huge (`choco new --from-programs-and-features`)! +Package Builder has some major improvements in this release, including a new UI! See https://blog.chocolatey.org/2016/11/package-builder-announcements/ for details! While building some of the features for the enhancements for this release, we've made quite a few tweaks and fixes to Package Builder and we think you are going to like the results. Being able to generate packages from the installed software on a reference system is huge (`choco new --from-programs-and-features`)! Pro users now have the ability to download packages (minus internalization). This is fantastic if you want to pull down a lot of packages quickly from a remote source. Or pull down packages and push them up to an internal source. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c75b28ff86..721513a3c2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -45,10 +45,10 @@ Submitting an Issue (or a Bug)? See the **[Submitting Issues](https://github.com Do not submit issues for missing `SolutionVersion.cs`. Please see [Compiling / Building Source](https://github.com/chocolatey/choco#compiling--building-source). ### Package Issue? -Please see [Request Package Fixes or Updates / Become a maintainer of an existing package](https://chocolatey.org/docs/package-triage-process). +Please see [Request Package Fixes or Updates / Become a maintainer of an existing package](https://docs.chocolatey.org/en-us/community-repository/users/package-triage-process). ### Package Request? Package Missing? -If you are looking for packages to be added to the community feed (aka https://chocolatey.org/packages), please see [Package Requests](https://chocolatey.org/docs/package-triage-process#package-request-package-missing). +If you are looking for packages to be added to the community feed (aka https://community.chocolatey.org/packages), please see [Package Requests](https://docs.chocolatey.org/en-us/community-repository/users/package-triage-process#package-request-package-missing). ### Submitting an Enhancement / Feature Request? If this is for choco (the CLI tool), this is the right place. See below. Otherwise see [Submitting Issues](https://github.com/chocolatey/choco#submitting-issues) for enhancements to the website, enhancements to the ChocolateyGUI, etc. @@ -222,7 +222,7 @@ A commit should observe the following: A commit message should observe the following (based on ["A Note About Git Commit Messages"](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)): - * The first line of the commit message should be a short description around 50 characters in length and be prefixed with the GitHub issue it refers to with parentheses surrounding that. If the GitHub issue is #25, you should have `(GH-25)` prefixed to the message. + * The first line of the commit message should be a short description around 50 characters in length and be prefixed with the GitHub issue it refers to with parentheses surrounding that. If the GitHub issue is #25, you should have `(#25)` prefixed to the message. **NOTE:** Previously, the requirement was to use something like `(GH-25)` in commit messages, however, that approach has been deprecated. * If the commit is about documentation, the message should be prefixed with `(doc)`. * If it is a trivial commit or one of formatting/spaces fixes, it should be prefixed with `(maint)`. * After the subject, skip one line and fill out a body if the subject line is not informative enough. @@ -235,7 +235,7 @@ A commit message should observe the following (based on ["A Note About Git Commi A good example of a commit message is as follows: ``` -(GH-7) Installation Adds All Required Folders +(#7) Installation Adds All Required Folders Previously the installation script worked for the older version of Chocolatey. It does not work similarly for the newer version of choco diff --git a/GenerateDocs.ps1 b/GenerateDocs.ps1 index a736cc996e..0be09afc32 100644 --- a/GenerateDocs.ps1 +++ b/GenerateDocs.ps1 @@ -24,26 +24,43 @@ $psModuleLocation = [System.IO.Path]::GetFullPath("$thisDirectory\src\chocolatey $docsFolder = [System.IO.Path]::GetFullPath("$thisDirectory\docs\generated") $chocoExe = [System.IO.Path]::GetFullPath("$thisDirectory\code_drop\chocolatey\console\choco.exe") $lineFeed = "`r`n" -$sourceLocation = 'https://github.com/chocolatey/choco/tree/stable/' +$sourceLocation = 'https://github.com/chocolatey/choco/blob/stable/' $sourceCommands = $sourceLocation + 'src/chocolatey/infrastructure.app/commands' $sourceFunctions = $sourceLocation + 'src/chocolatey.resources/helpers/functions' $global:powerShellReferenceTOC = @' +--- +Order: 40 +xref: powershell-reference +Title: PowerShell Reference +Description: PowerShell Functions aka Helpers Reference +RedirectFrom: + - docs/helpers-reference + - docs/HelpersReference +--- + # PowerShell Functions aka Helpers Reference + +## Summary + +In your Chocolatey packaging, you have the ability to use these functions (and others with Chocolatey's [PowerShell Extensions](xref:extensions)) to work with all aspects of software management. Keep in mind Chocolatey's automation scripts are just PowerShell, so you can do manage anything you want. + +> :memo: **NOTE** These scripts are for package scripts, not for use directly in PowerShell. This is in the create packages section, not the using Chocolatey section. + ## Main Functions -These functions call other functions and many times may be the only thing you need in your [[chocolateyInstall.ps1 file|ChocolateyInstallPS1]]. +These functions call other functions and many times may be the only thing you need in your [chocolateyInstall.ps1 file](xref:chocolatey-install-ps1). -* [[Install-ChocolateyPackage|HelpersInstallChocolateyPackage]] -* [[Install-ChocolateyZipPackage|HelpersInstallChocolateyZipPackage]] -* [[Install-ChocolateyPowershellCommand|HelpersInstallChocolateyPowershellCommand]] -* [[Install-ChocolateyVsixPackage|HelpersInstallChocolateyVsixPackage]] +* [Install-ChocolateyPackage](xref:install-chocolateypackage) +* [Install-ChocolateyZipPackage](xref:install-chocolateyzippackage) +* [Install-ChocolateyPowershellCommand](xref:install-chocolateypowershellcommand) +* [Install-ChocolateyVsixPackage](xref:install-chocolateyvsixpackage) ## Error / Success Functions -* [[Write-ChocolateySuccess|HelpersWriteChocolateySuccess]] - **DEPRECATED** -* [[Write-ChocolateyFailure|HelpersWriteChocolateyFailure]] - **DEPRECATED** +* [Write-ChocolateySuccess](xref:write-chocolateysuccess) - **DEPRECATED** +* [Write-ChocolateyFailure](xref:write-chocolateyfailure) - **DEPRECATED** You really don't need a try catch with Chocolatey PowerShell files anymore. @@ -53,13 +70,13 @@ You really don't need a try catch with Chocolatey PowerShell files anymore. When creating packages that need to run one of the following commands below, one should add the tag `admin` to the nuspec. -* [[Install-ChocolateyPackage|HelpersInstallChocolateyPackage]] -* [[Start-ChocolateyProcessAsAdmin|HelpersStartChocolateyProcessAsAdmin]] -* [[Install-ChocolateyInstallPackage|HelpersInstallChocolateyInstallPackage]] -* [[Install-ChocolateyPath|HelpersInstallChocolateyPath]] - when specifying machine path -* [[Install-ChocolateyEnvironmentVariable|HelpersInstallChocolateyEnvironmentVariable]] - when specifying machine path -* [[Install-ChocolateyExplorerMenuItem|HelpersInstallChocolateyExplorerMenuItem]] -* [[Install-ChocolateyFileAssociation|HelpersInstallChocolateyFileAssociation]] +* [Install-ChocolateyPackage](xref:install-chocolateypackage) +* [Start-ChocolateyProcessAsAdmin](xref:start-chocolateyprocessasadmin) +* [Install-ChocolateyInstallPackage](xref:install-chocolateyinstallpackage) +* [Install-ChocolateyPath](xref:install-chocolateypath) - when specifying machine path +* [Install-ChocolateyEnvironmentVariable](xref:install-chocolateyenvironmentvariable) - when specifying machine path +* [Install-ChocolateyExplorerMenuItem](xref:install-chocolateyexplorermenuitem) +* [Install-ChocolateyFileAssociation](xref:install-chocolateyfileassociation) ### Non-Administrator Safe Functions @@ -67,18 +84,19 @@ When you have a need to run Chocolatey without Administrative access required (n These are the functions from above as one list. -* [[Install-ChocolateyZipPackage|HelpersInstallChocolateyZipPackage]] -* [[Install-ChocolateyPowershellCommand|HelpersInstallChocolateyPowershellCommand]] -* [[Write-ChocolateySuccess|HelpersWriteChocolateySuccess]] -* [[Write-ChocolateyFailure|HelpersWriteChocolateyFailure]] -* [[Get-ChocolateyWebFile|HelpersGetChocolateyWebFile]] -* [[Get-ChocolateyUnzip|HelpersGetChocolateyUnzip]] -* [[Install-ChocolateyPath|HelpersInstallChocolateyPath]] - when specifying user path -* [[Install-ChocolateyEnvironmentVariable|HelpersInstallChocolateyEnvironmentVariable]] - when specifying user path -* [[Install-ChocolateyDesktopLink|HelpersInstallChocolateyDesktopLink]] - **DEPRECATED** - see [[Install-ChocolateyShortcut|HelpersInstallChocolateyShortcut]] -* [[Install-ChocolateyPinnedTaskBarItem|HelpersInstallChocolateyPinnedTaskBarItem]] -* [[Install-ChocolateyShortcut|HelpersInstallChocolateyShortcut]] - v0.9.9+ -* [[Update-SessionEnvironment|HelpersUpdateSessionEnvironment]] +* [Install-ChocolateyZipPackage](xref:install-chocolateyzippackage) +* [Install-ChocolateyPowershellCommand](xref:install-chocolateypowershellcommand) +* [Write-ChocolateySuccess](xref:write-chocolateysuccess) +* [Write-ChocolateyFailure](xref:write-chocolateyfailure) +* [Get-ChocolateyWebFile](xref:get-chocolateywebfile) +* [Get-ChocolateyUnzip](xref:get-chocolateyunzip) +* [Install-ChocolateyPath](xref:install-chocolateypath) - when specifying user path +* [Install-ChocolateyEnvironmentVariable](xref:install-chocolateyenvironmentvariable) - when specifying user path +* [Install-ChocolateyDesktopLink](xref:install-chocolateydesktoplink) - **DEPRECATED** - see [Install-ChocolateyShortcut](xref:install-chocolateyshortcut) +* [Install-ChocolateyPinnedTaskBarItem](xref:install-chocolateypinnedtaskbaritem) +* [Install-ChocolateyShortcut](xref:install-chocolateyshortcut) - v0.9.9+ +* [Update-SessionEnvironment](xref:update-sessionenvironment) +* [Get-PackageParameters](xref:get-packageparameters) - v0.10.8+ ## Complete List (alphabetical order) @@ -111,11 +129,17 @@ function Replace-CommonItems($text) { if ($text -eq $null) {return $text} $text = $text.Replace("`n",$lineFeed) - $text = $text -replace '(community feed[s]?|community repository)', '[$1](https://chocolatey.org/packages)' + $text = $text -replace "\*\*NOTE:\*\*", "> :memo: **NOTE**" + $text = $text -replace '(community feed[s]?[^\]]|community repository)', '[$1](https://community.chocolatey.org/packages)' $text = $text -replace '(Chocolatey for Business|Chocolatey Professional|Chocolatey Pro)(?=[^\w])', '[$1](https://chocolatey.org/compare)' $text = $text -replace '(Pro[fessional]\s?/\s?Business)', '[$1](https://chocolatey.org/compare)' $text = $text -replace '([Ll]icensed editions)', '[$1](https://chocolatey.org/compare)' $text = $text -replace '([Ll]icensed versions)', '[$1](https://chocolatey.org/compare)' + $text = $text -replace '\(https://docs.chocolatey.org/en-us/create/automatic-packages\)', '(xref:automatic-packaging)' + $text = $text -replace 'Learn more about using this at https://docs.chocolatey.org/en-us/guides/create/parse-packageparameters-argument', '[Learn more](xref:parse-package-parameters)' + $text = $text -replace 'at https://docs.chocolatey.org/en-us/guides/create/parse-packageparameters-argument#step-3---use-core-community-extension', 'in [the docs](xref:parse-package-parameters#step-3-use-core-community-extension)' + $text = $text -replace 'https://docs.chocolatey.org/en-us/guides/create/parse-packageparameters-argument', 'https://docs.chocolatey.org/en-us/guides/create/parse-packageparameters-argument' + $text = $text -replace '\[community feed\)\]\(https://community.chocolatey.org/packages\)', '[community feed](https://community.chocolatey.org/packages))' Write-Output $text } @@ -195,11 +219,12 @@ param( $commandText = $commandText -creplace '^(Usage|Troubleshooting|Examples|Exit Codes|Connecting to Chocolatey.org|See It In Action|Alternative Sources|Resources|Packages.config|Scripting \/ Integration - Best Practices \/ Style Guide)', '## $1' $commandText = $commandText -replace '^(Commands|How To Pass Options)', '## $1' $commandText = $commandText -replace '^(WebPI|Windows Features|Ruby|Cygwin|Python)\s*$', '### $1' - $commandText = $commandText -replace 'NOTE\:', '**NOTE:**' - $commandText = $commandText -replace 'the command reference', '[[how to pass arguments|CommandsReference#how-to-pass-options--switches]]' - $commandText = $commandText -replace '(community feed[s]?|community repository)', '[$1](https://chocolatey.org/packages)' + $commandText = $commandText -replace 'NOTE\:', '> :memo: **NOTE**' + $commandText = $commandText -replace '\*> :memo: \*\*NOTE\*\*\*', '> :memo: **NOTE**' + $commandText = $commandText -replace 'the command reference', '[how to pass arguments](xref:choco-commands#how-to-pass-options-switches)' + $commandText = $commandText -replace '(community feed[s]?|community repository)', '[$1](https://comminty.chocolatey.org/packages)' #$commandText = $commandText -replace '\`(apikey|install|upgrade|uninstall|list|search|info|outdated|pin)\`', '[[`$1`|Commands$1]]' - $commandText = $commandText -replace '\`([choco\s]*)(apikey|install|upgrade|uninstall|list|search|info|outdated|pin)\`', '[[`$1$2`|Commands$2]]' + $commandText = $commandText -replace '\`([choco\s]*)(apikey|install|upgrade|uninstall|list|search|info|outdated|pin)\`', '[`$1$2`](xref:choco-command-$2)' $commandText = $commandText -replace '^(.+):\s(.+.gif)$', '![$1]($2)' $commandText = $commandText -replace '^(\s+)\<\?xml', "~~~xml$lineFeed`$1', "`$1$lineFeed~~~" @@ -207,17 +232,31 @@ param( $commandText = $commandText -replace '(Pro[fessional]\s?/\s?Business)', '[$1](https://chocolatey.org/compare)' $commandText = $commandText -replace '([Ll]icensed editions)', '[$1](https://chocolatey.org/compare)' $commandText = $commandText -replace '([Ll]icensed versions)', '[$1](https://chocolatey.org/compare)' + $commandText = $commandText -replace 'https://raw.githubusercontent.com/wiki/chocolatey/choco/images', '/assets/images' + $commandText = $commandText -replace 'https://chocolatey.org/docs/features-automatically-recompile-packages', 'https://docs.chocolatey.org/en-us/guides/create/recompile-packages' + $commandText = $commandText -replace 'https://chocolatey.org/docs/features-private-cdn', 'https://docs.chocolatey.org/en-us/features/private-cdn' + $commandText = $commandText -replace 'https://chocolatey.org/docs/features-virus-check', 'https://docs.chocolatey.org/en-us/features/virus-check' + $commandText = $commandText -replace 'https://chocolatey.org/docs/features-synchronize', 'https://docs.chocolatey.org/en-us/features/package-synchronization' + $commandText = $commandText -replace 'explicity', 'explicit' + $commandText = $commandText -replace 'https://chocolatey.org/docs/features-create-packages-from-installers', 'https://docs.chocolatey.org/en-us/features/package-builder' + $commandText = $commandText -replace 'See https://chocolatey.org/docs/features-create-packages-from-installers', 'See more information about [Package Builder features](xref:package-builder)' + $commandText = $commandText -replace 'See https://docs.chocolatey.org/en-us/features/package-builder', 'See more information about [Package Builder features](xref:package-builder)' + $commandText = $commandText -replace 'https://chocolatey.org/docs/features-install-directory-override', 'https://docs.chocolatey.org/en-us/features/install-directory-override' + $commandText = $commandText -replace 'y.org/docs/features-package-reducer', 'y.org/docs/en-us/features/package-reducer' + $commandText = $commandText -replace 'https://chocolatey.org/docs/features-package-reducer', 'https://docs.chocolatey.org/en-us/features/package-reducer' + $commandText = $commandText -replace 'https://chocolatey.org/docs/en-us/features/package-reducer', 'https://docs.chocolatey.org/en-us/features/package-reducer' + $commandText = $commandText -replace '\[community feed\)\]\(https://community.chocolatey.org/packages\)', '[community feed](https://community.chocolatey.org/packages))' $optionsSwitches = @' ## $1 -**NOTE:** Options and switches apply to all items passed, so if you are +> :memo: **NOTE** Options and switches apply to all items passed, so if you are running a command like install that allows installing multiple packages, and you use `--version=1.0.0`, it is going to look for and try to install version 1.0.0 of every package passed. So please split out multiple package calls when wanting to pass specific options. -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). +Includes [default options/switches](xref:choco-commands#default-options-and-switches) (included below for completeness). ~~~ '@ @@ -227,7 +266,7 @@ Includes [[default options/switches|CommandsReference#default-options-and-switch $optionsSwitches = @' ## $1 -**NOTE:** Options and switches apply to all items passed, so if you are +> :memo: **NOTE** Options and switches apply to all items passed, so if you are running a command like install that allows installing multiple packages, and you use `--version=1.0.0`, it is going to look for and try to install version 1.0.0 of every package passed. So please split @@ -247,19 +286,28 @@ function Convert-CommandReferenceSpecific($commandText) { param($m) $commandName = $m.Groups[1].Value $commandNameUpper = $($commandName.Substring(0,1).ToUpper() + $commandName.Substring(1)) - " * [[$commandName|Commands$($commandNameUpper)]] -" + " * [$commandName](xref:choco-command-$($commandName)) -" } ) #$commandText = $commandText -replace '\s?\s?\*\s(\w+)\s\-', ' * [[$1|Commands$1]] -' - $commandText = $commandText.Replace("## Default Options and Switches", "## See Help Menu In Action$lineFeed$lineFeed![choco help in action](https://raw.githubusercontent.com/wiki/chocolatey/choco/images/gifs/choco_help.gif)$lineFeed$lineFeed## Default Options and Switches") + $commandText = $commandText.Replace("## Default Options and Switches", "## See Help Menu In Action$lineFeed$lineFeed![choco help in action](/assets/images/gifs/choco_help.gif)$lineFeed$lineFeed## Default Options and Switches") Write-Output $commandText } function Generate-TopLevelCommandReference { Write-Host "Generating Top Level Command Reference" - $fileName = "$docsFolder\CommandsReference.md" - $commandOutput = @("# Command Reference$lineFeed") + $fileName = "$docsFolder\choco\commands\index.md" + $commandOutput = @("---") + $commandOutput += @("Order: 40") + $commandOutput += @("xref: choco-commands") + $commandOutput += @("Title: Commands") + $commandOutput += @("Description: Full list of all available Chocolatey commands") + $commandOutput += @("RedirectFrom:") + $commandOutput += @(" - docs/commandsreference") + $commandOutput += @(" - docs/commands-reference") + $commandOutput += @("---$lineFeed") + $commandOutput += @("# Command Reference$lineFeed") $commandOutput += @(" $lineFeed") $commandOutput += $(& $chocoExe -? -r) $commandOutput += @("$lineFeed~~~$lineFeed") @@ -268,12 +316,46 @@ function Generate-TopLevelCommandReference { $commandOutput | %{ Convert-CommandText($_) } | %{ Convert-CommandReferenceSpecific($_) } | Out-File $fileName -Encoding UTF8 -Force } -function Generate-CommandReference($commandName) { - $fileName = Join-Path $docsFolder "Commands$($commandName).md" +function Move-GeneratedFiles { + if(-not(Test-Path "$docsFolder\create\commands")){ mkdir "$docsFolder\create\commands" -EA Continue | Out-Null } + + Move-Item -Path "$docsFolder\choco\commands\apikey.md" -Destination "$docsFolder\create\commands\api-key.md" + Move-Item -Path "$docsFolder\choco\commands\new.md" -Destination "$docsFolder\create\commands\new.md" + Move-Item -Path "$docsFolder\choco\commands\pack.md" -Destination "$docsFolder\create\commands\pack.md" + Move-Item -Path "$docsFolder\choco\commands\push.md" -Destination "$docsFolder\create\commands\push.md" +} + +function Generate-CommandReference($commandName, $order) { + if(-not(Test-Path "$docsFolder\choco\commands")){ mkdir "$docsFolder\choco\commands" -EA Continue | Out-Null } + $fileName = Join-Path "$docsFolder\choco\commands" "$($commandName.ToLower()).md" + $commandNameLower = $commandName.ToLower() + Write-Host "Generating $fileName ..." + $commandOutput += @("---") + $commandOutput += @("Order: $order") + $commandOutput += @("xref: choco-command-$commandNameLower") + + if($commandName -eq 'List') { + $commandOutput += @("Title: $commandName/Search") + $commandOutput += @("Description: $commandName/Search Command (choco $commandNameLower)") + } else { + $commandOutput += @("Title: $commandName") + $commandOutput += @("Description: $commandName Command (choco $commandNameLower)") + } + + $commandOutput += @("RedirectFrom:") + $commandOutput += @(" - docs/commands$commandNameLower") + $commandOutput += @(" - docs/commands-$commandNameLower") + + if($commandName -eq 'Features') { + $commandOutput += @("ShowInNavbar: false") + $commandOutput += @("ShowInSidebar: false") + } + + $commandOutput += @("---$lineFeed") $commandOutput += @(" $lineFeed") $commandOutput += $(& $chocoExe $commandName.ToLower() -h -r) - $commandOutput += @("$lineFeed~~~$lineFeed$lineFeed[[Command Reference|CommandsReference]]") + $commandOutput += @("$lineFeed~~~$lineFeed$lineFeed[Command Reference](xref:choco-commands)") $commandOutput += @("$lineFeed$lineFeed*NOTE:* This documentation has been automatically generated from ``choco $($commandName.ToLower()) -h``. $lineFeed") $commandOutput | %{ Convert-CommandText $_ $commandName.ToLower() } | Out-File $fileName -Encoding UTF8 -Force } @@ -290,16 +372,39 @@ try if (Test-Path($docsFolder)) { Remove-Item $docsFolder -Force -Recurse -EA SilentlyContinue } if(-not(Test-Path $docsFolder)){ mkdir $docsFolder -EA Continue | Out-Null } + if(-not(Test-Path "$docsFolder\create\functions")){ mkdir "$docsFolder\create\functions" -EA Continue | Out-Null } Write-Host 'Creating per PowerShell function markdown files...' + $helperOrder = 10; Get-Command -Module $psModuleName -CommandType Function | ForEach-Object -Process { Get-Help $_ -Full } | ForEach-Object -Process { ` $commandName = $_.Name - $fileName = Join-Path $docsFolder "Helpers$($_.Name.Replace('-','')).md" - $global:powerShellReferenceTOC += "$lineFeed * [[$commandName|$([System.IO.Path]::GetFileNameWithoutExtension($fileName))]]" + $fileName = Join-Path "$docsFolder\create\functions" "$($_.Name.ToLower()).md" + $global:powerShellReferenceTOC += "$lineFeed * [$commandName](xref:$([System.IO.Path]::GetFileNameWithoutExtension($fileName)))" $hasCmdletBinding = (Get-Command -Name $commandName).CmdLetBinding Write-Host "Generating $fileName ..." + $SplitName = $_.Name -split "-" + $NameNoHyphen = $_.Name -replace '-', '' + + if($_.Name -eq 'Get-OSArchitectureWidth') { + $FormattedName = "get-os-architecture-width" + } elseif($_.Name -eq 'Get-UACEnabled') { + $FormattedName = "get-uac-enabled" + }else { + $FormattedName = $SplitName[0].ToLower() + ($SplitName[1] -creplace '[A-Z]', '-$&').ToLower() + } + @" +--- +Order: $($helperOrder) +xref: $($_.Name.ToLower()) +Title: $($_.Name) +Description: Information on $($_.Name) function +RedirectFrom: + - docs/helpers-$($FormattedName) + - docs/helpers$($NameNoHyphen.ToLower()) +--- + # $($_.Name) @@ -326,69 +431,139 @@ $( if ($_.ReturnValues -ne $null -and $_.ReturnValues.Length -gt 0 -and -not $_. ## Parameters $( if ($_.parameters.parameter.count -gt 0) { $_.parameters.parameter | % { Convert-Parameter $_ $commandName }}) $( if ($hasCmdletBinding) { "$lineFeed### <CommonParameters>$lineFeed$($lineFeed)This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see ``about_CommonParameters`` http://go.microsoft.com/fwlink/p/?LinkID=113216 ." } ) -$( if ($_.relatedLinks -ne $null) {Write-Output "$lineFeed## Links$lineFeed$lineFeed"; $_.relatedLinks.navigationLink | ? { $_.linkText -ne $null} | % { Write-Output "* [[$($_.LinkText)|Helpers$($_.LinkText.Replace('-',''))]]$lineFeed" }}) +$( if ($_.relatedLinks -ne $null) {Write-Output "$lineFeed## Links$lineFeed$lineFeed"; $_.relatedLinks.navigationLink | ? { $_.linkText -ne $null} | % { Write-Output "* [$($_.LinkText)](xref:$($_.LinkText.ToLower()))$lineFeed" }}) -[[Function Reference|HelpersReference]] +[Function Reference](xref:powershell-reference) -***NOTE:*** This documentation has been automatically generated from ``Import-Module `"`$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1`" -Force; Get-Help $($_.Name) -Full``. +> :memo: **NOTE** This documentation has been automatically generated from ``Import-Module `"`$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1`" -Force; Get-Help $($_.Name) -Full``. View the source for [$($_.Name)]($sourceFunctions/$($_.Name)`.ps1) "@ | Out-File $fileName -Encoding UTF8 -Force + $helperOrder = $helperOrder + 10 } Write-Host "Generating Top Level PowerShell Reference" - $fileName = Join-Path $docsFolder 'HelpersReference.md' + $fileName = Join-Path "$docsFolder\create\functions" 'index.md' $global:powerShellReferenceTOC += @' -## Variables - -There are also a number of environment variables providing access to some values from the nuspec and other information that may be useful. They are accessed via `$env:variableName`. +## Chocolatey for Business Functions -* __chocolateyPackageFolder__ = the folder where Chocolatey has downloaded and extracted the NuGet package, typically `C:\ProgramData\chocolatey\lib\packageName`. -* __chocolateyPackageName__ (since 0.9.9.0) = The package name, which is equivalent to the `` tag in the nuspec -* __chocolateyPackageVersion__ (since 0.9.9.0) = The package version, which is equivalent to the `` tag in the nuspec + * [Install-ChocolateyWindowsService](xref:install-chocolateywindowsservice) + * [Start-ChocolateyWindowsService](xref:start-chocolateywindowsservice) + * [Stop-ChocolateyWindowsService](xref:stop-chocolateywindowsservice) + * [Uninstall-ChocolateyWindowsService](xref:uninstall-chocolateywindowsservice) -`chocolateyPackageVersion` may be particularly useful, since that would allow you in some cases to create packages for new releases of the updated software by only changing the `` in the nuspec and not having to touch the `chocolateyInstall.ps1` at all. An example of this: +## Variables -~~~powershell -$url = "http://www.thesoftware.com/downloads/thesoftware-$env:chocolateyPackageVersion.zip" +There are also a number of environment variables providing access to some values from the nuspec and other information that may be useful. They are accessed via `$env:variableName`. -Install-ChocolateyZipPackage '$env:chocolateyPackageName' $url $binRoot -~~~ +### Environment Variables + +Chocolatey makes a number of environment variables available (You can access any of these with $env:TheVariableNameBelow): + + * TEMP/TMP - Overridden to the CacheLocation, but may be the same as the original TEMP folder + * ChocolateyInstall - Top level folder where Chocolatey is installed + * ChocolateyPackageName - The name of the package, equivalent to the `` field in the nuspec (0.9.9+) + * ChocolateyPackageTitle - The title of the package, equivalent to the `` field in the nuspec (0.10.1+) + * ChocolateyPackageVersion - The version of the package, equivalent to the `<version />` field in the nuspec (0.9.9+) + * ChocolateyPackageFolder - The top level location of the package folder - the folder where Chocolatey has downloaded and extracted the NuGet package, typically `C:\ProgramData\chocolatey\lib\packageName`. + +#### Advanced Environment Variables + +The following are more advanced settings: + + * ChocolateyPackageParameters - Parameters to use with packaging, not the same as install arguments (which are passed directly to the native installer). Based on `--package-parameters`. (0.9.8.22+) + * CHOCOLATEY_VERSION - The version of Choco you normally see. Use if you are 'lighting' things up based on choco version. (0.9.9+) - Otherwise take a dependency on the specific version you need. + * ChocolateyForceX86 = If available and set to 'true', then user has requested 32bit version. (0.9.9+) - Automatically handled in built in Choco functions. + * OS_PLATFORM - Like Windows, OSX, Linux. (0.9.9+) + * OS_VERSION - The version of OS, like 6.1 something something for Windows. (0.9.9+) + * OS_NAME - The reported name of the OS. (0.9.9+) + * IS_PROCESSELEVATED = Is the process elevated? (0.9.9+) + * ChocolateyToolsLocation - formerly 'ChocolateyBinRoot' ('ChocolateyBinRoot' will be removed with Chocolatey v2.0.0), this is where tools being installed outside of Chocolatey packaging will go. (0.9.10+) + +#### Set By Options and Configuration + +Some environment variables are set based on options that are passed, configuration and/or features that are turned on: + + * ChocolateyEnvironmentDebug - Was `--debug` passed? If using the built-in PowerShell host, this is always true (but only logs debug messages to console if `--debug` was passed) (0.9.10+) + * ChocolateyEnvironmentVerbose - Was `--verbose` passed? If using the built-in PowerShell host, this is always true (but only logs verbose messages to console if `--verbose` was passed). (0.9.10+) + * ChocolateyForce - Was `--force` passed? (0.9.10+) + * ChocolateyForceX86 - Was `-x86` passed? (CHECK) + * ChocolateyRequestTimeout - How long before a web request will time out. Set by config `webRequestTimeoutSeconds` (CHECK) + * ChocolateyResponseTimeout - How long to wait for a download to complete? Set by config `commandExecutionTimeoutSeconds` (CHECK) + * ChocolateyPowerShellHost - Are we using the built-in PowerShell host? Set by `--use-system-powershell` or the feature `powershellHost` (0.9.10+) + +#### Business Edition Variables + + * ChocolateyInstallArgumentsSensitive - Encrypted arguments passed from command line `--install-arguments-sensitive` that are not logged anywhere. (0.10.1+ and licensed editions 1.6.0+) + * ChocolateyPackageParametersSensitive - Package parameters passed from command line `--package-parameters-senstivite` that are not logged anywhere. (0.10.1+ and licensed editions 1.6.0+) + * ChocolateyLicensedVersion - What version is the licensed edition on? + * ChocolateyLicenseType - What edition / type of the licensed edition is installed? + +#### Experimental Environment Variables + +The following are experimental or use not recommended: + + * OS_IS64BIT = This may not return correctly - it may depend on the process the app is running under (0.9.9+) + * CHOCOLATEY_VERSION_PRODUCT = the version of Choco that may match CHOCOLATEY_VERSION but may be different (0.9.9+) - based on git describe + * IS_ADMIN = Is the user an administrator? But doesn't tell you if the process is elevated. (0.9.9+) + +#### Not Useful Or Anti-Pattern If Used + + * ChocolateyInstallOverride = Not for use in package automation scripts. Based on `--override-arguments` being passed. (0.9.9+) + * ChocolateyInstallArguments = The installer arguments meant for the native installer. You should use chocolateyPackageParameters instead. Based on `--install-arguments` being passed. (0.9.9+) + * ChocolateyIgnoreChecksums - Was `--ignore-checksums` passed or the feature `checksumFiles` turned off? (0.9.9.9+) + * ChocolateyAllowEmptyChecksums - Was `--allow-empty-checksums` passed or the feature `allowEmptyChecksums` turned on? (0.10.0+) + * ChocolateyAllowEmptyChecksumsSecure - Was `--allow-empty-checksums-secure` passed or the feature `allowEmptyChecksumsSecure` turned on? (0.10.0+) + * ChocolateyCheckLastExitCode - Should Chocolatey check LASTEXITCODE? Is the feature `scriptsCheckLastExitCode` turned on? (0.10.3+) + * ChocolateyChecksum32 - Was `--download-checksum` passed? (0.10.0+) + * ChocolateyChecksumType32 - Was `--download-checksum-type` passed? (0.10.0+) + * ChocolateyChecksum64 - Was `--download-checksum-x64` passed? (0.10.0)+ + * ChocolateyChecksumType64 - Was `--download-checksum-type-x64` passed? (0.10.0)+ + * ChocolateyPackageExitCode - The exit code of the script that just ran - usually set by `Set-PowerShellExitCode` (CHECK) + * ChocolateyLastPathUpdate - Set by Chocolatey as part of install, but not used for anything in particular in packaging. + * ChocolateyProxyLocation - The explicit proxy location as set in the configuration `proxy` (0.9.9.9+) + * ChocolateyDownloadCache - Use available download cache? Set by `--skip-download-cache`, `--use-download-cache`, or feature `downloadCache` (0.9.10+ and licensed editions 1.1.0+) + * ChocolateyProxyBypassList - Explicitly set locations to ignore in configuration `proxyBypassList` (0.10.4+) + * ChocolateyProxyBypassOnLocal - Should the proxy bypass on local connections? Set based on configuration `proxyBypassOnLocal` (0.10.4+) + * http_proxy - Set by original `http_proxy` passthrough, or same as `ChocolateyProxyLocation` if explicitly set. (0.10.4+) + * https_proxy - Set by original `https_proxy` passthrough, or same as `ChocolateyProxyLocation` if explicitly set. (0.10.4+) + * no_proxy- Set by original `no_proxy` passthrough, or same as `ChocolateyProxyBypassList` if explicitly set. (0.10.4+) '@ $global:powerShellReferenceTOC | Out-File $fileName -Encoding UTF8 -Force Write-Host "Generating command reference markdown files" - Generate-CommandReference('List') - Generate-CommandReference('Search') - Generate-CommandReference('Info') - Generate-CommandReference('Install') - Generate-CommandReference('Pin') - Generate-CommandReference('Outdated') - Generate-CommandReference('Upgrade') - Generate-CommandReference('Uninstall') - Generate-CommandReference('Config') - Generate-CommandReference('Source') - Generate-CommandReference('Sources') - Generate-CommandReference('Feature') - Generate-CommandReference('Features') - Generate-CommandReference('New') - Generate-CommandReference('Pack') - Generate-CommandReference('Apikey') - Generate-CommandReference('SetApikey') - Generate-CommandReference('Push') - Generate-CommandReference('UnpackSelf') - Generate-CommandReference('Update') - Generate-CommandReference('Version') - Generate-CommandReference('Download') - Generate-CommandReference('Support') - Generate-CommandReference('Sync') - Generate-CommandReference('Synchronize') - Generate-CommandReference('Optimize') + Generate-CommandReference 'List' '60' + Generate-CommandReference 'Search' '100' + Generate-CommandReference 'Info' '40' + Generate-CommandReference 'Install' '50' + Generate-CommandReference 'Pin' '90' + Generate-CommandReference 'Outdated' '80' + Generate-CommandReference 'Upgrade' '200' + Generate-CommandReference 'Uninstall' '170' + Generate-CommandReference 'Config' '10' + Generate-CommandReference 'Source' '120' + Generate-CommandReference 'Sources' '130' + Generate-CommandReference 'Feature' '30' + Generate-CommandReference 'Features' '35' + Generate-CommandReference 'New' '10' + Generate-CommandReference 'Pack' '20' + Generate-CommandReference 'ApiKey' '30' + Generate-CommandReference 'SetApiKey' '110' + Generate-CommandReference 'Push' '40' + Generate-CommandReference 'UnpackSelf' '180' + Generate-CommandReference 'Update' '190' + Generate-CommandReference 'Version' '210' + Generate-CommandReference 'Download' '20' + Generate-CommandReference 'Support' '140' + Generate-CommandReference 'Sync' '150' + Generate-CommandReference 'Synchronize' '160' + Generate-CommandReference 'Optimize' '70' Generate-TopLevelCommandReference + Move-GeneratedFiles Exit 0 } diff --git a/README.md b/README.md index dcc7af1eaf..82836038ce 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Chocolatey - like yum or apt-get, but for Windows You can just call me choco. -![Chocolatey Logo](https://cdn.rawgit.com/chocolatey/choco/14a627932c78c8baaba6bef5f749ebfa1957d28d/docs/logo/chocolateyicon.gif "Chocolatey") +![Chocolatey Logo](https://rawcdn.githack.com/chocolatey/choco/14a627932c78c8baaba6bef5f749ebfa1957d28d/docs/logo/chocolateyicon.gif "Chocolatey") -[![](https://img.shields.io/chocolatey/dt/chocolatey.svg)](https://chocolatey.org/packages/chocolatey) [![](https://img.shields.io/chocolatey/v/chocolatey.svg)](https://chocolatey.org/packages/chocolatey) [![Project Stats](https://www.openhub.net/p/chocolatey/widgets/project_thin_badge.gif)](https://www.openhub.net/p/chocolatey) +[![](https://img.shields.io/chocolatey/dt/chocolatey.svg)](https://community.chocolatey.org/packages/chocolatey) [![](https://img.shields.io/chocolatey/v/chocolatey.svg)](https://community.chocolatey.org/packages/chocolatey) [![Project Stats](https://www.openhub.net/p/chocolatey/widgets/project_thin_badge.gif)](https://www.openhub.net/p/chocolatey) <!-- TOC --> @@ -60,14 +60,14 @@ If you are an open source user requesting support, please remember that most fol If you are using a [commercial edition of Chocolatey](https://chocolatey.org/compare#compare), you have different terms! Please see [support](https://chocolatey.org/support). ## Information - * [Chocolatey Website and Community Package Repository](https://chocolatey.org) + * [Chocolatey Website and Community Package Repository](https://community.chocolatey.org) * [Mailing List](http://groups.google.com/group/chocolatey) / [Release Announcements Only Mailing List](https://groups.google.com/group/chocolatey-announce) / [Build Status Mailing List](http://groups.google.com/group/chocolatey-build-status) * [Twitter](https://twitter.com/chocolateynuget) / [Facebook](https://www.facebook.com/ChocolateySoftware) / [Github](https://github.com/chocolatey) - * [Blog](https://chocolatey.org/blog) / [Newsletter](https://chocolatey.us8.list-manage1.com/subscribe?u=86a6d80146a0da7f2223712e4&id=73b018498d) - * [Documentation](https://chocolatey.org/docs) / [Support](https://chocolatey.org/support) + * [Blog](https://blog.chocolatey.org/) / [Newsletter](https://chocolatey.us8.list-manage1.com/subscribe?u=86a6d80146a0da7f2223712e4&id=73b018498d) + * [Documentation](https://docs.chocolatey.org/en-us/) / [Support](https://chocolatey.org/support) ### Documentation -Please see the [docs](https://chocolatey.org/docs) +Please see the [docs](https://docs.chocolatey.org/en-us/) Give `choco.exe -?` a shot (or `choco.exe -h`). For specific commands, add the command and then the help switch e.g. `choco.exe install -h`. @@ -82,13 +82,13 @@ Apache 2.0 - see [LICENSE](https://github.com/chocolatey/choco/blob/master/LICEN ## Submitting Issues ![submitting issues](https://cloud.githubusercontent.com/assets/63502/12534554/6ea7cc04-c224-11e5-82ad-3805d0b5c724.png) - * If you are having issue with a package, please see [Request Package Fixes or Updates / Become a maintainer of an existing package](https://chocolatey.org/docs/package-triage-process). - * If you are looking for packages to be added to the community feed (aka https://chocolatey.org/packages), please see [Package Requests](https://chocolatey.org/docs/package-triage-process#package-request-package-missing). + * If you are having issue with a package, please see [Request Package Fixes or Updates / Become a maintainer of an existing package](https://docs.chocolatey.org/en-us/community-repository/users/package-triage-process). + * If you are looking for packages to be added to the community feed (aka https://community.chocolatey.org/packages), please see [Package Requests](https://docs.chocolatey.org/en-us/community-repository/users/package-triage-process#package-request-package-missing). 1. Start with [Troubleshooting](https://github.com/chocolatey/choco/wiki/Troubleshooting) and the [FAQ](https://github.com/chocolatey/choco/wiki/ChocolateyFAQs) to see if your question or issue already has an answer. 1. If not found or resolved, please follow one of the following avenues: * If you are a licensed customer, please see [support](https://chocolatey.org/support). You can also log an issue to [Licensed Issues](https://github.com/chocolatey/chocolatey-licensed-issues) and we will submit issues to all other places on your behalf. Another avenue is to use email support to have us submit tickets and other avenues on your behalf (allowing you to maintain privacy). - * If it is an enhancement request or issue with the website (the community package repository aka [https://chocolatey.org](https://chocolatey.org)), please submit the issue to the [Chocolatey.org repo](https://github.com/chocolatey/chocolatey.org). + * If it is an enhancement request or issue with the website (the community package repository aka [https://community.chocolatey.org](https://community.chocolatey.org)), please submit the issue to the [Chocolatey.org repo](https://github.com/chocolatey/home). * If you have found an issue with the GUI (Chocolatey GUI) or you want to submit an enhancement, please see [the ChocolateyGUI repository](https://github.com/chocolatey/ChocolateyGUI#submitting-issues). * If you have found an issue with the client (choco.exe), you are in the right place. Keep reading below. @@ -138,7 +138,7 @@ Running the build on Windows should produce an artifact that is tested and ready #### Other Platforms ##### Prerequisites: - * Install and configure Mono 5.20.x (Other versions may work but have not been tested). + * Install and configure Mono. Mono 5.20 or newer should work, see the Dockerfile for the currently recommended version. * [Debian based](http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives) ```sh @@ -152,6 +152,8 @@ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328 echo "deb https://download.mono-project.com/repo/debian stable-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list # Debian 9 echo "deb https://download.mono-project.com/repo/debian stable-stretch main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list +#Ubuntu 20.04 +echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list # Ubuntu 18.04 echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list # Ubuntu 16.04 @@ -163,57 +165,7 @@ sudo apt-get update sudo apt-get install mono-devel -y ``` - * [CentOS/RHEL](https://www.mono-project.com/download/stable/#download-lin-centos) - -```sh -### NOT FULLY TESTED AND WORKING ### -# Switch to root shell -su -# Add the EPEL -yum install epel-release -y -# Add the key -pmkeys --import "http://pool.sks-keyservers.net/pks/lookup?op=get&search=0x3fa7e0328081bff6a14da29aa6a19b38d3d831ef" - -# Add the package repository -# CentOS/RHEL 8 -su -c 'curl https://download.mono-project.com/repo/centos8-stable.repo | tee /etc/yum.repos.d/mono-centos8-stable.repo' -# CentOS/RHEL 7 -su -c 'curl https://download.mono-project.com/repo/centos7-stable.repo | tee /etc/yum.repos.d/mono-centos7-stable.repo' -# CentOS/RHEL 6 -rpm --import "http://pool.sks-keyservers.net/pks/lookup?op=get&search=0x3fa7e0328081bff6a14da29aa6a19b38d3d831ef" - -# Update your system -yum update -y - -# Install mono-devel -yum install mono-devel -y - -``` - - * [Fedora](https://www.mono-project.com/download/stable/#download-lin-fedora) - -```sh -### NOT FULLY TESTED AND WORKING ### - -# Switch to root shell -su -# Add the key -rpm --import "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" - -# Add the package repository -# Fedora 29 -su -c 'curl https://download.mono-project.com/repo/centos8-stable.repo | tee /etc/yum.repos.d/mono-centos8-stable.repo' -# Fedora 28 -su -c 'curl https://download.mono-project.com/repo/centos7-stable.repo | tee /etc/yum.repos.d/mono-centos7-stable.repo' - -# Update -dnf update - -# Install mono-devel -dnf install mono-devel -y - -``` - + * Other Linux systems; see [Mono install instructions for Linux](https://www.mono-project.com/download/stable/#download-lin) * Xamarin Studio is helpful for working on source. * Consider adding the following to your `~/.profile` (or other relevant dot source file): diff --git a/appveyor.yml b/appveyor.yml index de40f612a1..8f252f56d3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,9 +20,9 @@ test: artifacts: - path: build_output\build_artifacts\compile\msbuild-net-4.0-results.xml name: Compile.xml -- path: build_output\build_artifacts\nunit\index.html +- path: build_output\build_artifacts\tests\index.html name: NUnitResults.html -- path: build_output\build_artifacts\opencover\Html\index.htm +- path: build_output\build_artifacts\codecoverage\Html\index.htm name: OpenCoverResults.htm - path: build_output\_BuildInfo.xml name: BuildInfo.xml diff --git a/docker/Dockerfile.linux b/docker/Dockerfile.linux index 54bbc9ec19..f5d825a099 100644 --- a/docker/Dockerfile.linux +++ b/docker/Dockerfile.linux @@ -1,4 +1,4 @@ -FROM mono:5.20.1.19 +FROM mono:6.12 MAINTAINER Justin Phelps <linuturk@onitato.com> diff --git a/docs/generated/CommandsApiKey.md b/docs/generated/CommandsApiKey.md deleted file mode 100644 index a19189e45f..0000000000 --- a/docs/generated/CommandsApiKey.md +++ /dev/null @@ -1,190 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyApikeyCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# ApiKey Command (choco apikey) - -This lists api keys that are set or sets an api key for a particular - source so it doesn't need to be specified every time. - -Anything that doesn't contain source and key will list api keys. - -## Usage - - choco apikey [<options/switches>] - choco setapikey [<options/switches>] - -## Examples - - choco apikey - choco apikey -s https://somewhere/out/there - choco apikey -s="https://somewhere/out/there/" -k="value" - choco apikey -s "https://push.chocolatey.org/" -k="123-123123-123" - choco apikey -s "http://internal_nexus" -k="user:password" - -For source location, this can be a folder/file share or an -http location. When it comes to urls, they can be different from the packages -url (where packages are searched and installed from). As an example, for -Chocolatey's community package package repository, the package url is -https://chocolatey.org/api/v2, but the push url is https://push.chocolatey.org -(and the deprecated https://chocolatey.org/ as a push url). Check the -documentation for your choice of repository to learn what the push url is. - -For the key, this can be an apikey that is provided by your source repository. -With some sources, like Nexus, this can be a NuGet API key or it could be a -user name and password specified as 'user:password' for the API key. Please see -your repository's documentation (for Nexus, please see -https://bit.ly/nexus2apikey). - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Connecting to Chocolatey.org (Community Package Repository) - -In order to save your API key for https://push.chocolatey.org/, - log in (or register, confirm and then log in) to - https://push.chocolatey.org/, go to https://push.chocolatey.org/account, - copy the API Key, and then use it in the following command: - - choco apikey -k <your key here> -s https://push.chocolatey.org/ - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -s, --source=VALUE - Source [REQUIRED] - The source location for the key - - -k, --key, --apikey, --api-key=VALUE - ApiKey - The API key for the source. This is the authentication that - identifies you and allows you to push to a source. With some sources - this is either a key or it could be a user name and password specified - as 'user:password'. - - --rem, --remove - Removes an API key from Chocolatey - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco apikey -h`. - diff --git a/docs/generated/CommandsConfig.md b/docs/generated/CommandsConfig.md deleted file mode 100644 index 1ada716700..0000000000 --- a/docs/generated/CommandsConfig.md +++ /dev/null @@ -1,170 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyConfigCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Config Command (choco config) - -Chocolatey will allow you to interact with the configuration file settings. - -**NOTE:** Available in 0.9.9.9+. - -## Usage - - choco config [list]|get|set|unset [<options/switches>] - -**NOTE:** `Unset` subcommand available in 0.9.10+. - -## Examples - - choco config - choco config list - choco config get cacheLocation - choco config get --name cacheLocation - choco config set cacheLocation c:\temp\choco - choco config set --name cacheLocation --value c:\temp\choco - choco config unset proxy - choco config unset --name proxy - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## See It In Action - -![Config shown in action](https://raw.githubusercontent.com/wiki/chocolatey/choco/images/gifs/choco_config.gif) - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - --name=VALUE - Name - the name of the config setting. Required with some actions. - Defaults to empty. - - --value=VALUE - Value - the value of the config setting. Required with some actions. - Defaults to empty. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco config -h`. - diff --git a/docs/generated/CommandsDownload.md b/docs/generated/CommandsDownload.md deleted file mode 100644 index 19bbf943eb..0000000000 --- a/docs/generated/CommandsDownload.md +++ /dev/null @@ -1,250 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyDownloadCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Download Command (choco download) - -### Package Copy / Package Downloader - -[Chocolatey Professional](https://chocolatey.org/compare) and up (Pro+) starting in version 1.7.1. - -Downloads a package from a source and unpacks it. - -### Package Internalizer - -[Chocolatey for Business](https://chocolatey.org/compare) (C4B) starting at licensed version 1.5.0. -Chocolatey for Managed Service Providers (MSP) starting in 1.12.1. - -Downloads a package from a source, optionally downloading remote - resources and recompiling the package to use internal resources. This - takes an existing package and makes it available without any internet - requirement. - -See https://chocolatey.org/docs/features-automatically-recompile-packages - - -## Usage - - choco download <pkg> [<options/switches>] [install_script_variable=value] - - Install script variables are values that are discovered in the - chocolateyInstall.ps1 (or a script it calls). When you find values - there maybe don't get found and replaced or they use a default - value and you want to provide a value for them to use instead, you - can find them and then provide the value you want to pass instead. - For example, in the Firefox package, it uses a default value of - 'en-US' for `$locale`. If you want to change that, you can add - `locale` and a value, which will replace `$locale` in the script, - e.g. `choco download firefox --internalize locale=en-GB`. - -## Examples - - choco download sysinternals - - #### [Chocolatey for Business](https://chocolatey.org/compare) / Chocolatey for MSP - choco download notepadplusplus --internalize - choco download notepadplusplus.install --internalize --resources-location \\server\share - choco download notepadplusplus.install --internalize --resources-location http://somewhere/internal --append-useoriginallocation - choco download KB3033929 --internalize -internalize-all-urls --append-useoriginallocation - choco download firefox --internalize locale=es-AR - - -## See It In Action - -Coming soon - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - downloading multiple packages, and you use `--version=1.0.0`, it is - going to look for and try to download version 1.0.0 of every package - - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -s, --source=VALUE - Source - The source to find the package(s) to download. Defaults to - default feeds. - - --version=VALUE - Version - A specific version to download. Defaults to unspecified. - - --pre, --prerelease - Prerelease - Include Prereleases? Defaults to false. - - -u, --user=VALUE - User - used with authenticated feeds. Defaults to empty. - - -p, --password=VALUE - Password - the user's password to the source. Defaults to empty. - - --cert=VALUE - Client certificate - PFX pathname for an x509 authenticated feeds. - Defaults to empty. - - --cp, --certpassword=VALUE - Certificate Password - the client certificate's password to the source. - Defaults to empty. - - --out, --outdir, --outputdirectory, --output-directory=VALUE - OutputDirectory - Specifies the directory for the downloaded Chocolatey - package file. If not specified, uses the current directory. - - -i, --ignoredependencies, --ignore-dependencies - IgnoreDependencies - Ignore dependencies when installing package(s). - [Licensed editions](https://chocolatey.org/compare) v1.9.0+ Defaults to false. - - --recompile, --internalize - Recompile / Internalize - Download all external resources and recompile - the package to use the local resources instead. Business editions only - (licensed version 1.5.0+). - - --resources-location=VALUE - Resources Location - When internalizing, use this location for resources - instead of embedding the downloaded resources into the package. Can be a - file share or an internal url location. When it is a file share, it will - attempt to download to that location. When it is an internal url, it - will download locally and give further instructions on where it should - be uploaded to match package edits. Business editions only (licensed - version 1.5.1+). - - --download-location=VALUE - Download Location - OPTIONAL - When internalizing, download the - resources to this location. Used with Resources Location (and defaults - to Resources Location when not set). Business editions only (licensed - version 1.8.3+). - - -a, --all-urls, --internalize-all, --internalize-all-urls - All Urls - OPTIONAL - When internalizing, Chocolatey would normally only - internalize packages with known helpers. Add this switch to make it - download anytime a URL is found. Business editions only (licensed - version 1.12.0+). - - --append-useoriginallocation, --append-use-original-location - Append -UseOriginalLocation - When `Install-ChocolateyPackage` is - internalized, append the `-UseOriginalLocation` parameter to the - function. Business editions only (licensed version 1.7.0+). Requires at - least Chocolatey v0.10.1 for `Install-ChocolateyPackage` to recognize - the switch appropriately. Overrides the feature - 'internalizeAppendUseOriginalLocation' set to by default to 'True'. - - --sdc, --skipdownloadcache, --skip-download-cache - Skip Download Cache - Use the original download url even if a private - CDN cache is available for a package. Overrides the default feature - 'downloadCache' set to 'True'. Business editions only (licensed version - 1.12.2+). See https://chocolatey.org/docs/features-private-cdn - - --dc, --downloadcache, --download-cache, --use-download-cache - Use Download Cache - Use private CDN cache if available for a package. - Overrides the default feature 'downloadCache' set to 'True'. Business - editions only (licensed version 1.12.2+). See https://chocolate- - y.org/docs/features-private-cdn - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco download -h`. - diff --git a/docs/generated/CommandsFeature.md b/docs/generated/CommandsFeature.md deleted file mode 100644 index 1735ebe112..0000000000 --- a/docs/generated/CommandsFeature.md +++ /dev/null @@ -1,153 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyFeatureCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Feature Command (choco feature) - -Chocolatey will allow you to interact with features. - -## Usage - - choco feature [list]|disable|enable [<options/switches>] - -## Examples - - choco feature - choco feature list - choco feature disable -n=bob - choco feature enable -n=bob - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -n, --name=VALUE - Name - the name of the source. Required with actions other than list. - Defaults to empty. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco feature -h`. - diff --git a/docs/generated/CommandsFeatures.md b/docs/generated/CommandsFeatures.md deleted file mode 100644 index d551dc1836..0000000000 --- a/docs/generated/CommandsFeatures.md +++ /dev/null @@ -1,153 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyFeaturesCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Feature Command (choco features) - -Chocolatey will allow you to interact with features. - -## Usage - - choco feature [list]|disable|enable [<options/switches>] - -## Examples - - choco feature - choco feature list - choco feature disable -n=bob - choco feature enable -n=bob - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -n, --name=VALUE - Name - the name of the source. Required with actions other than list. - Defaults to empty. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco features -h`. - diff --git a/docs/generated/CommandsInfo.md b/docs/generated/CommandsInfo.md deleted file mode 100644 index 224683c4be..0000000000 --- a/docs/generated/CommandsInfo.md +++ /dev/null @@ -1,189 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyInfoCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Info Command (choco info) - -Chocolatey will perform a search for a package local or remote and provide - detailed information about that package. This is a synonym for - `choco search <pkgname> --exact --detailed`. - -**NOTE:** New as of 0.9.10.0. - - -## Usage - - choco info [<options/switches>] - -## Examples - - choco info chocolatey - choco info googlechrome - choco info powershell - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -Enhanced: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - - 2: no results (enhanced) - -**NOTE:** Starting in v0.10.12, if you have the feature 'useEnhancedExitCodes' - turned on, then choco will provide enhanced exit codes that allow - better integration and scripting. - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -s, --source=VALUE - Source - Source location for install. Can use special 'webpi' or - 'windowsfeatures' sources. Defaults to sources. - - -l, --lo, --localonly, --local-only - LocalOnly - Only search against local machine items. - - --version=VALUE - Version - Specific version of a package to return. - - --pre, --prerelease - Prerelease - Include Prereleases? Defaults to false. - - -u, --user=VALUE - User - used with authenticated feeds. Defaults to empty. - - -p, --password=VALUE - Password - the user's password to the source. Defaults to empty. - - --cert=VALUE - Client certificate - PFX pathname for an x509 authenticated feeds. - Defaults to empty. Available in 0.9.10+. - - --cp, --certpassword=VALUE - Certificate Password - the client certificate's password to the source. - Defaults to empty. Available in 0.9.10+. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco info -h`. - diff --git a/docs/generated/CommandsInstall.md b/docs/generated/CommandsInstall.md deleted file mode 100644 index d6d21bf618..0000000000 --- a/docs/generated/CommandsInstall.md +++ /dev/null @@ -1,523 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyInstallCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Install Command (choco install) - -Installs a package or a list of packages (sometimes specified as a - packages.config). Some may prefer to use `cinst` as a shortcut for - [[`choco install`|Commandsinstall]]. - -**NOTE:** 100% compatible with older chocolatey client (0.9.8.32 and below) - with options and switches. Add `-y` for previous behavior with no - prompt. In most cases you can still pass options and switches with one - dash (`-`). For more details, see [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`). - -## Usage - - choco install <pkg|packages.config> [<pkg2> <pkgN>] [<options/switches>] - cinst <pkg|packages.config> [<pkg2> <pkgN>] [<options/switches>] - -**NOTE:** `all` is a special package keyword that will allow you to install - all packages from a custom feed. Will not work with Chocolatey default - feed. THIS IS NOT YET REIMPLEMENTED. - -**NOTE:** Any package name ending with .config is considered a - 'packages.config' file. Please see https://bit.ly/packages_config - -**NOTE:** [Chocolatey Pro](https://chocolatey.org/compare) / Business builds on top of a great open source - experience with quite a few features that enhance the your use of the - community package repository (when using Pro), and really enhance the - Chocolatey experience all around. If you are an organization looking - for a better ROI, look no further than Business - automatic package - creation from installer files, automatic recompile support, runtime - malware protection, private CDN download cache, synchronize with - Programs and Features, etc - https://chocolatey.org/compare. - - -## Examples - - choco install sysinternals - choco install notepadplusplus googlechrome atom 7zip - choco install notepadplusplus --force --force-dependencies - choco install notepadplusplus googlechrome atom 7zip -dvfy - choco install git -y --params="'/GitAndUnixToolsOnPath /NoAutoCrlf'" - choco install git -y --params="'/GitAndUnixToolsOnPath /NoAutoCrlf'" --install-args="'/DIR=C:\git'" - # Params are package parameters, passed to the package - # Install args are installer arguments, appended to the silentArgs - # in the package for the installer itself - choco install nodejs.install --version 0.10.35 - choco install git -s "'https://somewhere/out/there'" - choco install git -s "'https://somewhere/protected'" -u user -p pass - -Choco can also install directly from a nuspec/nupkg file. This aids in - testing packages: - - choco install <path/to/nuspec> - choco install <path/to/nupkg> - -Install multiple versions of a package using -m (AllowMultiple versions) - - choco install ruby --version 1.9.3.55100 -my - choco install ruby --version 2.0.0.59800 -my - choco install ruby --version 2.1.5 -my - -What is `-my`? See option bundling in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] - (`choco -?`). - -**NOTE:** All of these will add to PATH variable. We'll be adding a special - option to not allow PATH changes. Until then you will need to manually - go modify Path to just one Ruby and then use something like uru - (https://bitbucket.org/jonforums/uru) or pik - (https://chocolatey.org/packages/pik) to switch between versions. - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -Package Exit Codes: - - 1641: success, reboot initiated - - 3010: success, reboot required - - other (not listed): likely an error has occurred - -In addition to normal exit codes, packages are allowed to exit - with their own codes when the feature 'usePackageExitCodes' is - turned on. Uninstall command has additional valid exit codes. - Available in v0.9.10+. - -Reboot Exit Codes: - - 350: pending reboot detected, no action has occurred - - 1604: install suspended, incomplete - -In addition to the above exit codes, you may also see reboot exit codes - when the feature 'exitOnRebootDetected' is turned on. It typically requires - the feature 'usePackageExitCodes' to also be turned on to work properly. - Available in v0.10.12+. - -## See It In Action - -Chocolatey FOSS install showing tab completion and `refreshenv` (a way - to update environment variables without restarting the shell). - -![FOSS install in action](https://raw.githubusercontent.com/wiki/chocolatey/choco/images/gifs/choco_install.gif) - -[Chocolatey Professional](https://chocolatey.org/compare) showing private download cache and virus scan - protection. - -![Pro install in action](https://raw.githubusercontent.com/wiki/chocolatey/choco/images/gifs/chocopro_install_stopped.gif) - -## Packages.config - -Alternative to PackageName. This is a list of packages in an xml manifest for Chocolatey to install. This is like the packages.config that NuGet uses except it also adds other options and switches. This can also be the path to the packages.config file if it is not in the current working directory. - -**NOTE:** The filename is only required to end in .config, the name is not required to be packages.config. - -~~~xml - <?xml version="1.0" encoding="utf-8"?> - <packages> - <package id="apackage" /> - <package id="anotherPackage" version="1.1" /> - <package id="chocolateytestpackage" version="0.1" source="somelocation" /> - <package id="alloptions" version="0.1.1" - source="https://somewhere/api/v2/" installArguments="" - packageParameters="" forceX86="false" allowMultipleVersions="false" - ignoreDependencies="false" - /> - </packages> -~~~ - - -## Alternative Sources - -Available in 0.9.10+. - -### Ruby -This specifies the source is Ruby Gems and that we are installing a - gem. If you do not have ruby installed prior to running this command, - the command will install that first. - e.g. `choco install compass -source ruby` - -### WebPI -This specifies the source is Web PI (Web Platform Installer) and that - we are installing a WebPI product, such as IISExpress. If you do not - have the Web PI command line installed, it will install that first and - then the product requested. - e.g. `choco install IISExpress --source webpi` - -### Cygwin -This specifies the source is Cygwin and that we are installing a cygwin - package, such as bash. If you do not have Cygwin installed, it will - install that first and then the product requested. - e.g. `choco install bash --source cygwin` - -### Python -This specifies the source is Python and that we are installing a python - package, such as Sphinx. If you do not have easy_install and Python - installed, it will install those first and then the product requested. - e.g. `choco install sphinx --source python` - -### Windows Features -This specifies that the source is a Windows Feature and we should - install via the Deployment Image Servicing and Management tool (DISM) - on the local machine. - e.g. `choco install IIS-WebServerRole --source windowsfeatures` - - -## Resources - - * How-To: A complete example of how you can use the PackageParameters argument - when creating a Chocolatey Package can be seen at - https://chocolatey.org/docs/how-to-parse-package-parameters-argument - * One may want to override the default installation directory of a - piece of software. See - https://chocolatey.org/docs/getting-started#overriding-default-install-directory-or-other-advanced-install-concepts. - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -s, --source=VALUE - Source - The source to find the package(s) to install. Special sources - include: ruby, webpi, cygwin, windowsfeatures, and python. To specify - more than one source, pass it with a semi-colon separating the values (- - e.g. "'source1;source2'"). Defaults to default feeds. - - --version=VALUE - Version - A specific version to install. Defaults to unspecified. - - --pre, --prerelease - Prerelease - Include Prereleases? Defaults to false. - - --x86, --forcex86 - ForceX86 - Force x86 (32bit) installation on 64 bit systems. Defaults to - false. - - --ia, --installargs, --installarguments, --install-arguments=VALUE - InstallArguments - Install Arguments to pass to the native installer in - the package. Defaults to unspecified. - - -o, --override, --overrideargs, --overridearguments, --override-arguments - OverrideArguments - Should install arguments be used exclusively without - appending to current package passed arguments? Defaults to false. - - --notsilent, --not-silent - NotSilent - Do not install this silently. Defaults to false. - - --params, --parameters, --pkgparameters, --packageparameters, --package-parameters=VALUE - PackageParameters - Parameters to pass to the package. Defaults to - unspecified. - - --argsglobal, --args-global, --installargsglobal, --install-args-global, --applyargstodependencies, --apply-args-to-dependencies, --apply-install-arguments-to-dependencies - Apply Install Arguments To Dependencies - Should install arguments be - applied to dependent packages? Defaults to false. - - --paramsglobal, --params-global, --packageparametersglobal, --package-parameters-global, --applyparamstodependencies, --apply-params-to-dependencies, --apply-package-parameters-to-dependencies - Apply Package Parameters To Dependencies - Should package parameters be - applied to dependent packages? Defaults to false. - - --allowdowngrade, --allow-downgrade - AllowDowngrade - Should an attempt at downgrading be allowed? Defaults - to false. - - -m, --sxs, --sidebyside, --side-by-side, --allowmultiple, --allow-multiple, --allowmultipleversions, --allow-multiple-versions - AllowMultipleVersions - Should multiple versions of a package be - installed? Defaults to false. - - -i, --ignoredependencies, --ignore-dependencies - IgnoreDependencies - Ignore dependencies when installing package(s). - Defaults to false. - - -x, --forcedependencies, --force-dependencies - ForceDependencies - Force dependencies to be reinstalled when force - installing package(s). Must be used in conjunction with --force. - Defaults to false. - - -n, --skippowershell, --skip-powershell, --skipscripts, --skip-scripts, --skip-automation-scripts - Skip Powershell - Do not run chocolateyInstall.ps1. Defaults to false. - - -u, --user=VALUE - User - used with authenticated feeds. Defaults to empty. - - -p, --password=VALUE - Password - the user's password to the source. Defaults to empty. - - --cert=VALUE - Client certificate - PFX pathname for an x509 authenticated feeds. - Defaults to empty. Available in 0.9.10+. - - --cp, --certpassword=VALUE - Certificate Password - the client certificate's password to the source. - Defaults to empty. Available in 0.9.10+. - - --ignorechecksum, --ignore-checksum, --ignorechecksums, --ignore-checksums - IgnoreChecksums - Ignore checksums provided by the package. Overrides - the default feature 'checksumFiles' set to 'True'. Available in 0.9.9.9+. - - --allowemptychecksum, --allowemptychecksums, --allow-empty-checksums - Allow Empty Checksums - Allow packages to have empty/missing checksums - for downloaded resources from non-secure locations (HTTP, FTP). Use this - switch is not recommended if using sources that download resources from - the internet. Overrides the default feature 'allowEmptyChecksums' set to - 'False'. Available in 0.10.0+. - - --allowemptychecksumsecure, --allowemptychecksumssecure, --allow-empty-checksums-secure - Allow Empty Checksums Secure - Allow packages to have empty checksums - for downloaded resources from secure locations (HTTPS). Overrides the - default feature 'allowEmptyChecksumsSecure' set to 'True'. Available in - 0.10.0+. - - --requirechecksum, --requirechecksums, --require-checksums - Require Checksums - Requires packages to have checksums for downloaded - resources (both non-secure and secure). Overrides the default feature - 'allowEmptyChecksums' set to 'False' and 'allowEmptyChecksumsSecure' set - to 'True'. Available in 0.10.0+. - - --checksum, --downloadchecksum, --download-checksum=VALUE - Download Checksum - a user provided checksum for downloaded resources - for the package. Overrides the package checksum (if it has one). - Defaults to empty. Available in 0.10.0+. - - --checksum64, --checksumx64, --downloadchecksumx64, --download-checksum-x64=VALUE - Download Checksum 64bit - a user provided checksum for 64bit downloaded - resources for the package. Overrides the package 64-bit checksum (if it - has one). Defaults to same as Download Checksum. Available in 0.10.0+. - - --checksumtype, --checksum-type, --downloadchecksumtype, --download-checksum-type=VALUE - Download Checksum Type - a user provided checksum type. Overrides the - package checksum type (if it has one). Used in conjunction with Download - Checksum. Available values are 'md5', 'sha1', 'sha256' or 'sha512'. - Defaults to 'md5'. Available in 0.10.0+. - - --checksumtype64, --checksumtypex64, --checksum-type-x64, --downloadchecksumtypex64, --download-checksum-type-x64=VALUE - Download Checksum Type 64bit - a user provided checksum for 64bit - downloaded resources for the package. Overrides the package 64-bit - checksum (if it has one). Used in conjunction with Download Checksum - 64bit. Available values are 'md5', 'sha1', 'sha256' or 'sha512'. - Defaults to same as Download Checksum Type. Available in 0.10.0+. - - --ignorepackagecodes, --ignorepackageexitcodes, --ignore-package-codes, --ignore-package-exit-codes - IgnorePackageExitCodes - Exit with a 0 for success and 1 for non-succes- - s, no matter what package scripts provide for exit codes. Overrides the - default feature 'usePackageExitCodes' set to 'True'. Available in 0.- - 9.10+. - - --usepackagecodes, --usepackageexitcodes, --use-package-codes, --use-package-exit-codes - UsePackageExitCodes - Package scripts can provide exit codes. Use those - for choco's exit code when non-zero (this value can come from a - dependency package). Chocolatey defines valid exit codes as 0, 1605, - 1614, 1641, 3010. Overrides the default feature 'usePackageExitCodes' - set to 'True'. Available in 0.9.10+. - - --stoponfirstfailure, --stop-on-first-failure, --stop-on-first-package-failure - Stop On First Package Failure - stop running install, upgrade or - uninstall on first package failure instead of continuing with others. - Overrides the default feature 'stopOnFirstPackageFailure' set to 'False- - '. Available in 0.10.4+. - - --exitwhenrebootdetected, --exit-when-reboot-detected - Exit When Reboot Detected - Stop running install, upgrade, or uninstall - when a reboot request is detected. Requires 'usePackageExitCodes' - feature to be turned on. Will exit with either 350 or 1604. Overrides - the default feature 'exitOnRebootDetected' set to 'False'. Available in - 0.10.12+. - - --ignoredetectedreboot, --ignore-detected-reboot - Ignore Detected Reboot - Ignore any detected reboots if found. Overrides - the default feature 'exitOnRebootDetected' set to 'False'. Available in - 0.10.12+. - - --sdc, --skipdownloadcache, --skip-download-cache - Skip Download Cache - Use the original download even if a private CDN - cache is available for a package. Overrides the default feature - 'downloadCache' set to 'True'. Available in 0.9.10+. [Licensed editions](https://chocolatey.org/compare) - only. See https://chocolatey.org/docs/features-private-cdn - - --dc, --downloadcache, --download-cache, --use-download-cache - Use Download Cache - Use private CDN cache if available for a package. - Overrides the default feature 'downloadCache' set to 'True'. Available - in 0.9.10+. [Licensed editions](https://chocolatey.org/compare) only. See https://chocolate- - y.org/docs/features-private-cdn - - --svc, --skipvirus, --skip-virus, --skipviruscheck, --skip-virus-check - Skip Virus Check - Skip the virus check for downloaded files on this ru- - n. Overrides the default feature 'virusCheck' set to 'True'. Available - in 0.9.10+. [Licensed editions](https://chocolatey.org/compare) only. See https://chocolate- - y.org/docs/features-virus-check - - --virus, --viruscheck, --virus-check - Virus Check - check downloaded files for viruses. Overrides the default - feature 'virusCheck' set to 'True'. Available in 0.9.10+. Licensed - editions only. See https://chocolatey.org/docs/features-virus-check - - --viruspositivesmin, --virus-positives-minimum=VALUE - Virus Check Minimum Scan Result Positives - the minimum number of scan - result positives required to flag a package. Used when virusScannerType - is VirusTotal. Overrides the default configuration value - 'virusCheckMinimumPositives' set to '5'. Available in 0.9.10+. Licensed - editions only. See https://chocolatey.org/docs/features-virus-check - - --install-arguments-sensitive=VALUE - InstallArgumentsSensitive - Install Arguments to pass to the native - installer in the package that are sensitive and you do not want logged. - Defaults to unspecified. Available in 0.10.1+. [Licensed editions](https://chocolatey.org/compare) only. - - --package-parameters-sensitive=VALUE - PackageParametersSensitive - Package Parameters to pass the package that - are sensitive and you do not want logged. Defaults to unspecified. - Available in 0.10.1+. [Licensed editions](https://chocolatey.org/compare) only. - - --dir, --directory, --installdir, --installdirectory, --install-dir, --install-directory=VALUE - Install Directory Override - Override the default installation director- - y. Chocolatey will automatically determine the type of installer and - pass the appropriate arguments to override the install directory. The - package must use Chocolatey install helpers and be installing an - installer for software. Available in 0.9.10+. [Licensed editions](https://chocolatey.org/compare) only. - See https://chocolatey.org/docs/features-install-directory-override - - --bps, --maxdownloadrate, --max-download-rate, --maxdownloadbitspersecond, --max-download-bits-per-second, --maximumdownloadbitspersecond, --maximum-download-bits-per-second=VALUE - Maximum Download Rate Bits Per Second - The maximum download rate in - bits per second. '0' or empty means no maximum. A number means that will - be the maximum download rate in bps. Defaults to config setting of '0'. - Available in [licensed editions](https://chocolatey.org/compare) v1.10+ only. See https://chocolate- - y.org/docs/features-package-throttle - - --reduce, --reduce-package-size, --deflate, --deflate-package-size - Reducer Installed Package Size (Package Reducer) - Reduce size of the - nupkg file to very small and remove extracted archives and installers. - Overrides the default feature 'reduceInstalledPackageSpaceUsage' set to - 'True'. [Licensed editions](https://chocolatey.org/compare) only (version 1.12.0+). See https://chocolate- - y.org/docs/features-package-reducer - - --no-reduce, --no-reduce-package-size, --no-deflate, --no-deflate-package-size - Do Not Reduce Installed Package Size - Leave the nupkg and files alone - in the package. Overrides the default feature - 'reduceInstalledPackageSpaceUsage' set to 'True'. [Licensed editions](https://chocolatey.org/compare) only - (version 1.12.0+). See https://chocolatey.org/docs/features-package- - reducer - - --reduce-nupkg-only, --deflate-nupkg-only - Reduce Only Nupkg File Size - reduce only the size of nupkg file when - using Package Reducer. Overrides the default feature - 'reduceOnlyNupkgSize' set to 'False'. [Licensed editions](https://chocolatey.org/compare) only (version - - 1.12.0+). See https://chocolatey.org/docs/features-package-reducer - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco install -h`. - diff --git a/docs/generated/CommandsList.md b/docs/generated/CommandsList.md deleted file mode 100644 index 6a1a84cdc2..0000000000 --- a/docs/generated/CommandsList.md +++ /dev/null @@ -1,278 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyListCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# List/Search Command (choco list) - -Chocolatey will perform a search for a package local or remote. Some - may prefer to use [[`clist`|Commandslist]] as a shortcut for [[`choco list`|Commandslist]]. - -**NOTE:** 100% compatible with older Chocolatey client (0.9.8.x and below) - with options and switches. In most cases you can still pass options - and switches with one dash (`-`). For more details, see - [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`). - -## Usage - - choco search <filter> [<options/switches>] - choco list <filter> [<options/switches>] - clist <filter> [<options/switches>] - -## Examples - - choco list --local-only - choco list -li - choco list -lai - choco list --page=0 --page-size=25 - choco search git - choco search git --source="'https://somewhere/out/there'" - choco search bob -s "'https://somewhere/protected'" -u user -p pass - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -Enhanced: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - - 2: no results (enhanced) - -**NOTE:** Starting in v0.10.12, if you have the feature 'useEnhancedExitCodes' - turned on, then choco will provide enhanced exit codes that allow - better integration and scripting. - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## See It In Action - -![choco search](https://raw.githubusercontent.com/wiki/chocolatey/choco/images/gifs/choco_search.gif) - - -## Alternative Sources - -Available in 0.9.10+. - -### WebPI -This specifies the source is Web PI (Web Platform Installer) and that - we are searching for a WebPI product, such as IISExpress. If you do - not have the Web PI command line installed, it will install that first - and then perform the search requested. - e.g. `choco list --source webpi` - -### Windows Features -This specifies that the source is a Windows Feature and we should - install via the Deployment Image Servicing and Management tool (DISM) - on the local machine. - e.g. `choco list --source windowsfeatures` - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -s, --source=VALUE - Source - Source location for install. Can use special 'webpi' or - 'windowsfeatures' sources. Defaults to sources. - - -l, --lo, --localonly, --local-only - LocalOnly - Only search against local machine items. - - --idonly, --id-only - Id Only - Only return Package Ids in the list results. Available in 0.1- - 0.6+. - - --pre, --prerelease - Prerelease - Include Prereleases? Defaults to false. - - -i, --includeprograms, --include-programs - IncludePrograms - Used in conjunction with LocalOnly, filters out apps - chocolatey has listed as packages and includes those in the list. - Defaults to false. - - -a, --all, --allversions, --all-versions - AllVersions - include results from all versions. - - --version=VALUE - Version - Specific version of a package to return. - - -u, --user=VALUE - User - used with authenticated feeds. Defaults to empty. - - -p, --password=VALUE - Password - the user's password to the source. Defaults to empty. - - --cert=VALUE - Client certificate - PFX pathname for an x509 authenticated feeds. - Defaults to empty. Available in 0.9.10+. - - --cp, --certpassword=VALUE - Certificate Password - the client certificate's password to the source. - Defaults to empty. Available in 0.9.10+. - - --page=VALUE - Page - the 'page' of results to return. Defaults to return all results. - Available in 0.9.10+. - - --page-size=VALUE - Page Size - the amount of package results to return per page. Defaults - to 25. Available in 0.9.10+. - - -e, --exact - Exact - Only return packages with this exact name. Available in 0.9.10+. - - --by-id-only - ByIdOnly - Only return packages where the id contains the search filter. - Available in 0.9.10+. - - --by-tag-only, --by-tags-only - ByTagOnly - Only return packages where the search filter matches on the - tags. Available in 0.10.6+. - - --id-starts-with - IdStartsWith - Only return packages where the id starts with the search - filter. Available in 0.9.10+. - - --order-by-popularity - OrderByPopularity - Sort by package results by popularity. Available in - 0.9.10+. - - --approved-only - ApprovedOnly - Only return approved packages - this option will filter - out results not from the [community repository](https://chocolatey.org/packages). Available in 0.9.10+. - - --download-cache, --download-cache-only - DownloadCacheAvailable - Only return packages that have a download cache - available - this option will filter out results not from the community - repository. Available in 0.9.10+. - - --not-broken - NotBroken - Only return packages that are not failing testing - this - option only filters out failing results from the [community feed](https://chocolatey.org/packages). It will - not filter against other sources. Available in 0.9.10+. - - --detail, --detailed - Detailed - Alias for verbose. Available in 0.9.10+. - - --audit, --showaudit, --show-audit, --show-audit-info - Show Audit Information - Display auditing information for a package. - Available in business editions 1.12.0+. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco list -h`. - diff --git a/docs/generated/CommandsNew.md b/docs/generated/CommandsNew.md deleted file mode 100644 index 1c99b0cbe1..0000000000 --- a/docs/generated/CommandsNew.md +++ /dev/null @@ -1,278 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyNewCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Package Builder Command (choco new) - -Chocolatey [Licensed editions](https://chocolatey.org/compare) include some level of Package Builder. - - - Professional (licensed edition v1.9.0+) can take advantage of - Package Builder UI minus the auto-detection - - Business (licensed edition v1.4.0+) can use `--file` or Package - Builder UI to generate a fully ready to go unattended software - deployment in seconds. So easy a 7 year old can do it. Right Click - 'Create Package...' - - Business (licensed edition v1.8.0+) can use - `--from-programs-and-features` to generate packages directly from - Programs and Features! - -See https://chocolatey.org/docs/features-create-packages-from-installers - - -# New Command (choco new) - -Chocolatey will generate package specification files for a new package. - -## Usage - - choco new <name> [<options/switches>] [<property=value> <propertyN=valueN>] - -Possible properties to pass: - packageversion - maintainername - maintainerrepo - installertype - url - url64 - silentargs - -**NOTE:** Starting in 0.9.10, you can pass arbitrary property value pairs - through to templates. This really unlocks your ability to create - packages automatically! - -**NOTE:** [Chocolatey for Business](https://chocolatey.org/compare) can create complete packages by just - pointing the new command to native installers! - -**NOTE:** [Chocolatey for Business](https://chocolatey.org/compare) can also download and internalize remote - resources from existing packages so that existing packages can be used - without being tied to the internet. - This is called automatic recompile. - -## Examples - - choco new bob - choco new bob -a --version 1.2.0 maintainername="'This guy'" - choco new bob silentargs="'/S'" url="'https://somewhere/out/there.msi'" - choco new bob --outputdirectory Packages - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -a, --auto, --automaticpackage - AutomaticPackage - Generate automatic package instead of normal. - Defaults to false - - -t, --template, --template-name=VALUE - TemplateName - Use a named template in - C:\ProgramData\chocolatey\templates\templatename instead of built-in - template. Available in 0.9.9.9+. Manage templates as packages in 0.9.10+. - - --name=VALUE - Name [Required]- the name of the package. Can be passed as first - parameter without "--name=". - - --version=VALUE - Version - the version of the package. Can also be passed as the property - PackageVersion=somevalue - - --maintainer=VALUE - Maintainer - the name of the maintainer. Can also be passed as the - property MaintainerName=somevalue - - --out, --outdir, --outputdirectory, --output-directory=VALUE - OutputDirectory - Specifies the directory for the created Chocolatey - package file. If not specified, uses the current directory. Available in - 0.9.10+. - - --built-in, --built-in-template, --originaltemplate, --original-template, --use-original-template, --use-built-in-template - BuiltInTemplate - Use the original built-in template instead of any - override. Available in 0.9.10+. - - --file, --url=VALUE - Location of binary. In [Chocolatey for Business](https://chocolatey.org/compare), file is used for auto- - detection (native installer, zip, patch/upgrade file, or remote url to - download first) to completely create a package with proper silent - arguments! Can be 32-bit or 64-bit architecture. Available in licensed - editions only (licensed version 1.4.0+, url/zip starting in 1.6.0). See - https://chocolatey.org/docs/features-create-packages-from-installers - - --file64, --url64=VALUE - Optional - used when specifying both a 32-bit and a 64-bit file. Can be - an installer or a zip, or remote url to download. Available in licensed - editions only (licensed version 1.6.0+). - - --keepremote, --keep-remote, --originallocation, --original-location, --useoriginallocation, --use-original-location, --useoriginalfileslocation, --use-original-files-location - Use Original Files Location - when using file or url, use the original - location in packaging. Available in [licensed editions](https://chocolatey.org/compare) only (licensed - version 1.6.0+). - - --checksum, --downloadchecksum, --download-checksum=VALUE - Download Checksum - checksum to verify File/Url with. Defaults to empty. - Available in [licensed editions](https://chocolatey.org/compare) only (licensed version 1.7.0+). - - --checksum64, --checksumx64, --downloadchecksumx64, --download-checksum-x64=VALUE - Download Checksum 64-bit - checksum to verify File64/Url64 with. - Defaults to empty. Available in [licensed editions](https://chocolatey.org/compare) only (licensed version - 1.7.0+). - - --checksumtype, --checksum-type, --downloadchecksumtype, --download-checksum-type=VALUE - Download Checksum Type - checksum type for File/Url (and optional - separate 64-bit files when specifying both). Used in conjunction with - Download Checksum and Download Checksum 64-bit. Available values are - 'md5', 'sha1', 'sha256' or 'sha512'. Defaults to 'sha256'. Available in - Business editions only (licensed version 1.7.0+). - - --pauseonerror, --pause-on-error - Pause on Error - Pause when there is an error with creating the package. - Available in [licensed editions](https://chocolatey.org/compare) only (licensed version 1.7.0+). - - --buildpackage, --build-package, --build-packages - Build Package - Attempt to compile the package after creating it. - Available in [licensed editions](https://chocolatey.org/compare) only (licensed version 1.7.0+). - - --fromprograms, --from-programs, --fromprogramsandfeatures, --from-programs-and-features - Generate Packages From Installed Software - Generate packages from the - installed software on a system (does not handle dependencies). Available - in Business editions only (licensed version 1.8.0+). - - --for-public, --for-community, --generate-for-community - Generate the Package for Community - Generate the package for community - use. Available in Business editions only (licensed version 1.9.0+). - - --removearchitecture, --removearchitecturefromname, --remove-architecture, --remove-architecture-from-name - Remove Architecture From Name - Remove x86, x64, 64-bit, etc from the - package id. Default setting is to remove architecture. Available in - Business editions only (licensed version 1.8.0+). - - --includearchitecture, --includearchitectureinname, --include-architecture, --include-architecture-in-name - Include Architecture in Package Name - Leave x86, x64, 64-bit, etc as - part of the package id. Default setting is to remove architecture. - Available in Business editions only (licensed version 1.8.0+). - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco new -h`. - diff --git a/docs/generated/CommandsOptimize.md b/docs/generated/CommandsOptimize.md deleted file mode 100644 index 2142e2479f..0000000000 --- a/docs/generated/CommandsOptimize.md +++ /dev/null @@ -1,164 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyOptimizeCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Optimize Command (choco optimize) - -### Package Optimizer - -Chocolatey [Licensed editions](https://chocolatey.org/compare) starting at Chocolatey Licensed Extension v1.12.0. - -Similar to Package Reducer, but reduces for existing packages. -With Package Optimizer/Reducer: - -* nupkg file is reduced to 5KB or less, no matter the size. -* zips / installers are automatically removed from the package directory if they are found. -* zips / installers are removed from TEMP cache if found. - -The following file extensions are removed automatically: - -* 7z / zip / rar / gz / tar / sfx -* iso -* msi / msu / msp -* exe files if they are detected to be an installer - - - -## Usage - - choco optimize [<options/switches>] - -## Examples - - choco optimize - choco optimize --reduce-nupkg-only - - -## See It In Action - -Coming soon - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - downloading multiple packages, and you use `--version=1.0.0`, it is - going to look for and try to download version 1.0.0 of every package - - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - --reduce-nupkg-only, --deflate-nupkg-only - Reduce Only Nupkg File Size - reduce only the size of nupkg file when - using Package Optimizer. [Licensed editions](https://chocolatey.org/compare) only (version 1.12.0+). - - --id=VALUE - Id - The package to optimize - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco optimize -h`. - diff --git a/docs/generated/CommandsOutdated.md b/docs/generated/CommandsOutdated.md deleted file mode 100644 index 4ef0b540a2..0000000000 --- a/docs/generated/CommandsOutdated.md +++ /dev/null @@ -1,199 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyOutdatedCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Outdated Command (choco outdated) - -Returns a list of outdated packages. - -**NOTE:** Available with 0.9.9.6+. - - -## Usage - - choco outdated [<options/switches>] - -## Examples - - choco outdated - choco outdated -s https://somewhere/out/there - choco outdated -s "'https://somewhere/protected'" -u user -p pass - -If you use `--source=https://somewhere/out/there`, it is - going to look for outdated packages only based on that source, so - you may want to add `--ignore-unfound` to your options. - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -Enhanced: - - 0: no outdated packages - - -1 or 1: an error has occurred - - 2: outdated packages have been found - -**NOTE:** Starting in v0.10.12, if you have the feature 'useEnhancedExitCodes' - turned on, then choco will provide enhanced exit codes that allow - better integration and scripting. - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## See It In Action - -![choco outdated](https://raw.githubusercontent.com/wiki/chocolatey/choco/images/gifs/choco_outdated.gif) - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -s, --source=VALUE - Source - The source to find the package(s) to install. Special sources - include: ruby, webpi, cygwin, windowsfeatures, and python. To specify - more than one source, pass it with a semi-colon separating the values (- - e.g. "'source1;source2'"). Defaults to default feeds. - - -u, --user=VALUE - User - used with authenticated feeds. Defaults to empty. - - -p, --password=VALUE - Password - the user's password to the source. Defaults to empty. - - --cert=VALUE - Client certificate - PFX pathname for an x509 authenticated feeds. - Defaults to empty. Available in 0.9.10+. - - --cp, --certpassword=VALUE - Certificate Password - the client certificate's password to the source. - Defaults to empty. Available in 0.9.10+. - - --ignore-pinned - Ignore Pinned - Ignore pinned packages. Defaults to false. Available in - 0.10.6+. - - --ignore-unfound - Ignore Unfound Packages - Ignore packages that are not found on the - sources used (or the defaults). Overrides the default feature - 'ignoreUnfoundPackagesOnUpgradeOutdated' set to 'False'. Available in - - 0.10.9+. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco outdated -h`. - diff --git a/docs/generated/CommandsPack.md b/docs/generated/CommandsPack.md deleted file mode 100644 index 27a367ec3c..0000000000 --- a/docs/generated/CommandsPack.md +++ /dev/null @@ -1,170 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyPackCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Pack Command (choco pack) - -Chocolatey will attempt to package a nuspec into a compiled nupkg. Some - may prefer to use `cpack` as a shortcut for `choco pack`. - -**NOTE:** 100% compatible with older chocolatey client (0.9.8.32 and below) - with options and switches. In most cases you can still pass options - and switches with one dash (`-`). For more details, see - [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`). - -**NOTE:** You can pass arbitrary property value pairs through to nuspecs. - These will replace variables formatted as `$property$` with the value passed. - -**NOTE:** `cpack` has been deprecated as it has a name collision with CMake. Please - use `choco pack` instead. The shortcut will be removed in v1. - - -## Usage - - choco pack [<path to nuspec>] [<options/switches>] [<property=value>] - cpack [<path to nuspec>] [<options/switches>] (DEPRECATED) - -## Examples - - choco pack - choco pack --version 1.2.3 configuration=release - choco pack path/to/nuspec - choco pack --outputdirectory build - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - --version=VALUE - Version - The version you would like to insert into the package. - - --out, --outdir, --outputdirectory, --output-directory=VALUE - OutputDirectory - Specifies the directory for the created Chocolatey - package file. If not specified, uses the current directory. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco pack -h`. - diff --git a/docs/generated/CommandsPin.md b/docs/generated/CommandsPin.md deleted file mode 100644 index d2dc4839ea..0000000000 --- a/docs/generated/CommandsPin.md +++ /dev/null @@ -1,166 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyPinCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Pin Command (choco pin) - -Pin a package to suppress upgrades. - -This is especially helpful when running [[`choco upgrade`|Commandsupgrade]] for all - packages, as it will automatically skip those packages. Another - alternative is `choco upgrade --except="pkg1,pk2"`. - -## Usage - - choco pin [list]|add|remove [<options/switches>] - -## Examples - - choco pin - choco pin list - choco pin add -n=git - choco pin add -n=git --version 1.2.3 - choco pin remove --name git - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -n, --name=VALUE - Name - the name of the package. Required with some actions. Defaults to - empty. - - --version=VALUE - Version - Used when multiple versions of a package are installed. - Defaults to empty. - - --reason, --pin-reason, --note=VALUE - Pin Reason - Text information about why you are setting a pin. Available - in business editions 1.12.2+. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco pin -h`. - diff --git a/docs/generated/CommandsPush.md b/docs/generated/CommandsPush.md deleted file mode 100644 index eec789429d..0000000000 --- a/docs/generated/CommandsPush.md +++ /dev/null @@ -1,194 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyPushCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Push Command (choco push) - -Chocolatey will attempt to push a compiled nupkg to a package feed. - Some may prefer to use `cpush` as a shortcut for `choco push`. - -**NOTE:** 100% compatible with older chocolatey client (0.9.8.32 and below) - with options and switches. Default push location is deprecated and - will be removed by v1. In most cases you can still pass options and - switches with one dash (`-`). For more details, see - [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`). - -A feed can be a local folder, a file share, the [community feed](https://chocolatey.org/packages) - (https://push.chocolatey.org/), or a custom/private feed. For web - feeds, it has a requirement that it implements the proper OData - endpoints required for NuGet packages. - -## Usage - - choco push [<path to nupkg>] [<options/switches>] - cpush [<path to nupkg>] [<options/switches>] - -**NOTE:** If there is more than one nupkg file in the folder, the command - will require specifying the path to the file. - -## Examples - - choco push --source https://chocolatey.org/ - choco push --source "'https://chocolatey.org/'" -t 500 - choco push --source "'https://chocolatey.org/'" -k="'123-123123-123'" - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Troubleshooting - -To use this command, you must have your API key saved for the community - feed (chocolatey.org) or the source you want to push to. Or you can - explicitly pass the apikey to the command. See [[`apikey`|Commandsapikey]] command help - for instructions on saving your key: - - choco apikey -? - -A common error is `Failed to process request. 'The specified API key - does not provide the authority to push packages.' The remote server - returned an error: (403) Forbidden..` This means the package already - exists with a different user (API key). The package could be unlisted. - You can verify by going to https://push.chocolatey.org/packages/packageName. - Please contact the administrators of https://push.chocolatey.org/ if you see this - and you don't see a good reason for it. - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -s, --source=VALUE - Source - The source we are pushing the package to. Use https://pus- - h.chocolatey.org/ to push to [community feed](https://chocolatey.org/packages). - - -k, --key, --apikey, --api-key=VALUE - ApiKey - The api key for the source. If not specified (and not local - file source), does a lookup. If not specified and one is not found for - an https source, push will fail. - - -t=VALUE - Timeout (in seconds) - The time to allow a package push to occur before - timing out. Defaults to execution timeout 2700. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco push -h`. - diff --git a/docs/generated/CommandsReference.md b/docs/generated/CommandsReference.md deleted file mode 100644 index 5299d5b128..0000000000 --- a/docs/generated/CommandsReference.md +++ /dev/null @@ -1,303 +0,0 @@ -# Command Reference - -<!-- This file is automatically generated based on output from the files at https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -This is a listing of all of the different things you can pass to choco. - -## Commands - - * [[list|CommandsList]] - lists remote or local packages - * [[search|CommandsSearch]] - searches remote or local packages (alias for list) - * [[info|CommandsInfo]] - retrieves package information. Shorthand for choco search pkgname --exact --verbose - * [[install|CommandsInstall]] - installs packages from various sources - * [[pin|CommandsPin]] - suppress upgrades for a package - * [[outdated|CommandsOutdated]] - retrieves packages that are outdated. Similar to upgrade all --noop - * [[upgrade|CommandsUpgrade]] - upgrades packages from various sources - * [[uninstall|CommandsUninstall]] - uninstalls a package - * [[pack|CommandsPack]] - packages up a nuspec to a compiled nupkg - * [[push|CommandsPush]] - pushes a compiled nupkg - * [[new|CommandsNew]] - generates files necessary for a chocolatey package from a template - * [[sources|CommandsSources]] - view and configure default sources (alias for source) - * [[source|CommandsSource]] - view and configure default sources - * [[config|CommandsConfig]] - Retrieve and configure config file settings - * [[feature|CommandsFeature]] - view and configure choco features - * [[features|CommandsFeatures]] - view and configure choco features (alias for feature) - * [[setapikey|CommandsSetapikey]] - retrieves or saves an apikey for a particular source (alias for apikey) - * [[apikey|CommandsApikey]] - retrieves or saves an apikey for a particular source - * [[unpackself|CommandsUnpackself]] - have chocolatey set itself up - * [[version|CommandsVersion]] - [DEPRECATED] will be removed in v1 - use [[`choco outdated`|Commandsoutdated]] or `cup <pkg|all> -whatif` instead - * [[update|CommandsUpdate]] - [DEPRECATED] RESERVED for future use (you are looking for upgrade, these are not the droids you are looking for) - * [[support|CommandsSupport]] - provides support information - * [[download|CommandsDownload]] - downloads packages - optionally internalizing all remote resources - * [[synchronize|CommandsSynchronize]] - synchronizes against system installed software - generates missing packages - * [[sync|CommandsSync]] - synchronizes against system installed software - generates missing packages - * [[optimize|CommandsOptimize]] - optimizes installation, reducing space usage - - -Please run chocolatey with `choco command -help` for specific help on - each command. - -## How To Pass Options / Switches - -You can pass options and switches in the following ways: - - * Unless stated otherwise, an option/switch should only be passed one - time. Otherwise you may find weird/non-supported behavior. - * `-`, `/`, or `--` (one character switches should not use `--`) - * **Option Bundling / Bundled Options**: One character switches can be - bundled. e.g. `-d` (debug), `-f` (force), `-v` (verbose), and `-y` - (confirm yes) can be bundled as `-dfvy`. - * **NOTE:** If `debug` or `verbose` are bundled with local options - (not the global ones above), some logging may not show up until after - the local options are parsed. - * **Use Equals**: You can also include or not include an equals sign - `=` between options and values. - * **Quote Values**: When you need to quote an entire argument, such as - when using spaces, please use a combination of double quotes and - apostrophes (`"'value'"`). In cmd.exe you can just use double quotes - (`"value"`) but in powershell.exe you should use backticks - (`` `"value`" ``) or apostrophes (`'value'`). Using the combination - allows for both shells to work without issue, except for when the next - section applies. - * **Pass quotes in arguments**: When you need to pass quoted values to - to something like a native installer, you are in for a world of fun. In - cmd.exe you must pass it like this: `-ia "/yo=""Spaces spaces"""`. In - PowerShell.exe, you must pass it like this: `-ia '/yo=""Spaces spaces""'`. - No other combination will work. In PowerShell.exe if you are on version - v3+, you can try `--%` before `-ia` to just pass the args through as is, - which means it should not require any special workarounds. - * **Periods in PowerShell**: If you need to pass a period as part of a - value or a path, PowerShell doesn't always handle it well. Please - quote those values using "Quote Values" section above. - * Options and switches apply to all items passed, so if you are - installing multiple packages, and you use `--version=1.0.0`, choco - is going to look for and try to install version 1.0.0 of every - package passed. So please split out multiple package calls when - wanting to pass specific options. - -## Scripting / Integration - Best Practices / Style Guide - -When writing scripts, such as PowerShell scripts passing options and -switches, there are some best practices to follow to ensure that you -don't run into issues later. This also applies to integrations that -are calling Chocolatey and parsing output. Chocolatey **uses** -PowerShell, but it is an exe, so it cannot return PowerShell objects. - -Following these practices ensures both readability of your scripts AND -compatibility across different versions and editions of Chocolatey. -Following this guide will ensure your experience is not frustrating -based on choco not receiving things you think you are passing to it. - - * For consistency, always use `choco`, not `choco.exe`. Never use - shortcut commands like `cinst` or `cup`. - * Always have the command as the first argument to `choco. e.g. - [[`choco install`|Commandsinstall]], where [[`install`|Commandsinstall]] is the command. - * If there is a subcommand, ensure that is the second argument. e.g. - `choco source list`, where `source` is the command and [[`list`|Commandslist]] is the - subcommand. - * Typically the subject comes next. If installing packages, the - subject would be the package names, e.g. `choco install pkg1 pkg2`. - * Never use 'nupkg' or point directly to a nupkg file UNLESS using - 'choco push'. Use the source folder instead, e.g. `choco install - <package id> --source="'c:\folder\with\package'"` instead of - `choco install DoNotDoThis.1.0.nupkg` or `choco install DoNotDoThis - --source="'c:\folder\with\package\DoNotDoThis.1.0.nupkg'"`. - * Switches and parameters are called simply options. Options come - after the subject. e.g. `choco install pkg1 --debug --verbose`. - * Never use the force option (`--force`/`-f`) in scripts (or really - otherwise as a default mode of use). Force is an override on - Chocolatey behavior. If you are wondering why Chocolatey isn't doing - something like the documentation says it should, it's likely because - you are using force. Stop. - * Always use full option name. If the short option is `-n`, and the - full option is `--name`, use `--name`. The only acceptable short - option for use in scripts is `-y`. Find option names in help docs - online or through `choco -?` /`choco [Command Name] -?`. - * For scripts that are running automated, always use `-y`. Do note - that even with `-y` passed, some things / state issues detected will - temporarily stop for input - the key here is temporarily. They will - continue without requiring any action after the temporary timeout - (typically 30 seconds). - * Full option names are prepended with two dashes, e.g. `--` or - `--debug --verbose --ignore-proxy`. - * When setting a value to an option, always put an equals (`=`) - between the name and the setting, e.g. `--source="'local'"`. - * When setting a value to an option, always surround the value - properly with double quotes bookending apostrophes, e.g. - `--source="'internal_server'"`. - * If you are building PowerShell scripts, you can most likely just - simply use apostrophes surrounding option values, e.g. - `--source='internal_server'`. - * Prefer upgrade to install in scripts. You can't [[`install`|Commandsinstall]] to a newer - version of something, but you can [[`choco upgrade`|Commandsupgrade]] which will do both - upgrade or install (unless switched off explicitly). - * If you are sharing the script with others, pass `--source` to be - explicit about where the package is coming from. Use full link and - not source name ('https://chocolatey.org/api/v2' versus - 'chocolatey'). - * If parsing output, you might want to use `--limit-output`/`-r` to - get output in a more machine parseable format. **NOTE:** Not all - commands handle return of information in an easily digestible - output. - * Use exit codes to determine status. Chocolatey exits with 0 when - everything worked appropriately and other exits codes like 1 when - things error. There are package specific exit codes that are - recommended to be used and reboot indicating exit codes as well. To - check exit code when using PowerShell, immediately call - `$exitCode = $LASTEXITCODE` to get the value choco exited with. - -Here's an example following bad practices (line breaks added for - readability): - - `choco install pkg1 -y -params '/Option:Value /Option2:value with - spaces' --c4b-option 'Yaass' --option-that-is-new 'dude upgrade'` - -Now here is that example written with best practices (again line - breaks added for readability - there are not line continuations - for choco): - - `choco upgrade pkg1 -y --source="'https://chocolatey.org/api/v2'" - --package-parameters="'/Option:Value /Option2:value with spaces'" - --c4b-option="'Yaass'" --option-that-is-new="'dude upgrade'"` - -Note the differences between the two: - * Which is more self-documenting? - * Which will allow for the newest version of something installed or - upgraded to (which allows for more environmental consistency on - packages and versions)? - * Which may throw an error on a badly passed option? - * Which will throw errors on unknown option values? See explanation - below. - -Chocolatey ignores options it doesn't understand, but it can only - ignore option values if they are tied to the option with an - equals sign ('='). Note those last two options in the examples above? - If you roll off of a commercial edition or someone with older version - attempts to run the badly crafted script `--c4b-option 'Yaass' - --option-that-is-new 'dude upgrade'`, they are likely to see errors on - 'Yaass' and 'dude upgrade' because they are not explicitly tied to the - option they are written after. Now compare that to the other script. - Choco will ignore `--c4b-option="'Yaass'"` and - `--option-that-is-new="'dude upgrade'"` as a whole when it doesn't - register the options. This means that your script doesn't error. - -Following these scripting best practices will ensure your scripts work - everywhere they are used and with newer versions of Chocolatey. - - -## See Help Menu In Action - -![choco help in action](https://raw.githubusercontent.com/wiki/chocolatey/choco/images/gifs/choco_help.gif) - -## Default Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - -~~~ - - - -***NOTE:*** This documentation has been automatically generated from `choco -h`. - diff --git a/docs/generated/CommandsSearch.md b/docs/generated/CommandsSearch.md deleted file mode 100644 index 2b3f1120a8..0000000000 --- a/docs/generated/CommandsSearch.md +++ /dev/null @@ -1,278 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateySearchCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# List/Search Command (choco search) - -Chocolatey will perform a search for a package local or remote. Some - may prefer to use [[`clist`|Commandslist]] as a shortcut for [[`choco list`|Commandslist]]. - -**NOTE:** 100% compatible with older Chocolatey client (0.9.8.x and below) - with options and switches. In most cases you can still pass options - and switches with one dash (`-`). For more details, see - [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`). - -## Usage - - choco search <filter> [<options/switches>] - choco list <filter> [<options/switches>] - clist <filter> [<options/switches>] - -## Examples - - choco list --local-only - choco list -li - choco list -lai - choco list --page=0 --page-size=25 - choco search git - choco search git --source="'https://somewhere/out/there'" - choco search bob -s "'https://somewhere/protected'" -u user -p pass - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -Enhanced: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - - 2: no results (enhanced) - -**NOTE:** Starting in v0.10.12, if you have the feature 'useEnhancedExitCodes' - turned on, then choco will provide enhanced exit codes that allow - better integration and scripting. - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## See It In Action - -![choco search](https://raw.githubusercontent.com/wiki/chocolatey/choco/images/gifs/choco_search.gif) - - -## Alternative Sources - -Available in 0.9.10+. - -### WebPI -This specifies the source is Web PI (Web Platform Installer) and that - we are searching for a WebPI product, such as IISExpress. If you do - not have the Web PI command line installed, it will install that first - and then perform the search requested. - e.g. `choco list --source webpi` - -### Windows Features -This specifies that the source is a Windows Feature and we should - install via the Deployment Image Servicing and Management tool (DISM) - on the local machine. - e.g. `choco list --source windowsfeatures` - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -s, --source=VALUE - Source - Source location for install. Can use special 'webpi' or - 'windowsfeatures' sources. Defaults to sources. - - -l, --lo, --localonly, --local-only - LocalOnly - Only search against local machine items. - - --idonly, --id-only - Id Only - Only return Package Ids in the list results. Available in 0.1- - 0.6+. - - --pre, --prerelease - Prerelease - Include Prereleases? Defaults to false. - - -i, --includeprograms, --include-programs - IncludePrograms - Used in conjunction with LocalOnly, filters out apps - chocolatey has listed as packages and includes those in the list. - Defaults to false. - - -a, --all, --allversions, --all-versions - AllVersions - include results from all versions. - - --version=VALUE - Version - Specific version of a package to return. - - -u, --user=VALUE - User - used with authenticated feeds. Defaults to empty. - - -p, --password=VALUE - Password - the user's password to the source. Defaults to empty. - - --cert=VALUE - Client certificate - PFX pathname for an x509 authenticated feeds. - Defaults to empty. Available in 0.9.10+. - - --cp, --certpassword=VALUE - Certificate Password - the client certificate's password to the source. - Defaults to empty. Available in 0.9.10+. - - --page=VALUE - Page - the 'page' of results to return. Defaults to return all results. - Available in 0.9.10+. - - --page-size=VALUE - Page Size - the amount of package results to return per page. Defaults - to 25. Available in 0.9.10+. - - -e, --exact - Exact - Only return packages with this exact name. Available in 0.9.10+. - - --by-id-only - ByIdOnly - Only return packages where the id contains the search filter. - Available in 0.9.10+. - - --by-tag-only, --by-tags-only - ByTagOnly - Only return packages where the search filter matches on the - tags. Available in 0.10.6+. - - --id-starts-with - IdStartsWith - Only return packages where the id starts with the search - filter. Available in 0.9.10+. - - --order-by-popularity - OrderByPopularity - Sort by package results by popularity. Available in - 0.9.10+. - - --approved-only - ApprovedOnly - Only return approved packages - this option will filter - out results not from the [community repository](https://chocolatey.org/packages). Available in 0.9.10+. - - --download-cache, --download-cache-only - DownloadCacheAvailable - Only return packages that have a download cache - available - this option will filter out results not from the community - repository. Available in 0.9.10+. - - --not-broken - NotBroken - Only return packages that are not failing testing - this - option only filters out failing results from the [community feed](https://chocolatey.org/packages). It will - not filter against other sources. Available in 0.9.10+. - - --detail, --detailed - Detailed - Alias for verbose. Available in 0.9.10+. - - --audit, --showaudit, --show-audit, --show-audit-info - Show Audit Information - Display auditing information for a package. - Available in business editions 1.12.0+. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco search -h`. - diff --git a/docs/generated/CommandsSetapiKey.md b/docs/generated/CommandsSetapiKey.md deleted file mode 100644 index 6fa0ff52f0..0000000000 --- a/docs/generated/CommandsSetapiKey.md +++ /dev/null @@ -1,190 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateySetApikeyCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# ApiKey Command (choco setapikey) - -This lists api keys that are set or sets an api key for a particular - source so it doesn't need to be specified every time. - -Anything that doesn't contain source and key will list api keys. - -## Usage - - choco apikey [<options/switches>] - choco setapikey [<options/switches>] - -## Examples - - choco apikey - choco apikey -s https://somewhere/out/there - choco apikey -s="https://somewhere/out/there/" -k="value" - choco apikey -s "https://push.chocolatey.org/" -k="123-123123-123" - choco apikey -s "http://internal_nexus" -k="user:password" - -For source location, this can be a folder/file share or an -http location. When it comes to urls, they can be different from the packages -url (where packages are searched and installed from). As an example, for -Chocolatey's community package package repository, the package url is -https://chocolatey.org/api/v2, but the push url is https://push.chocolatey.org -(and the deprecated https://chocolatey.org/ as a push url). Check the -documentation for your choice of repository to learn what the push url is. - -For the key, this can be an apikey that is provided by your source repository. -With some sources, like Nexus, this can be a NuGet API key or it could be a -user name and password specified as 'user:password' for the API key. Please see -your repository's documentation (for Nexus, please see -https://bit.ly/nexus2apikey). - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Connecting to Chocolatey.org (Community Package Repository) - -In order to save your API key for https://push.chocolatey.org/, - log in (or register, confirm and then log in) to - https://push.chocolatey.org/, go to https://push.chocolatey.org/account, - copy the API Key, and then use it in the following command: - - choco apikey -k <your key here> -s https://push.chocolatey.org/ - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -s, --source=VALUE - Source [REQUIRED] - The source location for the key - - -k, --key, --apikey, --api-key=VALUE - ApiKey - The API key for the source. This is the authentication that - identifies you and allows you to push to a source. With some sources - this is either a key or it could be a user name and password specified - as 'user:password'. - - --rem, --remove - Removes an API key from Chocolatey - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco setapikey -h`. - diff --git a/docs/generated/CommandsSource.md b/docs/generated/CommandsSource.md deleted file mode 100644 index c81fa15ac4..0000000000 --- a/docs/generated/CommandsSource.md +++ /dev/null @@ -1,212 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateySourceCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Source Command (choco source) - -Chocolatey will allow you to interact with sources. - -**NOTE:** Mostly compatible with older chocolatey client (0.9.8.x and - below) with options and switches. When enabling, disabling or removing - a source, use `-name` in front of the option now. In most cases you - can still pass options and switches with one dash (`-`). For more - details, see [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`). - -## Usage - - choco source [list]|add|remove|disable|enable [<options/switches>] - choco sources [list]|add|remove|disable|enable [<options/switches>] - -## Examples - - choco source - choco source list - choco source add -n=bob -s="https://somewhere/out/there/api/v2/" - choco source add -n=bob -s "'https://somewhere/out/there/api/v2/'" -cert=\Users\bob\bob.pfx - choco source add -n=bob -s "'https://somewhere/out/there/api/v2/'" -u=bob -p=12345 - choco source disable -n=bob - choco source enable -n=bob - choco source remove -n=bob - -When it comes to the source location, this can be a folder/file share or an http -location. If it is a url, it will be a location you can go to in a browser and -it returns OData with something that says Packages in the browser, similar to -what you see when you go to https://chocolatey.org/api/v2/. - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -n, --name=VALUE - Name - the name of the source. Required with actions other than list. - Defaults to empty. - - -s, --source=VALUE - Source - The source. This can be a folder/file share or an http locatio- - n. If it is a url, it will be a location you can go to in a browser and - it returns OData with something that says Packages in the browser, - similar to what you see when you go to https://chocolatey.org/api/v2/. - Required with add action. Defaults to empty. - - -u, --user=VALUE - User - used with authenticated feeds. Defaults to empty. - - -p, --password=VALUE - Password - the user's password to the source. Encrypted in chocolate- - y.config file. - - --cert=VALUE - Client certificate - PFX pathname for an x509 authenticated feeds. - Defaults to empty. Available in 0.9.10+. - - --cp, --certpassword=VALUE - Certificate Password - the client certificate's password to the source. - Defaults to empty. Available in 0.9.10+. - - --priority=VALUE - Priority - The priority order of this source as compared to other - sources, lower is better. Defaults to 0 (no priority). All priorities - above 0 will be evaluated first, then zero-based values will be - evaluated in config file order. Available in 0.9.9.9+. - - --bypassproxy, --bypass-proxy - Bypass Proxy - Should this source explicitly bypass any explicitly or - system configured proxies? Defaults to false. Available in 0.10.4+. - - --allowselfservice, --allow-self-service - Allow Self-Service - Should this source be allowed to be used with self- - service? Requires business edition (v1.10.0+) with feature - 'useBackgroundServiceWithSelfServiceSourcesOnly' turned on. Defaults to - false. Available in 0.10.4+. - - --adminonly, --admin-only - Visible to Administrators Only - Should this source be visible to non- - administrators? Requires business edition (v1.12.2+). Defaults to false. - Available in 0.10.8+. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco source -h`. - diff --git a/docs/generated/CommandsSources.md b/docs/generated/CommandsSources.md deleted file mode 100644 index 5fc3630fd2..0000000000 --- a/docs/generated/CommandsSources.md +++ /dev/null @@ -1,212 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateySourcesCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Source Command (choco sources) - -Chocolatey will allow you to interact with sources. - -**NOTE:** Mostly compatible with older chocolatey client (0.9.8.x and - below) with options and switches. When enabling, disabling or removing - a source, use `-name` in front of the option now. In most cases you - can still pass options and switches with one dash (`-`). For more - details, see [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`). - -## Usage - - choco source [list]|add|remove|disable|enable [<options/switches>] - choco sources [list]|add|remove|disable|enable [<options/switches>] - -## Examples - - choco source - choco source list - choco source add -n=bob -s="https://somewhere/out/there/api/v2/" - choco source add -n=bob -s "'https://somewhere/out/there/api/v2/'" -cert=\Users\bob\bob.pfx - choco source add -n=bob -s "'https://somewhere/out/there/api/v2/'" -u=bob -p=12345 - choco source disable -n=bob - choco source enable -n=bob - choco source remove -n=bob - -When it comes to the source location, this can be a folder/file share or an http -location. If it is a url, it will be a location you can go to in a browser and -it returns OData with something that says Packages in the browser, similar to -what you see when you go to https://chocolatey.org/api/v2/. - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at - https://github.com/chocolatey/choco/issues/new/choose. - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -n, --name=VALUE - Name - the name of the source. Required with actions other than list. - Defaults to empty. - - -s, --source=VALUE - Source - The source. This can be a folder/file share or an http locatio- - n. If it is a url, it will be a location you can go to in a browser and - it returns OData with something that says Packages in the browser, - similar to what you see when you go to https://chocolatey.org/api/v2/. - Required with add action. Defaults to empty. - - -u, --user=VALUE - User - used with authenticated feeds. Defaults to empty. - - -p, --password=VALUE - Password - the user's password to the source. Encrypted in chocolate- - y.config file. - - --cert=VALUE - Client certificate - PFX pathname for an x509 authenticated feeds. - Defaults to empty. Available in 0.9.10+. - - --cp, --certpassword=VALUE - Certificate Password - the client certificate's password to the source. - Defaults to empty. Available in 0.9.10+. - - --priority=VALUE - Priority - The priority order of this source as compared to other - sources, lower is better. Defaults to 0 (no priority). All priorities - above 0 will be evaluated first, then zero-based values will be - evaluated in config file order. Available in 0.9.9.9+. - - --bypassproxy, --bypass-proxy - Bypass Proxy - Should this source explicitly bypass any explicitly or - system configured proxies? Defaults to false. Available in 0.10.4+. - - --allowselfservice, --allow-self-service - Allow Self-Service - Should this source be allowed to be used with self- - service? Requires business edition (v1.10.0+) with feature - 'useBackgroundServiceWithSelfServiceSourcesOnly' turned on. Defaults to - false. Available in 0.10.4+. - - --adminonly, --admin-only - Visible to Administrators Only - Should this source be visible to non- - administrators? Requires business edition (v1.12.2+). Defaults to false. - Available in 0.10.8+. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco sources -h`. - diff --git a/docs/generated/CommandsSupport.md b/docs/generated/CommandsSupport.md deleted file mode 100644 index 9fef4c7f02..0000000000 --- a/docs/generated/CommandsSupport.md +++ /dev/null @@ -1,113 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateySupportCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Support Command (choco support) - -As a licensed customer, you can reach out to - our email for support. If you have phone support, you - may reach out during the hours that are listed in your support - contract. See https://chocolatey.org/support for details. - - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco support -h`. - diff --git a/docs/generated/CommandsSync.md b/docs/generated/CommandsSync.md deleted file mode 100644 index cd727dd8b7..0000000000 --- a/docs/generated/CommandsSync.md +++ /dev/null @@ -1,160 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateySyncCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Synchronize Command (choco sync) - -Business editions of Chocolatey starting at licensed version 1.9.0. - -Synchronizes against the system installed software that are not - installed as packages on Chocolatey. Searches through the system to - see software that has been installed and generates packages from that - software, baselines the packages against Chocolatey and makes the - packages available to upload to source. - -See https://chocolatey.org/docs/features-synchronize - - -## Usage - - choco sync [<options/switches>] - -## Examples - - choco sync - choco sync --id=putty - choco sync --id=putty --package-id=putty - -## See It In Action - -Coming soon - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - downloading multiple packages, and you use `--version=1.0.0`, it is - going to look for and try to download version 1.0.0 of every package - - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - --id=VALUE - Id - The Display Name from Programs and Features - - --packageid, --package-id=VALUE - PackageId - When used with Id, this will be the custom name for the - package. Business editions only (version 1.12.2+) - - --out, --outdir, --outputdirectory, --output-directory=VALUE - OutputDirectory - Specifies the directory for the generated Chocolatey - package file(s). If not specified, uses a subdirectory of the current - directory. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco sync -h`. - diff --git a/docs/generated/CommandsSynchronize.md b/docs/generated/CommandsSynchronize.md deleted file mode 100644 index b7b5146212..0000000000 --- a/docs/generated/CommandsSynchronize.md +++ /dev/null @@ -1,160 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateySynchronizeCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Synchronize Command (choco synchronize) - -Business editions of Chocolatey starting at licensed version 1.9.0. - -Synchronizes against the system installed software that are not - installed as packages on Chocolatey. Searches through the system to - see software that has been installed and generates packages from that - software, baselines the packages against Chocolatey and makes the - packages available to upload to source. - -See https://chocolatey.org/docs/features-synchronize - - -## Usage - - choco sync [<options/switches>] - -## Examples - - choco sync - choco sync --id=putty - choco sync --id=putty --package-id=putty - -## See It In Action - -Coming soon - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - downloading multiple packages, and you use `--version=1.0.0`, it is - going to look for and try to download version 1.0.0 of every package - - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - --id=VALUE - Id - The Display Name from Programs and Features - - --packageid, --package-id=VALUE - PackageId - When used with Id, this will be the custom name for the - package. Business editions only (version 1.12.2+) - - --out, --outdir, --outputdirectory, --output-directory=VALUE - OutputDirectory - Specifies the directory for the generated Chocolatey - package file(s). If not specified, uses a subdirectory of the current - directory. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco synchronize -h`. - diff --git a/docs/generated/CommandsUninstall.md b/docs/generated/CommandsUninstall.md deleted file mode 100644 index 60b1764208..0000000000 --- a/docs/generated/CommandsUninstall.md +++ /dev/null @@ -1,326 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyUninstallCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Uninstall Command (choco uninstall) - -Uninstalls a package or a list of packages. Some may prefer to use - `cuninst` as a shortcut for [[`choco uninstall`|Commandsuninstall]]. - -**NOTE:** 100% compatible with older chocolatey client (0.9.8.32 and below) - with options and switches. Add `-y` for previous behavior with no - prompt. In most cases you can still pass options and switches with one - dash (`-`). For more details, see [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`). - -Choco 0.9.9+ automatically tracks registry changes for "Programs and - Features" of the underlying software's native installers when - installing packages. The "Automatic Uninstaller" (auto uninstaller) - service is a feature that can use that information to automatically - determine how to uninstall these natively installed applications. This - means that a package may not need an explicit chocolateyUninstall.ps1 - to reverse the installation done in the install script. - -Chocolatey tracks packages, which are the files in - `$env:ChocolateyInstall\lib\packagename`. These packages may or may not - contain the software (applications/tools) that each package represents. - The software may actually be installed in Program Files (most native - installers will install the software there) or elsewhere on the - machine. - -With auto uninstaller turned off, a chocolateyUninstall.ps1 is required - to perform uninstall from the system. In the absence of - chocolateyUninstall.ps1, choco uninstall only removes the package from - Chocolatey but does not remove the software from your system (unless - in the package directory). - -**NOTE:** A package with a failing uninstall can be removed with the -`-n --skipautouninstaller` flags. This will remove the package from -chocolatey without attempting to uninstall the program. - -**NOTE:** Starting in 0.9.10+, the Automatic Uninstaller (AutoUninstaller) - is turned on by default. To turn it off, run the following command: - - choco feature disable -n autoUninstaller - -**NOTE:** [Chocolatey Pro](https://chocolatey.org/compare) / Business automatically synchronizes with - Programs and Features, ensuring manually removed apps are - automatically removed from Chocolatey's repository. - -**NOTE:** Synchronizer and AutoUninstaller enhancements in licensed - versions of Chocolatey ensure that Autouninstaller is up to 95% - effective at removing software without an uninstall script. This is - because synchronizer ensures the registry snapshot stays up to date - and licensed enhancements have the ability to inspect more locations - to determine how to automatically uninstall software. - -## Usage - - choco uninstall <pkg|all> [pkg2 pkgN] [options/switches] - cuninst <pkg|all> [pkg2 pkgN] [options/switches] - -**NOTE:** `all` is a special package keyword that will allow you to - uninstall all packages. - - -## See It In Action - -![choco uninstall](https://raw.githubusercontent.com/wiki/chocolatey/choco/images/gifs/choco_uninstall.gif) - - -## Examples - - choco uninstall git - choco uninstall notepadplusplus googlechrome atom 7zip - choco uninstall notepadplusplus googlechrome atom 7zip -dv - choco uninstall ruby --version 1.8.7.37402 - choco uninstall nodejs.install --all-versions - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -Package Exit Codes: - - 1605: software is not installed - - 1614: product is uninstalled - - 1641: success, reboot initiated - - 3010: success, reboot required - - other (not listed): likely an error has occurred - -In addition to normal exit codes, packages are allowed to exit - with their own codes when the feature 'usePackageExitCodes' is - turned on. Available in v0.9.10+. - -Reboot Exit Codes: - - 350: pending reboot detected, no action has occurred - - 1604: install suspended, incomplete - -In addition to the above exit codes, you may also see reboot exit codes - when the feature 'exitOnRebootDetected' is turned on. It typically requires - the feature 'usePackageExitCodes' to also be turned on to work properly. - Available in v0.10.12+. - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -s, --source=VALUE - Source - The source to find the package(s) to install. Special sources - include: ruby, webpi, cygwin, windowsfeatures, and python. Defaults to - default feeds. - - --version=VALUE - Version - A specific version to uninstall. Defaults to unspecified. - - -a, --allversions, --all-versions - AllVersions - Uninstall all versions? Defaults to false. - - --ua, --uninstallargs, --uninstallarguments, --uninstall-arguments=VALUE - UninstallArguments - Uninstall Arguments to pass to the native installer - in the package. Defaults to unspecified. - - -o, --override, --overrideargs, --overridearguments, --override-arguments - OverrideArguments - Should uninstall arguments be used exclusively - without appending to current package passed arguments? Defaults to false. - - --notsilent, --not-silent - NotSilent - Do not uninstall this silently. Defaults to false. - - --params, --parameters, --pkgparameters, --packageparameters, --package-parameters=VALUE - PackageParameters - Parameters to pass to the package. Defaults to - unspecified. - - --argsglobal, --args-global, --installargsglobal, --install-args-global, --applyargstodependencies, --apply-args-to-dependencies, --apply-install-arguments-to-dependencies - Apply Install Arguments To Dependencies - Should install arguments be - applied to dependent packages? Defaults to false. - - --paramsglobal, --params-global, --packageparametersglobal, --package-parameters-global, --applyparamstodependencies, --apply-params-to-dependencies, --apply-package-parameters-to-dependencies - Apply Package Parameters To Dependencies - Should package parameters be - applied to dependent packages? Defaults to false. - - -m, --sxs, --sidebyside, --side-by-side, --allowmultiple, --allow-multiple, --allowmultipleversions, --allow-multiple-versions - AllowMultipleVersions - Should multiple versions of a package be - installed? Defaults to false. - - -x, --forcedependencies, --force-dependencies, --removedependencies, --remove-dependencies - RemoveDependencies - Uninstall dependencies when uninstalling package(s- - ). Defaults to false. - - -n, --skippowershell, --skip-powershell, --skipscripts, --skip-scripts, --skip-automation-scripts - Skip Powershell - Do not run chocolateyUninstall.ps1. Defaults to false. - - --ignorepackagecodes, --ignorepackageexitcodes, --ignore-package-codes, --ignore-package-exit-codes - IgnorePackageExitCodes - Exit with a 0 for success and 1 for non-succes- - s, no matter what package scripts provide for exit codes. Overrides the - default feature 'usePackageExitCodes' set to 'True'. Available in 0.- - 9.10+. - - --usepackagecodes, --usepackageexitcodes, --use-package-codes, --use-package-exit-codes - UsePackageExitCodes - Package scripts can provide exit codes. Use those - for choco's exit code when non-zero (this value can come from a - dependency package). Chocolatey defines valid exit codes as 0, 1605, - 1614, 1641, 3010. Overrides the default feature 'usePackageExitCodes' - set to 'True'. Available in 0.9.10+. - - --autouninstaller, --use-autouninstaller - UseAutoUninstaller - Use auto uninstaller service when uninstalling. - Overrides the default feature 'autoUninstaller' set to 'True'. Available - in 0.9.10+. - - --skipautouninstaller, --skip-autouninstaller - SkipAutoUninstaller - Skip auto uninstaller service when uninstalling. - Overrides the default feature 'autoUninstaller' set to 'True'. Available - in 0.9.10+. - - --failonautouninstaller, --fail-on-autouninstaller - FailOnAutoUninstaller - Fail the package uninstall if the auto - uninstaller reports and error. Overrides the default feature - 'failOnAutoUninstaller' set to 'False'. Available in 0.9.10+. - - --ignoreautouninstallerfailure, --ignore-autouninstaller-failure - Ignore Auto Uninstaller Failure - Do not fail the package if auto - uninstaller reports an error. Overrides the default feature - 'failOnAutoUninstaller' set to 'False'. Available in 0.9.10+. - - --stoponfirstfailure, --stop-on-first-failure, --stop-on-first-package-failure - Stop On First Package Failure - stop running install, upgrade or - uninstall on first package failure instead of continuing with others. - Overrides the default feature 'stopOnFirstPackageFailure' set to 'False- - '. Available in 0.10.4+. - - --exitwhenrebootdetected, --exit-when-reboot-detected - Exit When Reboot Detected - Stop running install, upgrade, or uninstall - when a reboot request is detected. Requires 'usePackageExitCodes' - feature to be turned on. Will exit with either 350 or 1604. Overrides - the default feature 'exitOnRebootDetected' set to 'False'. Available in - 0.10.12+. - - --ignoredetectedreboot, --ignore-detected-reboot - Ignore Detected Reboot - Ignore any detected reboots if found. Overrides - the default feature 'exitOnRebootDetected' set to 'False'. Available in - 0.10.12+. - - --fromprograms, --from-programs, --fromprogramsandfeatures, --from-programs-and-features - From Programs and Features - Uninstalls a program from programs and - features. Name used for id must be a match or a wildcard (*) to Display - Name in Programs and Features. Available in [licensed editions](https://chocolatey.org/compare) only - (licensed version 1.8.0+) and requires v0.10.4+. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco uninstall -h`. - diff --git a/docs/generated/CommandsUnpackself.md b/docs/generated/CommandsUnpackself.md deleted file mode 100644 index 20b2d6cef6..0000000000 --- a/docs/generated/CommandsUnpackself.md +++ /dev/null @@ -1,126 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyUnpackSelfCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# UnpackSelf Command (choco unpackself) - -This will unpack files needed by choco. It will overwrite existing - files only if --force is specified. - -**NOTE:** This command should only be used when installing Chocolatey, not - during normal operation. - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco unpackself -h`. - diff --git a/docs/generated/CommandsUpdate.md b/docs/generated/CommandsUpdate.md deleted file mode 100644 index db11443d18..0000000000 --- a/docs/generated/CommandsUpdate.md +++ /dev/null @@ -1,134 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyUpdateCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# [DEPRECATED] Update Command (choco update) - -**NOTE:** Update has been deprecated and will be removed/replaced in version - 1.0.0 with something that performs the functions of updating package - indexes. Please use [[`choco upgrade`|Commandsupgrade]] instead. - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -s, --source=VALUE - Source - The source to find the package(s) to install. Special sources - include: ruby, webpi, cygwin, windowsfeatures, and python. Defaults to - default feeds. - - --version=VALUE - Version - A specific version to install. Defaults to unspecified. - - --pre, --prerelease - Prerelease - Include Prereleases? Defaults to false. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco update -h`. - diff --git a/docs/generated/CommandsUpgrade.md b/docs/generated/CommandsUpgrade.md deleted file mode 100644 index ef5fd2e66c..0000000000 --- a/docs/generated/CommandsUpgrade.md +++ /dev/null @@ -1,463 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyUpgradeCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# Upgrade Command (choco upgrade) - -Upgrades a package or a list of packages. Some may prefer to use `cup` - as a shortcut for [[`choco upgrade`|Commandsupgrade]]. If you do not have a package - installed, upgrade will install it. - -**NOTE:** 100% compatible with older Chocolatey client (0.9.8.x and below) - with options and switches. Add `-y` for previous behavior with no - prompt. In most cases you can still pass options and switches with one - dash (`-`). For more details, see [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`). - -## Usage - - choco upgrade <pkg|all> [<pkg2> <pkgN>] [<options/switches>] - cup <pkg|all> [<pkg2> <pkgN>] [<options/switches>] - -**NOTE:** `all` is a special package keyword that will allow you to upgrade - all currently installed packages. - -Skip upgrading certain packages with [[`choco pin`|Commandspin]] or with the option - `--except`. - -**NOTE:** [Chocolatey Pro](https://chocolatey.org/compare) / Business automatically synchronizes with - Programs and Features, ensuring automatically updating apps' versions - (like Chrome) are up to date in Chocolatey's repository. - -## Examples - - choco upgrade chocolatey - choco upgrade notepadplusplus googlechrome atom 7zip - choco upgrade notepadplusplus googlechrome atom 7zip -dvfy - choco upgrade git -y --params="'/GitAndUnixToolsOnPath /NoAutoCrlf'" - choco upgrade git -y --params="'/GitAndUnixToolsOnPath /NoAutoCrlf'" --install-args="'/DIR=C:\git'" - # Params are package parameters, passed to the package - # Install args are installer arguments, appended to the silentArgs - # in the package for the installer itself - choco upgrade nodejs.install --version 0.10.35 - choco upgrade git -s "'https://somewhere/out/there'" - choco upgrade git -s "'https://somewhere/protected'" -u user -p pass - choco upgrade all - choco upgrade all --except="'skype,conemu'" - -**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to - write proper scripts and integrations. - - -## Exit Codes - -Exit codes that normally result from running this command. - -Normal: - - 0: operation was successful, no issues detected - - -1 or 1: an error has occurred - -Package Exit Codes: - - 1641: success, reboot initiated - - 3010: success, reboot required - - other (not listed): likely an error has occurred - -In addition to normal exit codes, packages are allowed to exit - with their own codes when the feature 'usePackageExitCodes' is - turned on. Uninstall command has additional valid exit codes. - Available in v0.9.10+. - -Reboot Exit Codes: - - 350: pending reboot detected, no action has occurred - - 1604: install suspended, incomplete - -In addition to the above exit codes, you may also see reboot exit codes - when the feature 'exitOnRebootDetected' is turned on. It typically requires - the feature 'usePackageExitCodes' to also be turned on to work properly. - Available in v0.10.12+. - -## See It In Action - -![choco upgrade](https://raw.githubusercontent.com/wiki/chocolatey/choco/images/gifs/choco_upgrade.gif) - - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -s, --source=VALUE - Source - The source to find the package(s) to install. Special sources - include: ruby, webpi, cygwin, windowsfeatures, and python. To specify - more than one source, pass it with a semi-colon separating the values (- - e.g. "'source1;source2'"). Defaults to default feeds. - - --version=VALUE - Version - A specific version to install. Defaults to unspecified. - - --pre, --prerelease - Prerelease - Include Prereleases? Defaults to false. - - --x86, --forcex86 - ForceX86 - Force x86 (32bit) installation on 64 bit systems. Defaults to - false. - - --ia, --installargs, --installarguments, --install-arguments=VALUE - InstallArguments - Install Arguments to pass to the native installer in - the package. Defaults to unspecified. - - -o, --override, --overrideargs, --overridearguments, --override-arguments - OverrideArguments - Should install arguments be used exclusively without - appending to current package passed arguments? Defaults to false. - - --notsilent, --not-silent - NotSilent - Do not install this silently. Defaults to false. - - --params, --parameters, --pkgparameters, --packageparameters, --package-parameters=VALUE - PackageParameters - Parameters to pass to the package. Defaults to - unspecified. - - --argsglobal, --args-global, --installargsglobal, --install-args-global, --applyargstodependencies, --apply-args-to-dependencies, --apply-install-arguments-to-dependencies - Apply Install Arguments To Dependencies - Should install arguments be - applied to dependent packages? Defaults to false. - - --paramsglobal, --params-global, --packageparametersglobal, --package-parameters-global, --applyparamstodependencies, --apply-params-to-dependencies, --apply-package-parameters-to-dependencies - Apply Package Parameters To Dependencies - Should package parameters be - applied to dependent packages? Defaults to false. - - --allowdowngrade, --allow-downgrade - AllowDowngrade - Should an attempt at downgrading be allowed? Defaults - to false. - - -m, --sxs, --sidebyside, --side-by-side, --allowmultiple, --allow-multiple, --allowmultipleversions, --allow-multiple-versions - AllowMultipleVersions - Should multiple versions of a package be - installed? Defaults to false. - - -i, --ignoredependencies, --ignore-dependencies - IgnoreDependencies - Ignore dependencies when upgrading package(s). - Defaults to false. - - -n, --skippowershell, --skip-powershell, --skipscripts, --skip-scripts, --skip-automation-scripts - Skip Powershell - Do not run chocolateyInstall.ps1. Defaults to false. - - --failonunfound, --fail-on-unfound - Fail On Unfound Packages - If a package is not found in sources - specified, fail instead of warn. - - --ignore-unfound - Ignore Unfound Packages - Ignore packages that are not found on the - sources used (or the defaults). Overrides the default feature - 'ignoreUnfoundPackagesOnUpgradeOutdated' set to 'False'. Available in - - 0.10.9+. - - --failonnotinstalled, --fail-on-not-installed - Fail On Non-installed Packages - If a package is not already installed, - fail instead of installing. - - -u, --user=VALUE - User - used with authenticated feeds. Defaults to empty. - - -p, --password=VALUE - Password - the user's password to the source. Defaults to empty. - - --cert=VALUE - Client certificate - PFX pathname for an x509 authenticated feeds. - Defaults to empty. Available in 0.9.10+. - - --cp, --certpassword=VALUE - Certificate Password - the client certificate's password to the source. - Defaults to empty. Available in 0.9.10+. - - --ignorechecksum, --ignore-checksum, --ignorechecksums, --ignore-checksums - IgnoreChecksums - Ignore checksums provided by the package. Overrides - the default feature 'checksumFiles' set to 'True'. Available in 0.9.9.9+. - - --allowemptychecksum, --allowemptychecksums, --allow-empty-checksums - Allow Empty Checksums - Allow packages to have empty/missing checksums - for downloaded resources from non-secure locations (HTTP, FTP). Use this - switch is not recommended if using sources that download resources from - the internet. Overrides the default feature 'allowEmptyChecksums' set to - 'False'. Available in 0.10.0+. - - --allowemptychecksumsecure, --allowemptychecksumssecure, --allow-empty-checksums-secure - Allow Empty Checksums Secure - Allow packages to have empty checksums - for downloaded resources from secure locations (HTTPS). Overrides the - default feature 'allowEmptyChecksumsSecure' set to 'True'. Available in - 0.10.0+. - - --requirechecksum, --requirechecksums, --require-checksums - Require Checksums - Requires packages to have checksums for downloaded - resources (both non-secure and secure). Overrides the default feature - 'allowEmptyChecksums' set to 'False' and 'allowEmptyChecksumsSecure' set - to 'True'. Available in 0.10.0+. - - --checksum, --downloadchecksum, --download-checksum=VALUE - Download Checksum - a user provided checksum for downloaded resources - for the package. Overrides the package checksum (if it has one). - Defaults to empty. Available in 0.10.0+. - - --checksum64, --checksumx64, --downloadchecksumx64, --download-checksum-x64=VALUE - Download Checksum 64bit - a user provided checksum for 64bit downloaded - resources for the package. Overrides the package 64-bit checksum (if it - has one). Defaults to same as Download Checksum. Available in 0.10.0+. - - --checksumtype, --checksum-type, --downloadchecksumtype, --download-checksum-type=VALUE - Download Checksum Type - a user provided checksum type. Overrides the - package checksum type (if it has one). Used in conjunction with Download - Checksum. Available values are 'md5', 'sha1', 'sha256' or 'sha512'. - Defaults to 'md5'. Available in 0.10.0+. - - --checksumtype64, --checksumtypex64, --checksum-type-x64, --downloadchecksumtypex64, --download-checksum-type-x64=VALUE - Download Checksum Type 64bit - a user provided checksum for 64bit - downloaded resources for the package. Overrides the package 64-bit - checksum (if it has one). Used in conjunction with Download Checksum - 64bit. Available values are 'md5', 'sha1', 'sha256' or 'sha512'. - Defaults to same as Download Checksum Type. Available in 0.10.0+. - - --ignorepackagecodes, --ignorepackageexitcodes, --ignore-package-codes, --ignore-package-exit-codes - IgnorePackageExitCodes - Exit with a 0 for success and 1 for non-succes- - s, no matter what package scripts provide for exit codes. Overrides the - default feature 'usePackageExitCodes' set to 'True'. Available in 0.- - 9.10+. - - --usepackagecodes, --usepackageexitcodes, --use-package-codes, --use-package-exit-codes - UsePackageExitCodes - Package scripts can provide exit codes. Use those - for choco's exit code when non-zero (this value can come from a - dependency package). Chocolatey defines valid exit codes as 0, 1605, - 1614, 1641, 3010. Overrides the default feature 'usePackageExitCodes' - set to 'True'. Available in 0.9.10+. - - --except=VALUE - Except - a comma-separated list of package names that should not be - upgraded when upgrading 'all'. Defaults to empty. Available in 0.9.10+. - - --stoponfirstfailure, --stop-on-first-failure, --stop-on-first-package-failure - Stop On First Package Failure - stop running install, upgrade or - uninstall on first package failure instead of continuing with others. - Overrides the default feature 'stopOnFirstPackageFailure' set to 'False- - '. Available in 0.10.4+. - - --skip-if-not-installed, --only-upgrade-installed, --skip-when-not-installed - Skip Packages Not Installed - if a package is not installed, do not - install it during the upgrade process. Overrides the default feature - 'skipPackageUpgradesWhenNotInstalled' set to 'False'. Available in 0.1- - 0.12+. - - --install-if-not-installed - Install Missing Packages When Not Installed - if a package is not - installed, install it as part of running upgrade (typically default - behavior). Overrides the default feature - 'skipPackageUpgradesWhenNotInstalled' set to 'False'. Available in 0.1- - 0.12+. - - --exclude-pre, --exclude-prerelease, --exclude-prereleases - Exclude Prerelease - Should prerelease be ignored for upgrades? Will be - ignored if you pass `--pre`. Available in 0.10.4+. - - --userememberedargs, --userememberedarguments, --userememberedoptions, --use-remembered-args, --use-remembered-arguments, --use-remembered-options - Use Remembered Options for Upgrade - use the arguments and options used - during install for upgrade. Does not override arguments being passed at - runtime. Overrides the default feature - 'useRememberedArgumentsForUpgrades' set to 'False'. Available in 0.10.4+. - - --ignorerememberedargs, --ignorerememberedarguments, --ignorerememberedoptions, --ignore-remembered-args, --ignore-remembered-arguments, --ignore-remembered-options - Ignore Remembered Options for Upgrade - ignore the arguments and options - used during install for upgrade. Overrides the default feature - 'useRememberedArgumentsForUpgrades' set to 'False'. Available in 0.10.4+. - - --exitwhenrebootdetected, --exit-when-reboot-detected - Exit When Reboot Detected - Stop running install, upgrade, or uninstall - when a reboot request is detected. Requires 'usePackageExitCodes' - feature to be turned on. Will exit with either 350 or 1604. Overrides - the default feature 'exitOnRebootDetected' set to 'False'. Available in - 0.10.12+. - - --ignoredetectedreboot, --ignore-detected-reboot - Ignore Detected Reboot - Ignore any detected reboots if found. Overrides - the default feature 'exitOnRebootDetected' set to 'False'. Available in - 0.10.12+. - - --sdc, --skipdownloadcache, --skip-download-cache - Skip Download Cache - Use the original download even if a private CDN - cache is available for a package. Overrides the default feature - 'downloadCache' set to 'True'. Available in 0.9.10+. [Licensed editions](https://chocolatey.org/compare) - only. See https://chocolatey.org/docs/features-private-cdn - - --dc, --downloadcache, --download-cache, --use-download-cache - Use Download Cache - Use private CDN cache if available for a package. - Overrides the default feature 'downloadCache' set to 'True'. Available - in 0.9.10+. [Licensed editions](https://chocolatey.org/compare) only. See https://chocolate- - y.org/docs/features-private-cdn - - --svc, --skipvirus, --skip-virus, --skipviruscheck, --skip-virus-check - Skip Virus Check - Skip the virus check for downloaded files on this ru- - n. Overrides the default feature 'virusCheck' set to 'True'. Available - in 0.9.10+. [Licensed editions](https://chocolatey.org/compare) only. See https://chocolate- - y.org/docs/features-virus-check - - --virus, --viruscheck, --virus-check - Virus Check - check downloaded files for viruses. Overrides the default - feature 'virusCheck' set to 'True'. Available in 0.9.10+. Licensed - editions only. See https://chocolatey.org/docs/features-virus-check - - --viruspositivesmin, --virus-positives-minimum=VALUE - Virus Check Minimum Scan Result Positives - the minimum number of scan - result positives required to flag a package. Used when virusScannerType - is VirusTotal. Overrides the default configuration value - 'virusCheckMinimumPositives' set to '5'. Available in 0.9.10+. Licensed - editions only. See https://chocolatey.org/docs/features-virus-check - - --install-arguments-sensitive=VALUE - InstallArgumentsSensitive - Install Arguments to pass to the native - installer in the package that are sensitive and you do not want logged. - Defaults to unspecified. Available in 0.10.1+. [Licensed editions](https://chocolatey.org/compare) only. - - --package-parameters-sensitive=VALUE - PackageParametersSensitive - Package Parameters to pass the package that - are sensitive and you do not want logged. Defaults to unspecified. - Available in 0.10.1+. [Licensed editions](https://chocolatey.org/compare) only. - - --dir, --directory, --installdir, --installdirectory, --install-dir, --install-directory=VALUE - Install Directory Override - Override the default installation director- - y. Chocolatey will automatically determine the type of installer and - pass the appropriate arguments to override the install directory. The - package must use Chocolatey install helpers and be installing an - installer for software. Available in 0.9.10+. [Licensed editions](https://chocolatey.org/compare) only. - See https://chocolatey.org/docs/features-install-directory-override - - --bps, --maxdownloadrate, --max-download-rate, --maxdownloadbitspersecond, --max-download-bits-per-second, --maximumdownloadbitspersecond, --maximum-download-bits-per-second=VALUE - Maximum Download Rate Bits Per Second - The maximum download rate in - bits per second. '0' or empty means no maximum. A number means that will - be the maximum download rate in bps. Defaults to config setting of '0'. - Available in [licensed editions](https://chocolatey.org/compare) v1.10+ only. See https://chocolate- - y.org/docs/features-package-throttle - - --reduce, --reduce-package-size, --deflate, --deflate-package-size - Reducer Installed Package Size (Package Reducer) - Reduce size of the - nupkg file to very small and remove extracted archives and installers. - Overrides the default feature 'reduceInstalledPackageSpaceUsage' set to - 'True'. [Licensed editions](https://chocolatey.org/compare) only (version 1.12.0+). See https://chocolate- - y.org/docs/features-package-reducer - - --no-reduce, --no-reduce-package-size, --no-deflate, --no-deflate-package-size - Do Not Reduce Installed Package Size - Leave the nupkg and files alone - in the package. Overrides the default feature - 'reduceInstalledPackageSpaceUsage' set to 'True'. [Licensed editions](https://chocolatey.org/compare) only - (version 1.12.0+). See https://chocolatey.org/docs/features-package- - reducer - - --reduce-nupkg-only, --deflate-nupkg-only - Reduce Only Nupkg File Size - reduce only the size of nupkg file when - using Package Reducer. Overrides the default feature - 'reduceOnlyNupkgSize' set to 'False'. [Licensed editions](https://chocolatey.org/compare) only (version - - 1.12.0+). See https://chocolatey.org/docs/features-package-reducer - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco upgrade -h`. - diff --git a/docs/generated/CommandsVersion.md b/docs/generated/CommandsVersion.md deleted file mode 100644 index 3ec5dc94f9..0000000000 --- a/docs/generated/CommandsVersion.md +++ /dev/null @@ -1,138 +0,0 @@ -<!-- This file is automatically generated based on output from https://github.com/chocolatey/choco/tree/stable/src/chocolatey/infrastructure.app/commands/ChocolateyVersionCommand.cs using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> - -# [DEPRECATED] Version Command (choco version) - -**NOTE:** Version has been deprecated and will be removed in version 1.0.0. - - If you are attempting to get local installed items, use - `choco list -lo`. - - If you want to know what has available upgrades, use - `choco upgrade <pkg|all> -whatif` or [[`choco outdated`|Commandsoutdated]]. - -## Options and Switches - -**NOTE:** Options and switches apply to all items passed, so if you are - running a command like install that allows installing multiple - packages, and you use `--version=1.0.0`, it is going to look for and - try to install version 1.0.0 of every package passed. So please split - out multiple package calls when wanting to pass specific options. - -Includes [[default options/switches|CommandsReference#default-options-and-switches]] (included below for completeness). - -~~~ - - -?, --help, -h - Prints out the help menu. - - -d, --debug - Debug - Show debug messaging. - - -v, --verbose - Verbose - Show verbose messaging. Very verbose messaging, avoid using - under normal circumstances. - - --trace - Trace - Show trace messaging. Very, very verbose trace messaging. Avoid - except when needing super low-level .NET Framework debugging. Available - in 0.10.4+. - - --nocolor, --no-color - No Color - Do not show colorization in logging output. This overrides - the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+. - - --acceptlicense, --accept-license - AcceptLicense - Accept license dialogs automatically. Reserved for - future use. - - -y, --yes, --confirm - Confirm all prompts - Chooses affirmative answer instead of prompting. - Implies --accept-license - - -f, --force - Force - force the behavior. Do not use force during normal operation - - it subverts some of the smart behavior for commands. - - --noop, --whatif, --what-if - NoOp / WhatIf - Don't actually do anything. - - -r, --limitoutput, --limit-output - LimitOutput - Limit the output to essential information - - --timeout, --execution-timeout=VALUE - CommandExecutionTimeout (in seconds) - The time to allow a command to - finish before timing out. Overrides the default execution timeout in the - configuration of 2700 seconds. '0' for infinite starting in 0.10.4. - - -c, --cache, --cachelocation, --cache-location=VALUE - CacheLocation - Location for download cache, defaults to %TEMP% or value - in chocolatey.config file. - - --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build - AllowUnofficialBuild - When not using the official build you must set - this flag for choco to continue. - - --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output - FailOnStandardError - Fail on standard error output (stderr), typically - received when running external commands during install providers. This - overrides the feature failOnStandardError. - - --use-system-powershell - UseSystemPowerShell - Execute PowerShell using an external process - instead of the built-in PowerShell host. Should only be used when - internal host is failing. Available in 0.9.10+. - - --no-progress - Do Not Show Progress - Do not show download progress percentages. - Available in 0.10.4+. - - --proxy=VALUE - Proxy Location - Explicit proxy location. Overrides the default proxy - location of ''. Available for config settings in 0.9.9.9+, this CLI - option available in 0.10.4+. - - --proxy-user=VALUE - Proxy User Name - Explicit proxy user (optional). Requires explicity - proxy (`--proxy` or config setting). Overrides the default proxy user of - '123'. Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-password=VALUE - Proxy Password - Explicit proxy password (optional) to be used with - username. Requires explicity proxy (`--proxy` or config setting) and - user name. Overrides the default proxy password (encrypted in settings - if set). Available for config settings in 0.9.9.9+, this CLI option - available in 0.10.4+. - - --proxy-bypass-list=VALUE - ProxyBypassList - Comma separated list of regex locations to bypass on - proxy. Requires explicity proxy (`--proxy` or config setting). Overrides - the default proxy bypass list of ''. Available in 0.10.4+. - - --proxy-bypass-on-local - Proxy Bypass On Local - Bypass proxy for local connections. Requires - explicity proxy (`--proxy` or config setting). Overrides the default - proxy bypass on local setting of 'True'. Available in 0.10.4+. - - --log-file=VALUE - Log File to output to in addition to regular loggers. Available in 0.1- - 0.8+. - - -s, --source=VALUE - Source - The source to find the package(s) to install. Special sources - include: ruby, webpi, cygwin, windowsfeatures, and python. Defaults to - default feeds. - - --lo, --localonly - LocalOnly - Only search against local machine items. - - --pre, --prerelease - Prerelease - Include Prereleases? Defaults to false. - -~~~ - -[[Command Reference|CommandsReference]] - - -***NOTE:*** This documentation has been automatically generated from `choco version -h`. - diff --git a/docs/generated/HelpersFormatFileSize.md b/docs/generated/HelpersFormatFileSize.md deleted file mode 100644 index 6a2756eeb5..0000000000 --- a/docs/generated/HelpersFormatFileSize.md +++ /dev/null @@ -1,84 +0,0 @@ -# Format-FileSize - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Format-FileSize.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -DO NOT USE. Not part of the public API. - -## Syntax - -~~~powershell -Format-FileSize ` - -Size <Double> ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Formats file size into a human readable format. - -## Notes - -Available in 0.9.10+. - -This function is not part of the API. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell -Format-FileSize -Size $fileSizeBytes - -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Size <Double> -The size of a file in bytes. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | 0 -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Get-WebFile|HelpersGetWebFile]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Format-FileSize -Full`. - -View the source for [Format-FileSize](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Format-FileSize.ps1) diff --git a/docs/generated/HelpersGetChecksumValid.md b/docs/generated/HelpersGetChecksumValid.md deleted file mode 100644 index d716f40de2..0000000000 --- a/docs/generated/HelpersGetChecksumValid.md +++ /dev/null @@ -1,181 +0,0 @@ -# Get-ChecksumValid - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-ChecksumValid.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Checks a file's checksum versus a passed checksum and checksum type. - -## Syntax - -~~~powershell -Get-ChecksumValid ` - -File <String> ` - [-Checksum <String>] ` - [-ChecksumType <String>] ` - [-OriginalUrl <String>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Makes a determination if a file meets an expected checksum signature. -This function is usually used when comparing a file that is downloaded -from an official distribution point. If the checksum fails to match the -expected output, this function throws an error. - -Checksums have been used for years as a means of verification. A -checksum hash is a unique value or signature that corresponds to the -contents of a file. File names and extensions can be altered without -changing the checksum signature. However if you changed the contents of -the file, even one character, the checksum will be different. - -Checksums are used to provide as a means of cryptographically ensuring -the contents of a file have not been changed. While some cryptographic -algorithms, including MD5 and SHA1, are no longer considered secure -against attack, the goal of a checksum algorithm is to make it -extremely difficult (near impossible with better algorithms) to alter -the contents of a file (whether by accident or for malicious reasons) -and still result in the same checksum signature. - -When verifying a checksum using a secure algorithm, if the checksum -matches the expected signature, the contents of the file are identical -to what is expected. - -## Notes - -This uses the checksum.exe tool available separately at -https://chocolatey.org/packages/checksum. - -Options that affect checksum verification: - -* `--ignore-checksums` - skips checksumming -* `--allow-empty-checksums` - skips checksumming when the package is missing a checksum -* `--allow-empty-checksums-secure` - skips checksumming when the package is missing a checksum for secure (HTTPS) locations -* `--require-checksums` - requires checksums for both non-secure and secure locations -* `--download-checksum`, `--download-checksum-type` - allows user to pass their own checksums -* `--download-checksum-x64`, `--download-checksum-type-x64` - allows user to pass their own checksums - -Features that affect checksum verification: - -* `checksumFiles` - when turned off, skips checksumming -* `allowEmptyChecksums` - when turned on, skips checksumming when the package is missing a checksum -* `allowEmptyChecksumsSecure` - when turned on, skips checksumming when the package is missing a checksum for secure (HTTPS) locations - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell -Get-ChecksumValid -File $fileFullPath -CheckSum $checksum -ChecksumType $checksumType - -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -File <String> -The full path to a binary file that is checksummed and compared to the -passed Checksum parameter value. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -Checksum [<String>] -The expected checksum hash value of the File resource. The checksum -type is covered by ChecksumType. - -**NOTE:** Checksums in packages are meant as a measure to validate the -originally intended file that was used in the creation of a package is -the same file that is received at a future date. Since this is used for -other steps in the process related to the [community repository](https://chocolatey.org/packages), it -ensures that the file a user receives is the same file a maintainer -and a moderator (if applicable), plus any moderation review has -intended for you to receive with this package. If you are looking at a -remote source that uses the same url for updates, you will need to -ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) -to help provide that functionality. - -**NOTE:** To determine checksums, you can get that from the original -site if provided. You can also use the [checksum tool available on -the [community feed](https://chocolatey.org/packages)](https://chocolatey.org/packages/checksum) (`choco install checksum`) -and use it e.g. `checksum -t sha256 -f path\to\file`. Ensure you -provide checksums for all remote resources used. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -ChecksumType [<String>] -The type of checkum that the file is validated with - 'md5', 'sha1', -'sha256' or 'sha512' - defaults to 'md5'. - -MD5 is not recommended as certain organizations need to use FIPS -compliant algorithms for hashing - see -https://support.microsoft.com/en-us/kb/811833 for more details. - -The recommendation is to use at least SHA256. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | md5 -Accept Pipeline Input? | false - -### -OriginalUrl [<String>] -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 4 -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Get-ChocolateyWebFile|HelpersGetChocolateyWebFile]] - * [[Install-ChocolateyPackage|HelpersInstallChocolateyPackage]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-ChecksumValid -Full`. - -View the source for [Get-ChecksumValid](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-ChecksumValid.ps1) diff --git a/docs/generated/HelpersGetChocolateyUnzip.md b/docs/generated/HelpersGetChocolateyUnzip.md deleted file mode 100644 index 6e5d093816..0000000000 --- a/docs/generated/HelpersGetChocolateyUnzip.md +++ /dev/null @@ -1,160 +0,0 @@ -# Get-ChocolateyUnzip - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-ChocolateyUnzip.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Unzips an archive file and returns the location for further processing. - -## Syntax - -~~~powershell -Get-ChocolateyUnzip ` - [-FileFullPath <String>] ` - -Destination <String> ` - [-SpecificFolder <String>] ` - [-PackageName <String>] ` - [-FileFullPath64 <String>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This unzips files using the 7-zip command line tool 7z.exe. -Supported archive formats are listed at: -https://sevenzip.osdn.jp/chm/general/formats.htm -Prior to 0.9.10.1, 7za.exe was used. Supported archive formats for -7za.exe are: 7z, lzma, cab, zip, gzip, bzip2, and tar. - -## Notes - -If extraction fails, an exception is thrown. - -If you are embedding files into a package, ensure that you have the -rights to redistribute those files if you are sharing this package -publicly (like on the [community feed](https://chocolatey.org/packages)). Otherwise, please use -Install-ChocolateyZipPackage to download those resources from their -official distribution points. - -Starting in 0.9.10, will automatically call Set-PowerShellExitCode to -set the package exit code based on 7-zip's exit code. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell - -# Path to the folder where the script is executing -$toolsDir = (Split-Path -parent $MyInvocation.MyCommand.Definition) -Get-ChocolateyUnzip -FileFullPath "c:\someFile.zip" -Destination $toolsDir -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -FileFullPath [<String>] -This is the full path to the zip file. If embedding it in the package -next to the install script, the path will be like -`"$(Split-Path -Parent $MyInvocation.MyCommand.Definition)\\file.zip"` - -In 0.10.1+, `File` is an alias for FileFullPath. - -This can be a 32-bit or 64-bit file. This is mandatory in earlier versions -of Chocolatey, but optional if FileFullPath64 has been provided. - -Property | Value ----------------------- | ----- -Aliases | file -Required? | false -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -Destination <String> -This is a directory where you would like the unzipped files to end up. -If it does not exist, it will be created. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -SpecificFolder [<String>] -OPTIONAL - This is a specific directory within zip file to extract. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### -PackageName [<String>] -OPTIONAL - This will faciliate logging unzip activity for subsequent -uninstalls - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 4 -Default Value | -Accept Pipeline Input? | false - -### -FileFullPath64 [<String>] -Full file path to a 64-bit native installer to run. Available in 0.10.4+. -If embedding in the package, you can get it to the path with -`"$(Split-Path -parent $MyInvocation.MyCommand.Definition)\\INSTALLER_FILE"` - -Provide this when you want to provide both 32-bit and 64-bit -installers or explicitly only a 64-bit installer (which will cause a package -install failure on 32-bit systems). - -Property | Value ----------------------- | ------ -Aliases | file64 -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyZipPackage|HelpersInstallChocolateyZipPackage]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-ChocolateyUnzip -Full`. - -View the source for [Get-ChocolateyUnzip](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-ChocolateyUnzip.ps1) diff --git a/docs/generated/HelpersGetChocolateyWebFile.md b/docs/generated/HelpersGetChocolateyWebFile.md deleted file mode 100644 index 46ec206a78..0000000000 --- a/docs/generated/HelpersGetChocolateyWebFile.md +++ /dev/null @@ -1,328 +0,0 @@ -# Get-ChocolateyWebFile - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Downloads a file from the internets. - -## Syntax - -~~~powershell -Get-ChocolateyWebFile ` - -PackageName <String> ` - -FileFullPath <String> ` - [-Url <String>] ` - [-Url64bit <String>] ` - [-Checksum <String>] ` - [-ChecksumType <String>] ` - [-Checksum64 <String>] ` - [-ChecksumType64 <String>] ` - [-Options <Hashtable>] ` - [-GetOriginalFileName] ` - [-ForceDownload] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This will download a file from a url, tracking with a progress bar. -It returns the filepath to the downloaded file when it is complete. - -## Notes - -Chocolatey works best when the packages contain the software it is -managing and doesn't require downloads. However most software in the -Windows world requires redistribution rights and when sharing packages -publicly (like on the [community feed](https://chocolatey.org/packages)), maintainers may not have those -aforementioned rights. Chocolatey understands how to work with that, -hence this function. You are not subject to this limitation with -internal packages. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell -Get-ChocolateyWebFile '__NAME__' 'C:\somepath\somename.exe' 'URL' '64BIT_URL_DELETE_IF_NO_64BIT' - -~~~ - -**EXAMPLE 2** - -~~~powershell - -# Download from an HTTPS location -$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" -Get-ChocolateyWebFile -PackageName 'bob' -FileFullPath "$toolsDir\bob.exe" -Url 'https://somewhere/bob.exe' -~~~ - -**EXAMPLE 3** - -~~~powershell - -# Download from FTP -$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" -Get-ChocolateyWebFile -PackageName 'bob' -FileFullPath "$toolsDir\bob.exe" -Url 'ftp://somewhere/bob.exe' -~~~ - -**EXAMPLE 4** - -~~~powershell - -# Download from a file share -$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" -Get-ChocolateyWebFile -PackageName 'bob' -FileFullPath "$toolsDir\bob.exe" -Url 'file:///\\fileshare\location\bob.exe' -~~~ - -**EXAMPLE 5** - -~~~powershell - -$options = -@{ - Headers = @{ - Accept = 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'; - 'Accept-Charset' = 'ISO-8859-1,utf-8;q=0.7,*;q=0.3'; - 'Accept-Language' = 'en-GB,en-US;q=0.8,en;q=0.6'; - Cookie = 'requiredinfo=info'; - Referer = 'https://somelocation.com/'; - } -} - -Get-ChocolateyWebFile -PackageName 'package' -FileFullPath "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)\thefile.exe" -Url 'https://somelocation.com/thefile.exe' -Options $options -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -PackageName <String> -The name of the package - while this is an arbitrary value, it's -recommended that it matches the package id. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -FileFullPath <String> -This is the full path of the resulting file name. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -Url [<String>] -This is the 32 bit url to download the resource from. This resource can -be used on 64 bit systems when a package has both a Url and Url64bit -specified if a user passes `--forceX86`. If there is only a 64 bit url -available, please remove do not use the paramter (only use Url64bit). -Will fail on 32bit systems if missing or if a user attempts to force -a 32 bit installation on a 64 bit system. - -Prefer HTTPS when available. Can be HTTP, FTP, or File URIs. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### -Url64bit [<String>] -OPTIONAL - If there is a 64 bit resource available, use this -parameter. Chocolatey will automatically determine if the user is -running a 64 bit OS or not and adjust accordingly. Please note that -the 32 bit url will be used in the absence of this. This parameter -should only be used for 64 bit native software. If the original Url -contains both (which is quite rare), set this to '$url' Otherwise -remove this parameter. - -Prefer HTTPS when available. Can be HTTP, FTP, or File URIs. - -In 0.10.1+, `Url64` is an alias for Url64bit. - -Property | Value ----------------------- | ----- -Aliases | url64 -Required? | false -Position? | 4 -Default Value | -Accept Pipeline Input? | false - -### -Checksum [<String>] -The checksum hash value of the Url resource. This allows a checksum to -be validated for files that are not local. The checksum type is covered -by ChecksumType. - -**NOTE:** Checksums in packages are meant as a measure to validate the -originally intended file that was used in the creation of a package is -the same file that is received at a future date. Since this is used for -other steps in the process related to the [community repository](https://chocolatey.org/packages), it -ensures that the file a user receives is the same file a maintainer -and a moderator (if applicable), plus any moderation review has -intended for you to receive with this package. If you are looking at a -remote source that uses the same url for updates, you will need to -ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) -to help provide that functionality. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -ChecksumType [<String>] -The type of checkum that the file is validated with - valid -values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to 'md5'. - -MD5 is not recommended as certain organizations need to use FIPS -compliant algorithms for hashing - see -https://support.microsoft.com/en-us/kb/811833 for more details. - -The recommendation is to use at least SHA256. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -Checksum64 [<String>] -OPTIONAL if no Url64bit - The checksum hash value of the Url64bit -resource. This allows a checksum to be validated for files that are not -local. The checksum type is covered by ChecksumType64. - -**NOTE:** Checksums in packages are meant as a measure to validate the -originally intended file that was used in the creation of a package is -the same file that is received at a future date. Since this is used for -other steps in the process related to the [community repository](https://chocolatey.org/packages), it -ensures that the file a user receives is the same file a maintainer -and a moderator (if applicable), plus any moderation review has -intended for you to receive with this package. If you are looking at a -remote source that uses the same url for updates, you will need to -ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) -to help provide that functionality. - -**NOTE:** To determine checksums, you can get that from the original -site if provided. You can also use the [checksum tool available on -the [community feed](https://chocolatey.org/packages)](https://chocolatey.org/packages/checksum) (`choco install checksum`) -and use it e.g. `checksum -t sha256 -f path\to\file`. Ensure you -provide checksums for all remote resources used. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -ChecksumType64 [<String>] -OPTIONAL - The type of checkum that the file is validated with - valid -values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to -ChecksumType parameter value. - -MD5 is not recommended as certain organizations need to use FIPS -compliant algorithms for hashing - see -https://support.microsoft.com/en-us/kb/811833 for more details. - -The recommendation is to use at least SHA256. - -Property | Value ----------------------- | ------------- -Aliases | -Required? | false -Position? | named -Default Value | $checksumType -Accept Pipeline Input? | false - -### -Options [<Hashtable>] -OPTIONAL - Specify custom headers. Available in 0.9.10+. - -Property | Value ----------------------- | -------------- -Aliases | -Required? | false -Position? | named -Default Value | @{Headers=@{}} -Accept Pipeline Input? | false - -### -GetOriginalFileName -OPTIONAL switch to allow Chocolatey to determine the original file name -from the url resource. Available in 0.9.10+. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | False -Accept Pipeline Input? | false - -### -ForceDownload -OPTIONAL switch to force download of file every time, even if the file -already exists. - -Available in 0.10.1+. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | False -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyPackage|HelpersInstallChocolateyPackage]] - * [[Get-WebFile|HelpersGetWebFile]] - * [[Get-WebFileName|HelpersGetWebFileName]] - * [[Get-FtpFile|HelpersGetFtpFile]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-ChocolateyWebFile -Full`. - -View the source for [Get-ChocolateyWebFile](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1) diff --git a/docs/generated/HelpersGetEnvironmentVariable.md b/docs/generated/HelpersGetEnvironmentVariable.md deleted file mode 100644 index 37b7fb68de..0000000000 --- a/docs/generated/HelpersGetEnvironmentVariable.md +++ /dev/null @@ -1,123 +0,0 @@ -# Get-EnvironmentVariable - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-EnvironmentVariable.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Gets an Environment Variable. - -## Syntax - -~~~powershell -Get-EnvironmentVariable ` - -Name <String> ` - -Scope {Process | User | Machine} ` - [-PreserveVariables] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This will will get an environment variable based on the variable name -and scope while accounting whether to expand the variable or not -(e.g.: `%TEMP%`-> `C:\User\Username\AppData\Local\Temp`). - -## Notes - -This helper reduces the number of lines one would have to write to get -environment variables, mainly when not expanding the variables is a -must. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell -Get-EnvironmentVariable -Name 'TEMP' -Scope User -PreserveVariables - -~~~ - -**EXAMPLE 2** - -~~~powershell -Get-EnvironmentVariable -Name 'PATH' -Scope Machine - -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Name <String> -The environemnt variable you want to get the value from. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -Scope -The environemnt variable target scope. This is `Process`, `User`, or -`Machine`. - - -Valid options: Process, User, Machine - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -PreserveVariables -A switch parameter stating whether you want to expand the variables or -not. Defaults to false. Available in 0.9.10+. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | False -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Get-EnvironmentVariableNames|HelpersGetEnvironmentVariableNames]] - * [[Set-EnvironmentVariable|HelpersSetEnvironmentVariable]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-EnvironmentVariable -Full`. - -View the source for [Get-EnvironmentVariable](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-EnvironmentVariable.ps1) diff --git a/docs/generated/HelpersGetEnvironmentVariableNames.md b/docs/generated/HelpersGetEnvironmentVariableNames.md deleted file mode 100644 index a783223db2..0000000000 --- a/docs/generated/HelpersGetEnvironmentVariableNames.md +++ /dev/null @@ -1,59 +0,0 @@ -# Get-EnvironmentVariableNames - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-EnvironmentVariableNames.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Gets all environment variable names. - -## Syntax - -~~~powershell -Get-EnvironmentVariableNames ` - [-Scope {Process | User | Machine}] -~~~ - -## Description - -Provides a list of environment variable names based on the scope. This -can be used to loop through the list and generate names. - -## Notes - -Process dumps the current environment variable names in memory / -session. The other scopes refer to the registry values. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell -Get-EnvironmentVariableNames -Scope Machine - -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - - - -## Links - - * [[Get-EnvironmentVariable|HelpersGetEnvironmentVariable]] - * [[Set-EnvironmentVariable|HelpersSetEnvironmentVariable]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-EnvironmentVariableNames -Full`. - -View the source for [Get-EnvironmentVariableNames](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-EnvironmentVariableNames.ps1) diff --git a/docs/generated/HelpersGetFtpFile.md b/docs/generated/HelpersGetFtpFile.md deleted file mode 100644 index b1842fe9f0..0000000000 --- a/docs/generated/HelpersGetFtpFile.md +++ /dev/null @@ -1,129 +0,0 @@ -# Get-FtpFile - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-FtpFile.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Downloads a file from a File Transfter Protocol (FTP) location. - -## Syntax - -~~~powershell -Get-FtpFile ` - [-Url <String>] ` - -FileName <String> ` - [-Username <String>] ` - [-Password <String>] ` - [-Quiet] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This will download a file from an FTP location, saving the file to the -FileName location specified. - -## Notes - -This is a low-level function and not recommended for use in package -scripts. It is recommended you call `Get-ChocolateyWebFile` instead. - -Starting in 0.9.10, will automatically call Set-PowerShellExitCode to -set the package exit code to 404 if the resource is not found. - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Url [<String>] -This is the url to download the file from. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -FileName <String> -This is the full path to the file to create. If FTPing to the -package folder next to the install script, the path will be like -`"$(Split-Path -Parent $MyInvocation.MyCommand.Definition)\\file.exe"` - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -Username [<String>] -The user account to connect to FTP with. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### -Password [<String>] -The password for the user account on the FTP server. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 4 -Default Value | -Accept Pipeline Input? | false - -### -Quiet -Silences the progress output. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | False -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Get-ChocolateyWebFile|HelpersGetChocolateyWebFile]] - * [[Get-WebFile|HelpersGetWebFile]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-FtpFile -Full`. - -View the source for [Get-FtpFile](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-FtpFile.ps1) diff --git a/docs/generated/HelpersGetOSArchitectureWidth.md b/docs/generated/HelpersGetOSArchitectureWidth.md deleted file mode 100644 index 79d72f2ad4..0000000000 --- a/docs/generated/HelpersGetOSArchitectureWidth.md +++ /dev/null @@ -1,51 +0,0 @@ -# Get-OSArchitectureWidth - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-OSArchitectureWidth.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Get the operating system architecture address width. - -## Syntax - -~~~powershell -Get-OSArchitectureWidth ` - [-Compare <Object>] -~~~ - -## Description - -This will return the system architecture address width (probably 32 or -64 bit). If you pass a comparison, it will return true or false instead -of {`32`|`64`}. - -## Notes - -When your installation script has to know what architecture it is run -on, this simple function comes in handy. - -Available as `Get-OSArchitectureWidth` in 0.9.10+. If you need -compatibility with pre 0.9.10, please use the alias `Get-ProcessorBits`. - -## Aliases - -`Get-OSBitness` -`Get-ProcessorBits` - - -## Inputs - -None - -## Outputs - -None - -## Parameters - - - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-OSArchitectureWidth -Full`. - -View the source for [Get-OSArchitectureWidth](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-OSArchitectureWidth.ps1) diff --git a/docs/generated/HelpersGetPackageParameters.md b/docs/generated/HelpersGetPackageParameters.md deleted file mode 100644 index cd3baa0b1e..0000000000 --- a/docs/generated/HelpersGetPackageParameters.md +++ /dev/null @@ -1,160 +0,0 @@ -# Get-PackageParameters - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-PackageParameters.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Parses a string and returns a hash table array of those values for use -in package scripts. - -## Syntax - -~~~powershell -Get-PackageParameters ` - [-Parameters <String>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This looks at a string value and parses it into a hash table array for -use in package scripts. By default this will look at -`$env:ChocolateyPackageParameters` (`--params="'/ITEM:value'"`) and -`$env:ChocolateyPackageParametersSensitive` -(`--package-parameters-sensitive="'/PASSWORD:value'"` in commercial -editions). - -Learn more about using this at https://chocolatey.org/docs/how-to-parse-package-parameters-argument - -## Notes - -Available in 0.10.8+. If you need compatibility with older versions, -take a dependency on the `chocolatey-core.extension` package which -also provides this functionality. If you are pushing to the community -package repository (https://chocolatey.org/packages), you are required -to take a dependency on the core extension until January 2018. How to -do this is explained at https://chocolatey.org/docs/how-to-parse-package-parameters-argument#step-3---use-core-community-extension. - -The differences between this and the `chocolatey-core.extension` package -functionality is that the extension function can only do one string at a -time and it only looks at `$env:ChocolateyPackageParameters` by default. -It also only supports splitting by `:`, with this function you can -either split by `:` or `=`. For compatibility with the core extension, -build all docs with `/Item:Value`. - -## Aliases - -`Get-PackageParametersBuiltIn` - - -## Examples - - **EXAMPLE 1** - -~~~powershell - -# The default way of calling, uses `$env:ChocolateyPackageParameters` -# and `$env:ChocolateyPackageParametersSensitive` - this is typically -# how things are passed in from choco.exe -$pp = Get-PackageParameters -~~~ - -**EXAMPLE 2** - -~~~powershell - -# see https://chocolatey.org/docs/how-to-parse-package-parameters-argument -# command line call: `choco install <pkg_id> --params "'/LICENSE:value'"` -$pp = Get-PackageParameters -# Read-Host, PromptForChoice, etc are not blocking calls with Chocolatey. -# Chocolatey has a custom PowerShell host that will time these calls -# after 30 seconds, allowing headless operation to continue but offer -# prompts to users to ask questions during installation. -if (!$pp['LICENSE']) { $pp['LICENSE'] = Read-Host 'License key?' } -# set a default if not passed -if (!$pp['LICENSE']) { $pp['LICENSE'] = '1234' } -~~~ - -**EXAMPLE 3** - -~~~powershell - -$pp = Get-PackageParameters -if (!$pp['UserName']) { $pp['UserName'] = "$env:UserName" } -# Requires Choocolatey v0.10.8+ for Read-Host -AsSecureString -if (!$pp['Password']) { $pp['Password'] = Read-Host "Enter password for $($pp['UserName']):" -AsSecureString} -# fail the install/upgrade if not value is not determined -if (!$pp['Password']) { throw "Package needs Password to install, that must be provided in params or in prompt." } -~~~ - -**EXAMPLE 4** - -~~~powershell - -# Pass in your own values -Get-PackageParameters -Parameters "/Shortcut /InstallDir:'c:\program files\xyz' /NoStartup" | set r -if ($r.Shortcut) {... } -Write-Host $r.InstallDir -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Parameters [<String>] -OPTIONAL - Specify a string to parse. If not set, will use -`$env:ChocolateyPackageParameters` and -`$env:ChocolateyPackageParametersSensitive` to parse values from. - -Parameters should be passed as "/NAME:value" or "/NAME=value". For -compatibility with `chocolatey-core.extension`, use `:`. - -For example `-Parameters "/ITEM1:value /ITEM2:value with spaces" - -NOTE: In 0.10.9+, to maintain compatibility with the prior art of the -chocolatey-core.extension method, quotes and apostrophes surrounding -parameter values will be removed. When the param is used, those items -can be added back if desired, but it's most important to ensure that -existing packages are compatible on upgrade. - -Property | Value ----------------------- | ------ -Aliases | params -Required? | false -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply and future expansion. -Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyPackage|HelpersInstallChocolateyPackage]] - * [[Install-ChocolateyInstallPackage|HelpersInstallChocolateyInstallPackage]] - * [[Install-ChocolateyZipPackage|HelpersInstallChocolateyZipPackage]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-PackageParameters -Full`. - -View the source for [Get-PackageParameters](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-PackageParameters.ps1) diff --git a/docs/generated/HelpersGetToolsLocation.md b/docs/generated/HelpersGetToolsLocation.md deleted file mode 100644 index 47d1154ee3..0000000000 --- a/docs/generated/HelpersGetToolsLocation.md +++ /dev/null @@ -1,57 +0,0 @@ -# Get-ToolsLocation - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-ToolsLocation.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Gets the top level location for tools/software installed outside of -package folders. - -## Syntax - -~~~powershell -Get-ToolsLocation -~~~ - -## Description - -Creates or uses an environment variable that a user can control to -communicate with packages about where they would like software that is -not installed through native installers, but doesn't make much sense -to be kept in package folders. Most software coming in packages stays -with the package itself, but there are some things that seem to fall -out of this category, like things that have plugins that are installed -into the same directory as the tool. Having that all combined in the -same package directory could get tricky. - -## Notes - -This is the successor to the poorly named `Get-BinRoot`. Available as -`Get-ToolsLocation` in 0.9.10+. If you need compatibility with pre -0.9.10, please use `Get-BinRoot`. - -Sets an environment variable called `ChocolateyToolsLocation`. If the -older `ChocolateyBinRoot` is set, it uses the value from that and -removes the older variable. - -## Aliases - -`Get-BinRoot` - - -## Inputs - -None - -## Outputs - -None - -## Parameters - - - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-ToolsLocation -Full`. - -View the source for [Get-ToolsLocation](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-ToolsLocation.ps1) diff --git a/docs/generated/HelpersGetUACEnabled.md b/docs/generated/HelpersGetUACEnabled.md deleted file mode 100644 index 860855aac8..0000000000 --- a/docs/generated/HelpersGetUACEnabled.md +++ /dev/null @@ -1,44 +0,0 @@ -# Get-UACEnabled - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-UACEnabled.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Determines if UAC (User Account Control) is turned on or off. - -## Syntax - -~~~powershell -Get-UACEnabled -~~~ - -## Description - -This is a low level function used by Chocolatey to decide whether -prompting for elevated privileges is necessary or not. - -## Notes - -This checks the `EnableLUA` registry value to be determine the state of -a system. - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - - - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-UACEnabled -Full`. - -View the source for [Get-UACEnabled](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-UACEnabled.ps1) diff --git a/docs/generated/HelpersGetUninstallRegistryKey.md b/docs/generated/HelpersGetUninstallRegistryKey.md deleted file mode 100644 index d9f31c2738..0000000000 --- a/docs/generated/HelpersGetUninstallRegistryKey.md +++ /dev/null @@ -1,144 +0,0 @@ -# Get-UninstallRegistryKey - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-UninstallRegistryKey.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Retrieve registry key(s) for system-installed applications from an -exact or wildcard search. - -## Syntax - -~~~powershell -Get-UninstallRegistryKey ` - -SoftwareName <String> ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This function will attempt to retrieve a matching registry key for an -already installed application, usually to be used with a -chocolateyUninstall.ps1 automation script. - -The function also prevents `Get-ItemProperty` from failing when -handling wrongly encoded registry keys. - -## Notes - -Available in 0.9.10+. If you need to maintain compatibility with pre -0.9.10, please add the following to your nuspec (check for minimum -version): - -~~~xml -<dependencies> - <dependency id="chocolatey-core.extension" version="1.1.0" /> -</dependencies> -~~~ - -## Aliases - -`Get-InstallRegistryKey` - - -## Examples - - **EXAMPLE 1** - -~~~powershell - -# Version match: Software name is "Gpg4Win (2.3.0)" -[array]$key = Get-UninstallRegistryKey -SoftwareName "Gpg4win (*)" -$key.UninstallString -~~~ - -**EXAMPLE 2** - -~~~powershell - -# Fuzzy match: Software name is "Launchy 2.5" -[array]$key = Get-UninstallRegistryKey -SoftwareName "Launchy*" -$key.UninstallString -~~~ - -**EXAMPLE 3** - -~~~powershell - -# Exact match: Software name in Programs and Features is "VLC media player" -[array]$key = Get-UninstallRegistryKey -SoftwareName "VLC media player" -$key.UninstallString -~~~ - -**EXAMPLE 4** - -~~~powershell - -# Version match: Software name is "SketchUp 2016" -# Note that the similar software name "SketchUp Viewer" would not be matched. -[array]$key = Get-UninstallRegistryKey -SoftwareName "SketchUp [0-9]*" -$key.UninstallString -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -SoftwareName <String> -Part or all of the Display Name as you see it in Programs and Features. -It should be enough to be unique. -The syntax follows the rules of the PowerShell `-like` operator, so the -`*` character is interpreted as a wildcard, which matches any (zero or -more) characters. - -If the display name contains a version number, such as "Launchy (2.5)", -it is recommended you use a fuzzy search `"Launchy (*)"` (the wildcard -`*`) so if Launchy auto-updates or is updated outside of Chocolatey, the -uninstall script will not fail. - -Take care not to abuse fuzzy/glob pattern searches. Be conscious of -programs that may have shared or common root words to prevent -overmatching. For example, "SketchUp*" would match two keys with -software names "SketchUp 2016" and "SketchUp Viewer" that are different -programs released by the same company. - -Property | Value ----------------------- | -------------- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | true (ByValue) - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyPackage|HelpersInstallChocolateyPackage]] - * [[Install-ChocolateyInstallPackage|HelpersInstallChocolateyInstallPackage]] - * [[Uninstall-ChocolateyPackage|HelpersUninstallChocolateyPackage]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-UninstallRegistryKey -Full`. - -View the source for [Get-UninstallRegistryKey](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-UninstallRegistryKey.ps1) diff --git a/docs/generated/HelpersGetVirusCheckValid.md b/docs/generated/HelpersGetVirusCheckValid.md deleted file mode 100644 index eff846d404..0000000000 --- a/docs/generated/HelpersGetVirusCheckValid.md +++ /dev/null @@ -1,84 +0,0 @@ -# Get-VirusCheckValid - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-VirusCheckValid.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Used in Pro/Business editions. Runtime virus check against downloaded -resources. - -## Syntax - -~~~powershell -Get-VirusCheckValid ` - [-Url <String>] ` - [-File <String>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Run a runtime malware check against downloaded resources prior to -allowing Chocolatey to execute a file. This is available in 0.9.10+ only -in Pro / Business editions. - -## Notes - -Only [licensed editions](https://chocolatey.org/compare) of Chocolatey provide runtime malware protection. - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Url [<String>] -Not used - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -File [<String>] -The full file path to the file to verify against anti-virus scanners. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-VirusCheckValid -Full`. - -View the source for [Get-VirusCheckValid](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-VirusCheckValid.ps1) diff --git a/docs/generated/HelpersGetWebFile.md b/docs/generated/HelpersGetWebFile.md deleted file mode 100644 index 801e81c7ce..0000000000 --- a/docs/generated/HelpersGetWebFile.md +++ /dev/null @@ -1,145 +0,0 @@ -# Get-WebFile - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-WebFile.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Downloads a file from an HTTP/HTTPS location. Prefer HTTPS when -available. - -## Syntax - -~~~powershell -Get-WebFile ` - [-Url <String>] ` - [-FileName <String>] ` - [-UserAgent <String>] ` - [-Passthru] ` - [-Quiet] ` - [-Options <Hashtable>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This will download a file from an HTTP/HTTPS location, saving the file -to the FileName location specified. - -## Notes - -This is a low-level function and not recommended for use in package -scripts. It is recommended you call `Get-ChocolateyWebFile` instead. - -Starting in 0.9.10, will automatically call Set-PowerShellExitCode to -set the package exit code to 404 if the resource is not found. - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Url [<String>] -This is the url to download the file from. Prefer HTTPS when available. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -FileName [<String>] -This is the full path to the file to create. If downloading to the -package folder next to the install script, the path will be like -`"$(Split-Path -Parent $MyInvocation.MyCommand.Definition)\\file.exe"` - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -UserAgent [<String>] -The user agent to use as part of the request. Defaults to 'chocolatey -command line'. - -Property | Value ----------------------- | ----------------------- -Aliases | -Required? | false -Position? | 3 -Default Value | chocolatey command line -Accept Pipeline Input? | false - -### -Passthru -DO NOT USE - holdover from original function. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | False -Accept Pipeline Input? | false - -### -Quiet -Silences the progress output. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | False -Accept Pipeline Input? | false - -### -Options [<Hashtable>] -OPTIONAL - Specify custom headers. Available in 0.9.10+. - -Property | Value ----------------------- | -------------- -Aliases | -Required? | false -Position? | named -Default Value | @{Headers=@{}} -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Get-ChocolateyWebFile|HelpersGetChocolateyWebFile]] - * [[Get-FtpFile|HelpersGetFtpFile]] - * [[Get-WebHeaders|HelpersGetWebHeaders]] - * [[Get-WebFileName|HelpersGetWebFileName]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-WebFile -Full`. - -View the source for [Get-WebFile](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-WebFile.ps1) diff --git a/docs/generated/HelpersGetWebFileName.md b/docs/generated/HelpersGetWebFileName.md deleted file mode 100644 index 91eca9c2b9..0000000000 --- a/docs/generated/HelpersGetWebFileName.md +++ /dev/null @@ -1,120 +0,0 @@ -# Get-WebFileName - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-WebFileName.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Gets the original file name from a url. Used by Get-WebFile to determine -the original file name for a file. - -## Syntax - -~~~powershell -Get-WebFileName ` - [-Url <String>] ` - -DefaultName <String> ` - [-UserAgent <String>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Uses several techniques to determine the original file name of the file -based on the url for the file. - -## Notes - -Available in 0.9.10+. -Falls back to DefaultName when the name cannot be determined. - -Chocolatey works best when the packages contain the software it is -managing and doesn't require downloads. However most software in the -Windows world requires redistribution rights and when sharing packages -publicly (like on the [community feed](https://chocolatey.org/packages)), maintainers may not have those -aforementioned rights. Chocolatey understands how to work with that, -hence this function. You are not subject to this limitation with -internal packages. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell -Get-WebFileName -Url $url -DefaultName $originalFileName - -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Url [<String>] -This is the url to a file that will be possibly downloaded. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -DefaultName <String> -The name of the file to use when not able to determine the file name -from the url response. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -UserAgent [<String>] -The user agent to use as part of the request. Defaults to 'chocolatey -command line'. - -Property | Value ----------------------- | ----------------------- -Aliases | -Required? | false -Position? | named -Default Value | chocolatey command line -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Get-WebHeaders|HelpersGetWebHeaders]] - * [[Get-ChocolateyWebFile|HelpersGetChocolateyWebFile]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-WebFileName -Full`. - -View the source for [Get-WebFileName](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-WebFileName.ps1) diff --git a/docs/generated/HelpersGetWebHeaders.md b/docs/generated/HelpersGetWebHeaders.md deleted file mode 100644 index 77fe5c16aa..0000000000 --- a/docs/generated/HelpersGetWebHeaders.md +++ /dev/null @@ -1,90 +0,0 @@ -# Get-WebHeaders - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-WebHeaders.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Gets the request/response headers for a url. - -## Syntax - -~~~powershell -Get-WebHeaders ` - [-Url <String>] ` - [-UserAgent <String>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This is a low-level function that is used by Chocolatey to get the -headers for a request/response to better help when getting and -validating internet resources. - -## Notes - -Not recommended for use in package scripts. - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Url [<String>] -This is the url to get a request/response from. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -UserAgent [<String>] -The user agent to use as part of the request. Defaults to 'chocolatey -command line'. - -Property | Value ----------------------- | ----------------------- -Aliases | -Required? | false -Position? | 2 -Default Value | chocolatey command line -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Get-ChocolateyWebFile|HelpersGetChocolateyWebFile]] - * [[Get-WebFileName|HelpersGetWebFileName]] - * [[Get-WebFile|HelpersGetWebFile]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-WebHeaders -Full`. - -View the source for [Get-WebHeaders](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Get-WebHeaders.ps1) diff --git a/docs/generated/HelpersInstallBinFile.md b/docs/generated/HelpersInstallBinFile.md deleted file mode 100644 index 26b7bcdd6c..0000000000 --- a/docs/generated/HelpersInstallBinFile.md +++ /dev/null @@ -1,133 +0,0 @@ -# Install-BinFile - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-BinFile.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Creates a shim (or batch redirect) for a file that is on the PATH. - -## Syntax - -~~~powershell -Install-BinFile ` - -Name <String> ` - -Path <String> ` - [-UseStart] ` - [-Command <String>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Chocolatey installs have the folder `$($env:ChocolateyInstall)\bin` -included in the PATH environment variable. Chocolatey automatically -shims executables in package folders that are not explicitly ignored, -putting them into the bin folder (and subsequently onto the PATH). - -When you have other files you want to shim to add them to the PATH or -if you want to handle the shimming explicitly, use this function. - -If you do use this function, ensure you also add `Uninstall-BinFile` to -your `chocolateyUninstall.ps1` script as Chocolatey will not -automatically clean up shims created with this function. - -## Notes - -Not normally needed for exe files in the package folder, those are -automatically discovered and added as shims after the install script -completes. - -## Aliases - -`Add-BinFile` -`Generate-BinFile` - - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Name <String> -The name of the redirect file, will have .exe appended to it. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -Path <String> -The path to the original file. Can be relative from -`$($env:ChocolateyInstall)\bin` back to your file or a full path to the -file. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -UseStart -This should be passed if the shim should not wait on the action to -complete. This is usually the case with GUI apps, you don't want the -command shell blocked waiting for the GUI app to be shut back down. - -Property | Value ----------------------- | ----- -Aliases | isGui -Required? | false -Position? | named -Default Value | False -Accept Pipeline Input? | false - -### -Command [<String>] -OPTIONAL - This is any additional command arguments you want passed -every time to the command. This is not normally used, but may be -necessary if you are calling something and then your application. For -example if you are calling Java with your JAR, the command would be the -JAR file plus any other options to start Java appropriately. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Uninstall-BinFile|HelpersUninstallBinFile]] - * [[Install-ChocolateyShortcut|HelpersInstallChocolateyShortcut]] - * [[Install-ChocolateyPath|HelpersInstallChocolateyPath]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-BinFile -Full`. - -View the source for [Install-BinFile](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-BinFile.ps1) diff --git a/docs/generated/HelpersInstallChocolateyDesktopLink.md b/docs/generated/HelpersInstallChocolateyDesktopLink.md deleted file mode 100644 index d2aa342144..0000000000 --- a/docs/generated/HelpersInstallChocolateyDesktopLink.md +++ /dev/null @@ -1,94 +0,0 @@ -# Install-ChocolateyDesktopLink - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyDesktopLink.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -DEPRECATED - This adds a shortcut on the desktop to the specified file path. - -## Syntax - -~~~powershell -Install-ChocolateyDesktopLink ` - -TargetFilePath <String> ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Determines the desktop folder and creates a shortcut to the specified -file path. Will not throw errors if it fails. - -It is recommended you use `Install-ChocolateyShorctut` instead of this -method as this has been deprecated. - -## Notes - -Deprecated in favor of [[`Install-ChocolateyShortcut`|HelpersInstallChocolateyShortcut]]. -If this errors, such as it will if being installed under the local -SYSTEM account, it will display a warning instead of failing a package -installation. - -Will not throw an error if it fails. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell - -# This will create a new Desktop Shortcut pointing at the NHibernate -# Profiler exe. -Install-ChocolateyDesktopLink -TargetFilePath "C:\tools\NHibernatProfiler\nhprof.exe" -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -TargetFilePath <String> -This is the location to the application/executable file that you want to -add a shortcut to on the desktop. This is mandatory. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyShortcut|HelpersInstallChocolateyShortcut]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-ChocolateyDesktopLink -Full`. - -View the source for [Install-ChocolateyDesktopLink](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyDesktopLink.ps1) diff --git a/docs/generated/HelpersInstallChocolateyEnvironmentVariable.md b/docs/generated/HelpersInstallChocolateyEnvironmentVariable.md deleted file mode 100644 index 770de2d82f..0000000000 --- a/docs/generated/HelpersInstallChocolateyEnvironmentVariable.md +++ /dev/null @@ -1,146 +0,0 @@ -# Install-ChocolateyEnvironmentVariable - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyEnvironmentVariable.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -**NOTE:** Administrative Access Required when `-VariableType 'Machine'.` - -Creates a persistent environment variable. - -## Syntax - -~~~powershell -Install-ChocolateyEnvironmentVariable ` - [-VariableName <String>] ` - [-VariableValue <String>] ` - [-VariableType {Process | User | Machine}] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Install-ChocolateyEnvironmentVariable creates an environment variable -with the specified name and value. The variable is persistent and -will remain after reboots and across multiple PowerShell and command -line sessions. The variable can be scoped either to the User or to -the Machine. If Machine level scoping is specified, the command is -elevated to an administrative session. - -## Notes - -This command will assert UAC/Admin privileges on the machine when -`-VariableType Machine`. - -This will add the environment variable to the current session. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell - -# Creates a User environment variable "JAVA_HOME" pointing to -# "d:\oracle\jdk\bin". -Install-ChocolateyEnvironmentVariable "JAVA_HOME" "d:\oracle\jdk\bin" -~~~ - -**EXAMPLE 2** - -~~~powershell - -# Creates a User environment variable "_NT_SYMBOL_PATH" pointing to -# "symsrv*symsrv.dll*f:\localsymbols*http://msdl.microsoft.com/download/symbols". -# The command will be elevated to admin priviledges. -Install-ChocolateyEnvironmentVariable ` - -VariableName "_NT_SYMBOL_PATH" ` - -VariableValue "symsrv*symsrv.dll*f:\localsymbols*http://msdl.microsoft.com/download/symbols" ` - -VariableType Machine -~~~ - -**EXAMPLE 3** - -~~~powershell - -# Remove an environment variable -Install-ChocolateyEnvironmentVariable -VariableName 'bob' -VariableValue $null -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -VariableName [<String>] -The name or key of the environment variable - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -VariableValue [<String>] -A string value assigned to the above name. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -VariableType -Specifies whether this variable is to be accesible at either the -individual user level or at the Machine level. - - -Valid options: Process, User, Machine - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | User -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Uninstall-ChocolateyEnvironmentVariable|HelpersUninstallChocolateyEnvironmentVariable]] - * [[Get-EnvironmentVariable|HelpersGetEnvironmentVariable]] - * [[Set-EnvironmentVariable|HelpersSetEnvironmentVariable]] - * [[Install-ChocolateyPath|HelpersInstallChocolateyPath]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-ChocolateyEnvironmentVariable -Full`. - -View the source for [Install-ChocolateyEnvironmentVariable](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyEnvironmentVariable.ps1) diff --git a/docs/generated/HelpersInstallChocolateyExplorerMenuItem.md b/docs/generated/HelpersInstallChocolateyExplorerMenuItem.md deleted file mode 100644 index 2fade03693..0000000000 --- a/docs/generated/HelpersInstallChocolateyExplorerMenuItem.md +++ /dev/null @@ -1,149 +0,0 @@ -# Install-ChocolateyExplorerMenuItem - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyExplorerMenuItem.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -**NOTE:** Administrative Access Required. - -Creates a windows explorer context menu item that can be associated with -a command - -## Syntax - -~~~powershell -Install-ChocolateyExplorerMenuItem ` - -MenuKey <String> ` - [-MenuLabel <String>] ` - [-Command <String>] ` - [-Type <String>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Install-ChocolateyExplorerMenuItem can add an entry in the context menu -of Windows Explorer. The menu item is given a text label and a command. -The command can be any command accepted on the windows command line. The -menu item can be applied to either folder items or file items. - -Because this command accesses and edits the root class registry node, it -will be elevated to admin. - -## Notes - -This command will assert UAC/Admin privileges on the machine. - -Chocolatey will automatically add the path of the file or folder clicked -to the command. This is done simply by appending a %1 to the end of the -command. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell - -# This will create a context menu item in Windows Explorer when any file -# is right clicked. The menu item will appear with the text "Open with -# Sublime Text 2" and will invoke sublime text 2 when selected. -$sublimeDir = (Get-ChildItem $env:ALLUSERSPROFILE\chocolatey\lib\sublimetext* | select $_.last) -$sublimeExe = "$sublimeDir\tools\sublime_text.exe" -Install-ChocolateyExplorerMenuItem "sublime" "Open with Sublime Text 2" $sublimeExe -~~~ - -**EXAMPLE 2** - -~~~powershell - -# This will create a context menu item in Windows Explorer when any -# folder is right clicked. The menu item will appear with the text -# "Open with Sublime Text 2" and will invoke sublime text 2 when selected. -$sublimeDir = (Get-ChildItem $env:ALLUSERSPROFILE\chocolatey\lib\sublimetext* | select $_.last) -$sublimeExe = "$sublimeDir\tools\sublime_text.exe" -Install-ChocolateyExplorerMenuItem "sublime" "Open with Sublime Text 2" $sublimeExe "directory" -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -MenuKey <String> -A unique string to identify this menu item in the registry - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -MenuLabel [<String>] -The string that will be displayed in the context menu - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -Command [<String>] -A command line command that will be invoked when the menu item is -selected - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### -Type [<String>] -Specifies if the menu item should be applied to a folder or a file - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 4 -Default Value | file -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyShortcut|HelpersInstallChocolateyShortcut]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-ChocolateyExplorerMenuItem -Full`. - -View the source for [Install-ChocolateyExplorerMenuItem](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyExplorerMenuItem.ps1) diff --git a/docs/generated/HelpersInstallChocolateyFileAssociation.md b/docs/generated/HelpersInstallChocolateyFileAssociation.md deleted file mode 100644 index 6ef18708da..0000000000 --- a/docs/generated/HelpersInstallChocolateyFileAssociation.md +++ /dev/null @@ -1,99 +0,0 @@ -# Install-ChocolateyFileAssociation - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyFileAssociation.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -**NOTE:** Administrative Access Required. - -Creates an association between a file extension and a executable. - -## Syntax - -~~~powershell -Install-ChocolateyFileAssociation ` - -Extension <String> ` - -Executable <String> ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Install-ChocolateyFileAssociation can associate a file extension -with a downloaded application. Once this command has created an -association, all invocations of files with the specified extension -will be opened via the executable specified. - -## Notes - -This command will assert UAC/Admin privileges on the machine. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell - -# This will create an association between Sublime Text 2 and all .txt -# files. Any .txt file opened will by default open with Sublime Text 2. -$sublimeDir = (Get-ChildItem $env:ALLUSERSPROFILE\chocolatey\lib\sublimetext* | select $_.last) -$sublimeExe = "$sublimeDir\tools\sublime_text.exe" -Install-ChocolateyFileAssociation ".txt" $sublimeExe -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Extension <String> -The file extension to be associated. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -Executable <String> -The path to the application's executable to be associated. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-ChocolateyFileAssociation -Full`. - -View the source for [Install-ChocolateyFileAssociation](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyFileAssociation.ps1) diff --git a/docs/generated/HelpersInstallChocolateyInstallPackage.md b/docs/generated/HelpersInstallChocolateyInstallPackage.md deleted file mode 100644 index c9ec0e26a0..0000000000 --- a/docs/generated/HelpersInstallChocolateyInstallPackage.md +++ /dev/null @@ -1,310 +0,0 @@ -# Install-ChocolateyInstallPackage - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyInstallPackage.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -**NOTE:** Administrative Access Required. - -Installs software into "Programs and Features". Use -Install-ChocolateyPackage when software must be downloaded first. - -## Syntax - -~~~powershell -Install-ChocolateyInstallPackage ` - -PackageName <String> ` - [-FileType <String>] ` - [-SilentArgs <String[]>] ` - [-File <String>] ` - [-File64 <String>] ` - [-ValidExitCodes <Object>] ` - [-UseOnlyPackageSilentArguments] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This will run an installer (local file) on your machine. - -## Notes - -This command will assert UAC/Admin privileges on the machine. - -If you are embedding files into a package, ensure that you have the -rights to redistribute those files if you are sharing this package -publicly (like on the [community feed](https://chocolatey.org/packages)). Otherwise, please use -Install-ChocolateyPackage to download those resources from their -official distribution points. - -This is a native installer wrapper function. A "true" package will -contain all the run time files and not an installer. That could come -pre-zipped and require unzipping in a PowerShell script. Chocolatey -works best when the packages contain the software it is managing. Most -software in the Windows world comes as installers and Chocolatey -understands how to work with that, hence this wrapper function. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell - -$packageName= 'bob' -$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" -$fileLocation = Join-Path $toolsDir 'INSTALLER_EMBEDDED_IN_PACKAGE' - -$packageArgs = @{ - packageName = $packageName - fileType = 'msi' - file = $fileLocation - silentArgs = "/qn /norestart" - validExitCodes= @(0, 3010, 1641) - softwareName = 'Bob*' -} - -Install-ChocolateyInstallPackage @packageArgs -~~~ - -**EXAMPLE 2** - -~~~powershell - -$packageArgs = @{ - packageName = 'bob' - fileType = 'exe' - file = '\\SHARE_LOCATION\to\INSTALLER_FILE' - silentArgs = "/S" - validExitCodes= @(0) - softwareName = 'Bob*' -} - -Install-ChocolateyInstallPackage @packageArgs -~~~ - -**EXAMPLE 3** - -~~~powershell - -$packageName= 'bob' -$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" -$fileLocation = Join-Path $toolsDir 'someinstaller.msi' - -$packageArgs = @{ - packageName = $packageName - fileType = 'msi' - file = $fileLocation - silentArgs = "/qn /norestart MSIPROPERTY=`"true`"" - validExitCodes= @(0, 3010, 1641) - softwareName = 'Bob*' -} - -Install-ChocolateyInstallPackage @packageArgs -~~~ - -**EXAMPLE 4** - -~~~powershell - -$packageName= 'bob' -$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" -$fileLocation = Join-Path $toolsDir 'someinstaller.msi' -$mstFileLocation = Join-Path $toolsDir 'transform.mst' - -$packageArgs = @{ - packageName = $packageName - fileType = 'msi' - file = $fileLocation - silentArgs = "/qn /norestart TRANSFORMS=`"$mstFileLocation`"" - validExitCodes= @(0, 3010, 1641) - softwareName = 'Bob*' -} - -Install-ChocolateyInstallPackage @packageArgs -~~~ - -**EXAMPLE 5** - -~~~powershell -Install-ChocolateyInstallPackage 'bob' 'exe' '/S' "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)\bob.exe" - -~~~ - -**EXAMPLE 6** - -~~~powershell - -Install-ChocolateyInstallPackage -PackageName 'bob' -FileType 'exe' ` - -SilentArgs '/S' ` - -File "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)\bob.exe" ` - -ValidExitCodes @(0) -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -PackageName <String> -The name of the package - while this is an arbitrary value, it's -recommended that it matches the package id. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -FileType [<String>] -This is the extension of the file. This can be 'exe', 'msi', or 'msu'. -[Licensed editions](https://chocolatey.org/compare) of Chocolatey use this to automatically determine -silent arguments. If this is not provided, Chocolatey will -automatically determine this using the downloaded file's extension. - -Property | Value ----------------------- | -------------------------- -Aliases | installerType, installType -Required? | false -Position? | 2 -Default Value | exe -Accept Pipeline Input? | false - -### -SilentArgs [<String[]>] -OPTIONAL - These are the parameters to pass to the native installer, -including any arguments to make the installer silent/unattended. -Pro/Business Editions of Chocolatey will automatically determine the -installer type and merge the arguments with what is provided here. - -Try any of the to get the silent installer - -`/s /S /q /Q /quiet /silent /SILENT /VERYSILENT`. With msi it is always -`/quiet`. Please pass it in still but it will be overridden by -Chocolatey to `/quiet`. If you don't pass anything it could invoke the -installer with out any arguments. That means a nonsilent installer. - -Please include the `notSilent` tag in your Chocolatey package if you -are not setting up a silent/unattended package. Please note that if you -are submitting to the [community repository](https://chocolatey.org/packages), it is nearly a requirement -for the package to be completely unattended. - -When you are using this with an MSI, it will set up the arguments as -follows: `"C:\Full\Path\To\msiexec.exe" /i "$fileFullPath" $silentArgs`, -where `$fileFullPath` is `$file` or `$file64`, depending on what has been -decided to be used. Previous to 0.10.4, it will be just `$file` as -passing `$file64` would not have been available yet. - -When you use this with MSU, it is similar to MSI above in that it finds -the right executable to run. - -When you use this with executable installers, the `$fileFullPath` will -be `$file` (or `$file64` starting with 0.10.4+) and expects to be a full -path to the file. If the file is in the package, see the parameters for -"File" and "File64" to determine how you can get that path at runtime in -a deterministic way. SilentArgs is everything you call against that -file, as in `"$fileFullPath" $silentArgs"`. An example would be -`"c:\path\setup.exe" /S`, where `$fileFullPath = "c:\path\setup.exe"` -and `$silentArgs = "/S"`. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### -File [<String>] -Full file path to native installer to run. If embedding in the package, -you can get it to the path with -`"$(Split-Path -parent $MyInvocation.MyCommand.Definition)\\INSTALLER_FILE"` - -In 0.10.1+, `FileFullPath` is an alias for File. - -This can be a 32-bit or 64-bit file. This is mandatory in earlier versions -of Chocolatey, but optional if File64 has been provided. - -Property | Value ----------------------- | ------------ -Aliases | fileFullPath -Required? | false -Position? | 4 -Default Value | -Accept Pipeline Input? | false - -### -File64 [<String>] -Full file path to a 64-bit native installer to run. Available in 0.10.4+. -If embedding in the package, you can get it to the path with -`"$(Split-Path -parent $MyInvocation.MyCommand.Definition)\\INSTALLER_FILE"` - -Provide this when you want to provide both 32-bit and 64-bit -installers or explicitly only a 64-bit installer (which will cause a package -install failure on 32-bit systems). - -Property | Value ----------------------- | -------------- -Aliases | fileFullPath64 -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -ValidExitCodes [<Object>] -Array of exit codes indicating success. Defaults to `@(0)`. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | @(0) -Accept Pipeline Input? | false - -### -UseOnlyPackageSilentArguments -Do not allow choco to provide/merge additional silent arguments and -only use the ones available with the package. Available in 0.9.10+. - -Property | Value ----------------------- | ------------------------ -Aliases | useOnlyPackageSilentArgs -Required? | false -Position? | named -Default Value | False -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyPackage|HelpersInstallChocolateyPackage]] - * [[Uninstall-ChocolateyPackage|HelpersUninstallChocolateyPackage]] - * [[Get-UninstallRegistryKey|HelpersGetUninstallRegistryKey]] - * [[Start-ChocolateyProcessAsAdmin|HelpersStartChocolateyProcessAsAdmin]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-ChocolateyInstallPackage -Full`. - -View the source for [Install-ChocolateyInstallPackage](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyInstallPackage.ps1) diff --git a/docs/generated/HelpersInstallChocolateyPackage.md b/docs/generated/HelpersInstallChocolateyPackage.md deleted file mode 100644 index 89ee3a91e4..0000000000 --- a/docs/generated/HelpersInstallChocolateyPackage.md +++ /dev/null @@ -1,520 +0,0 @@ -# Install-ChocolateyPackage - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyPackage.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -**NOTE:** Administrative Access Required. - -Installs software into "Programs and Features" based on a remote file -download. Use Install-ChocolateyInstallPackage when local or embedded -file. - -Building packages for an organization or for use internally? You want to -use Install-ChocolateyINSTALLPackage instead of this method (see links -below). - -## Syntax - -~~~powershell -Install-ChocolateyPackage ` - -PackageName <String> ` - [-FileType <String>] ` - [-SilentArgs <String[]>] ` - [-Url <String>] ` - [-Url64bit <String>] ` - [-ValidExitCodes <Object>] ` - [-Checksum <String>] ` - [-ChecksumType <String>] ` - [-Checksum64 <String>] ` - [-ChecksumType64 <String>] ` - [-Options <Hashtable>] ` - [-File <String>] ` - [-File64 <String>] ` - [-UseOnlyPackageSilentArguments] ` - [-UseOriginalLocation] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This will download a native installer from a url and install it on your -machine. Has error handling built in. - -If you are embedding the file(s) directly in the package (or do not need -to download a file first), use Install-ChocolateyInstallPackage instead. - -Building packages for an organization or for use internally? You want to -use Install-ChocolateyINSTALLPackage instead of this method -(see links below). - -## Notes - -This command will assert UAC/Admin privileges on the machine. - -This is a native installer wrapper function. A "true" package will -contain all the run time files and not an installer. That could come -pre-zipped and require unzipping in a PowerShell script. Chocolatey -works best when the packages contain the software it is managing. Most -software in the Windows world comes as installers and Chocolatey -understands how to work with that, hence this wrapper function. - -Chocolatey works best when the packages contain the software it is -managing and doesn't require downloads. However most software in the -Windows world requires redistribution rights and when sharing packages -publicly (like on the [community feed](https://chocolatey.org/packages)), maintainers may not have those -aforementioned rights. Chocolatey understands how to work with that, -hence this function. You are not subject to this limitation with -internal packages. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell - -$packageName= 'bob' -$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" -$url = 'https://somewhere.com/file.msi' -$url64 = 'https://somewhere.com/file-x64.msi' - -$packageArgs = @{ - packageName = $packageName - fileType = 'msi' - url = $url - url64bit = $url64 - silentArgs = "/qn /norestart" - validExitCodes= @(0, 3010, 1641) - softwareName = 'Bob*' - checksum = '12345' - checksumType = 'sha256' - checksum64 = '123356' - checksumType64= 'sha256' -} - -Install-ChocolateyPackage @packageArgs -~~~ - -**EXAMPLE 2** - -~~~powershell - -$packageName= 'bob' -$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" -$url = 'https://somewhere.com/file.msi' -$url64 = 'https://somewhere.com/file-x64.msi' - - -$packageArgs = @{ - packageName = $packageName - fileType = 'msi' - url = $url - url64bit = $url64 - silentArgs = "/qn /norestart MSIPROPERTY=`"true`"" - validExitCodes= @(0, 3010, 1641) - softwareName = 'Bob*' - checksum = '12345' - checksumType = 'sha256' - checksum64 = '123356' - checksumType64= 'sha256' -} - -Install-ChocolateyPackage @packageArgs -~~~ - -**EXAMPLE 3** - -~~~powershell - -$packageName= 'bob' -$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" -$url = 'https://somewhere.com/file.msi' -$url64 = 'https://somewhere.com/file-x64.msi' -$urlTransform = 'https://somewhere.com/file.mst' -$mstFileLocation = Join-Path $toolsDir 'transform.mst' - -Get-ChocolateyWebFile -PackageName 'bob' ` - -Url $urlTransform -FileFullPath $mstFileLocation ` - -Checksum '1234' -ChecksumType 'sha256' - -$packageArgs = @{ - packageName = $packageName - fileType = 'msi' - file = $fileLocation - silentArgs = "/qn /norestart TRANSFORMS=`"$mstFileLocation`"" - validExitCodes= @(0, 3010, 1641) - softwareName = 'Bob*' -} - -Install-ChocolateyInstallPackage @packageArgs -~~~ - -**EXAMPLE 4** - -~~~powershell - -Install-ChocolateyPackage 'StExBar' 'msi' '/quiet' ` - 'http://stexbar.googlecode.com/files/StExBar-1.8.3.msi' ` - 'http://stexbar.googlecode.com/files/StExBar64-1.8.3.msi' -~~~ - -**EXAMPLE 5** - -~~~powershell - -Install-ChocolateyPackage 'mono' 'exe' '/SILENT' ` - 'http://somehwere/something.exe' -ValidExitCodes @(0,21) -~~~ - -**EXAMPLE 6** - -~~~powershell - -Install-ChocolateyPackage 'ruby.devkit' 'exe' '/SILENT' ` - 'http://cdn.rubyinstaller.org/archives/devkits/DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe' ` - 'http://cdn.rubyinstaller.org/archives/devkits/DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe' ` - -checksum '9383f12958aafc425923e322460a84de' -checksumType 'md5' ` - -checksum64 'ce99d873c1acc8bffc639bd4e764b849' -~~~ - -**EXAMPLE 7** - -~~~powershell -Install-ChocolateyPackage 'bob' 'exe' '/S' 'https://somewhere/bob.exe' 'https://somewhere/bob-x64.exe' - -~~~ - -**EXAMPLE 8** - -~~~powershell - -$options = -@{ - Headers = @{ - Accept = 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'; - 'Accept-Charset' = 'ISO-8859-1,utf-8;q=0.7,*;q=0.3'; - 'Accept-Language' = 'en-GB,en-US;q=0.8,en;q=0.6'; - Cookie = 'requiredinfo=info'; - Referer = 'https://somelocation.com/'; - } -} - -Install-ChocolateyPackage -PackageName 'package' -FileType 'exe' -SilentArgs '/S' 'https://somelocation.com/thefile.exe' -Options $options -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -PackageName <String> -The name of the package - while this is an arbitrary value, it's -recommended that it matches the package id. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -FileType [<String>] -This is the extension of the file. This can be 'exe', 'msi', or 'msu'. -[Licensed editions](https://chocolatey.org/compare) of Chocolatey use this to automatically determine -silent arguments. If this is not provided, Chocolatey will -automatically determine this using the downloaded file's extension. - -Property | Value ----------------------- | -------------------------- -Aliases | installerType, installType -Required? | false -Position? | 2 -Default Value | exe -Accept Pipeline Input? | false - -### -SilentArgs [<String[]>] -OPTIONAL - These are the parameters to pass to the native installer, -including any arguments to make the installer silent/unattended. -[Licensed editions](https://chocolatey.org/compare) of Chocolatey will automatically determine the -installer type and merge the arguments with what is provided here. - -Try any of the to get the silent (unattended) installer - -`/s /S /q /Q /quiet /silent /SILENT /VERYSILENT`. With msi it is always -`/quiet`. Please pass it in still but it will be overridden by -Chocolatey to `/quiet`. If you don't pass anything it could invoke the -installer with out any arguments. That means a nonsilent installer. - -Please include the `notSilent` tag in your Chocolatey package if you -are not setting up a silent/unattended package. Please note that if you -are submitting to the [community repository](https://chocolatey.org/packages), it is nearly a requirement -for the package to be completely unattended. - -When you are using this with an MSI, it will set up the arguments as -follows: -`"C:\Full\Path\To\msiexec.exe" /i "$downloadedFileFullPath" $silentArgs`, -where `$downloadedfileFullPath` is `$url` or `$url64`, depending on what -has been decided to be used. - -When you use this with MSU, it is similar to MSI above in that it finds -the right executable to run. - -When you use this with executable installers, the -`$downloadedFileFullPath` will also be `$url`/`$url64` SilentArgs is -everything you call against that file, as in -`"$fileFullPath" $silentArgs"`. An example would be -`"c:\path\setup.exe" /S`, where -`$downloadedfileFullPath = "c:\path\setup.exe"` and `$silentArgs = "/S"`. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### -Url [<String>] -This is the 32 bit url to download the resource from. This resource can -be used on 64 bit systems when a package has both a Url and Url64bit -specified if a user passes `--forceX86`. If there is only a 64 bit url -available, please remove do not use the paramter (only use Url64bit). -Will fail on 32bit systems if missing or if a user attempts to force -a 32 bit installation on a 64 bit system. - -Prefer HTTPS when available. Can be HTTP, FTP, or File URIs. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 4 -Default Value | -Accept Pipeline Input? | false - -### -Url64bit [<String>] -OPTIONAL - If there is a 64 bit resource available, use this -parameter. Chocolatey will automatically determine if the user is -running a 64 bit OS or not and adjust accordingly. Please note that -the 32 bit url will be used in the absence of this. This parameter -should only be used for 64 bit native software. If the original Url -contains both (which is quite rare), set this to '$url' Otherwise remove -this parameter. - -Prefer HTTPS when available. Can be HTTP, FTP, or File URIs. - -Property | Value ----------------------- | ----- -Aliases | url64 -Required? | false -Position? | 5 -Default Value | -Accept Pipeline Input? | false - -### -ValidExitCodes [<Object>] -Array of exit codes indicating success. Defaults to `@(0)`. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | @(0) -Accept Pipeline Input? | false - -### -Checksum [<String>] -The checksum hash value of the Url resource. This allows a checksum to -be validated for files that are not local. The checksum type is covered -by ChecksumType. - -**NOTE:** Checksums in packages are meant as a measure to validate the -originally intended file that was used in the creation of a package is -the same file that is received at a future date. Since this is used for -other steps in the process related to the [community repository](https://chocolatey.org/packages), it -ensures that the file a user receives is the same file a maintainer -and a moderator (if applicable), plus any moderation review has -intended for you to receive with this package. If you are looking at a -remote source that uses the same url for updates, you will need to -ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) -to help provide that functionality. - -**NOTE:** To determine checksums, you can get that from the original -site if provided. You can also use the [checksum tool available on -the [community feed](https://chocolatey.org/packages)](https://chocolatey.org/packages/checksum) (`choco install checksum`) -and use it e.g. `checksum -t sha256 -f path\to\file`. Ensure you -provide checksums for all remote resources used. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -ChecksumType [<String>] -The type of checkum that the file is validated with - valid -values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to 'md5'. - -MD5 is not recommended as certain organizations need to use FIPS -compliant algorithms for hashing - see -https://support.microsoft.com/en-us/kb/811833 for more details. - -The recommendation is to use at least SHA256. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -Checksum64 [<String>] -OPTIONAL if no Url64bit - The checksum hash value of the Url64bit -resource. This allows a checksum to be validated for files that are not -local. The checksum type is covered by ChecksumType64. - -**NOTE:** Checksums in packages are meant as a measure to validate the -originally intended file that was used in the creation of a package is -the same file that is received at a future date. Since this is used for -other steps in the process related to the [community repository](https://chocolatey.org/packages), it -ensures that the file a user receives is the same file a maintainer -and a moderator (if applicable), plus any moderation review has -intended for you to receive with this package. If you are looking at a -remote source that uses the same url for updates, you will need to -ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) -to help provide that functionality. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -ChecksumType64 [<String>] -OPTIONAL - The type of checkum that the file is validated with - valid -values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to -ChecksumType parameter value. - -MD5 is not recommended as certain organizations need to use FIPS -compliant algorithms for hashing - see -https://support.microsoft.com/en-us/kb/811833 for more details. - -The recommendation is to use at least SHA256. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -Options [<Hashtable>] -OPTIONAL - Specify custom headers. Available in 0.9.10+. - -Property | Value ----------------------- | -------------- -Aliases | -Required? | false -Position? | named -Default Value | @{Headers=@{}} -Accept Pipeline Input? | false - -### -File [<String>] -Will be used for Url if Url is empty. Available in 0.10.7+. - -This parameter provides compatibility, but should not be used directly -and not with the community package repository until January 2018. - -Property | Value ----------------------- | ------------ -Aliases | fileFullPath -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -File64 [<String>] -Will be used for Url64bit if Url64bit is empty. Available in 0.10.7+. - -This parameter provides compatibility, but should not be used directly -and not with the community package repository until January 2018. - -Property | Value ----------------------- | -------------- -Aliases | fileFullPath64 -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -UseOnlyPackageSilentArguments -Do not allow choco to provide/merge additional silent arguments and only -use the ones available with the package. Available in 0.9.10+. - -Property | Value ----------------------- | ------------------------ -Aliases | useOnlyPackageSilentArgs -Required? | false -Position? | named -Default Value | False -Accept Pipeline Input? | false - -### -UseOriginalLocation -Do not download the resources. This is typically passed if Url/Url64bit -are pointed to local files or files on a share and those files should -be used in place. Available in 0.10.1+. - -NOTE: You can also use `Install-ChocolateyInstallPackage` for the same -functionality (see links). - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | False -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Get-ChocolateyWebFile|HelpersGetChocolateyWebFile]] - * [[Install-ChocolateyInstallPackage|HelpersInstallChocolateyInstallPackage]] - * [[Get-UninstallRegistryKey|HelpersGetUninstallRegistryKey]] - * [[Install-ChocolateyZipPackage|HelpersInstallChocolateyZipPackage]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-ChocolateyPackage -Full`. - -View the source for [Install-ChocolateyPackage](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyPackage.ps1) diff --git a/docs/generated/HelpersInstallChocolateyPath.md b/docs/generated/HelpersInstallChocolateyPath.md deleted file mode 100644 index 52ee8da7e4..0000000000 --- a/docs/generated/HelpersInstallChocolateyPath.md +++ /dev/null @@ -1,115 +0,0 @@ -# Install-ChocolateyPath - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyPath.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -**NOTE:** Administrative Access Required when `-PathType 'Machine'.` - -This puts a directory to the PATH environment variable. - -## Syntax - -~~~powershell -Install-ChocolateyPath ` - -PathToInstall <String> ` - [-PathType {Process | User | Machine}] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Looks at both PATH environment variables to ensure a path variable -correctly shows up on the right PATH. - -## Notes - -This command will assert UAC/Admin privileges on the machine if -`-PathType 'Machine'`. - -This is used when the application/tool is not being linked by Chocolatey -(not in the lib folder). - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell -Install-ChocolateyPath -PathToInstall "$($env:SystemDrive)\tools\gittfs" - -~~~ - -**EXAMPLE 2** - -~~~powershell -Install-ChocolateyPath "$($env:SystemDrive)\Program Files\MySQL\MySQL Server 5.5\bin" -PathType 'Machine' - -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -PathToInstall <String> -The full path to a location to add / ensure is in the PATH. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -PathType -Which PATH to add it to. If specifying `Machine`, this requires admin -privileges to run correctly. - - -Valid options: Process, User, Machine - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 2 -Default Value | User -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyEnvironmentVariable|HelpersInstallChocolateyEnvironmentVariable]] - * [[Get-EnvironmentVariable|HelpersGetEnvironmentVariable]] - * [[Set-EnvironmentVariable|HelpersSetEnvironmentVariable]] - * [[Get-ToolsLocation|HelpersGetToolsLocation]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-ChocolateyPath -Full`. - -View the source for [Install-ChocolateyPath](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyPath.ps1) diff --git a/docs/generated/HelpersInstallChocolateyPinnedTaskBarItem.md b/docs/generated/HelpersInstallChocolateyPinnedTaskBarItem.md deleted file mode 100644 index b8b4fc5b36..0000000000 --- a/docs/generated/HelpersInstallChocolateyPinnedTaskBarItem.md +++ /dev/null @@ -1,83 +0,0 @@ -# Install-ChocolateyPinnedTaskBarItem - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyPinnedTaskBarItem.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Creates an item in the task bar linking to the provided path. - -## Syntax - -~~~powershell -Install-ChocolateyPinnedTaskBarItem ` - -TargetFilePath <String> ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - - -## Notes - -Does not work with SYSTEM, but does not error. It warns with the error -message. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell - -# This will create a Visual Studio task bar icon. -Install-ChocolateyPinnedTaskBarItem -TargetFilePath "${env:ProgramFiles(x86)}\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -TargetFilePath <String> -The path to the application that should be launched when clicking on the -task bar icon. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyShortcut|HelpersInstallChocolateyShortcut]] - * [[Install-ChocolateyExplorerMenuItem|HelpersInstallChocolateyExplorerMenuItem]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-ChocolateyPinnedTaskBarItem -Full`. - -View the source for [Install-ChocolateyPinnedTaskBarItem](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyPinnedTaskBarItem.ps1) diff --git a/docs/generated/HelpersInstallChocolateyPowershellCommand.md b/docs/generated/HelpersInstallChocolateyPowershellCommand.md deleted file mode 100644 index ca829f17f8..0000000000 --- a/docs/generated/HelpersInstallChocolateyPowershellCommand.md +++ /dev/null @@ -1,286 +0,0 @@ -# Install-ChocolateyPowershellCommand - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyPowershellCommand.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Installs a PowerShell Script as a command - -## Syntax - -~~~powershell -Install-ChocolateyPowershellCommand ` - [-PackageName <String>] ` - -PsFileFullPath <String> ` - [-Url <String>] ` - [-Url64bit <String>] ` - [-Checksum <String>] ` - [-ChecksumType <String>] ` - [-Checksum64 <String>] ` - [-ChecksumType64 <String>] ` - [-Options <Hashtable>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This will install a PowerShell script as a command on your system. Like -an executable can be run from a batch redirect, this will do the same, -calling PowerShell with this command and passing your arguments to it. -If you include a url, it will first download the PowerShell file. - -## Notes - -Chocolatey works best when the packages contain the software it is -managing and doesn't require downloads. However most software in the -Windows world requires redistribution rights and when sharing packages -publicly (like on the [community feed](https://chocolatey.org/packages)), maintainers may not have those -aforementioned rights. Chocolatey understands how to work with that, -hence this function. You are not subject to this limitation with -internal packages. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell - -$psFile = Join-Path $(Split-Path -Parent $MyInvocation.MyCommand.Definition) "Install-WindowsImage.ps1" -Install-ChocolateyPowershellCommand -PackageName 'installwindowsimage.powershell' -PSFileFullPath $psFile -~~~ - -**EXAMPLE 2** - -~~~powershell - -$psFile = Join-Path $(Split-Path -Parent $MyInvocation.MyCommand.Definition) ` - "Install-WindowsImage.ps1" -Install-ChocolateyPowershellCommand ` - -PackageName 'installwindowsimage.powershell' ` - -PSFileFullPath $psFile ` - -PSFileFullPath $psFile ` - -Url 'http://somewhere.com/downloads/Install-WindowsImage.ps1' -~~~ - -**EXAMPLE 3** - -~~~powershell - -$psFile = Join-Path $(Split-Path -Parent $MyInvocation.MyCommand.Definition) ` - "Install-WindowsImage.ps1" -Install-ChocolateyPowershellCommand ` - -PackageName 'installwindowsimage.powershell' ` - -PSFileFullPath $psFile ` - -Url 'http://somewhere.com/downloads/Install-WindowsImage.ps1' ` - -Url64 'http://somewhere.com/downloads/Install-WindowsImagex64.ps1' -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -PackageName [<String>] -The name of the package - while this is an arbitrary value, it's -recommended that it matches the package id. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -PsFileFullPath <String> -Full file path to PowerShell file to turn into a command. If embedding -it in the package next to the install script, the path will be like -`"$(Split-Path -parent $MyInvocation.MyCommand.Definition)\\Script.ps1"` - -In 0.10.6+, `File` and `FileFullPath` are aliases for PsFileFullPath. - -Property | Value ----------------------- | ------------------ -Aliases | file, fileFullPath -Required? | true -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -Url [<String>] -This is the 32 bit url to download the resource from. This resource can -be used on 64 bit systems when a package has both a Url and Url64bit -specified if a user passes `--forceX86`. If there is only a 64 bit url -available, please remove do not use this parameter (only use Url64bit). -Will fail on 32bit systems if missing or if a user attempts to force -a 32 bit installation on a 64 bit system. - -Prefer HTTPS when available. Can be HTTP, FTP, or File URIs. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### -Url64bit [<String>] -OPTIONAL - If there is a 64 bit resource available, use this -parameter. Chocolatey will automatically determine if the user is -running a 64 bit OS or not and adjust accordingly. Please note that -the 32 bit url will be used in the absence of this. This parameter -should only be used for 64 bit native software. If the original Url -contains both (which is quite rare), set this to '$url' Otherwise remove -this parameter. - -Prefer HTTPS when available. Can be HTTP, FTP, or File URIs. - -Property | Value ----------------------- | ----- -Aliases | url64 -Required? | false -Position? | 4 -Default Value | -Accept Pipeline Input? | false - -### -Checksum [<String>] -The checksum hash value of the Url resource. This allows a checksum to -be validated for files that are not local. The checksum type is covered -by ChecksumType. - -**NOTE:** Checksums in packages are meant as a measure to validate the -originally intended file that was used in the creation of a package is -the same file that is received at a future date. Since this is used for -other steps in the process related to the [community repository](https://chocolatey.org/packages), it -ensures that the file a user receives is the same file a maintainer -and a moderator (if applicable), plus any moderation review has -intended for you to receive with this package. If you are looking at a -remote source that uses the same url for updates, you will need to -ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) -to help provide that functionality. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -ChecksumType [<String>] -The type of checkum that the file is validated with - valid -values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to 'md5'. - -MD5 is not recommended as certain organizations need to use FIPS -compliant algorithms for hashing - see -https://support.microsoft.com/en-us/kb/811833 for more details. - -The recommendation is to use at least SHA256. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -Checksum64 [<String>] -OPTIONAL if no Url64bit - The checksum hash value of the Url64bit -resource. This allows a checksum to be validated for files that are not -local. The checksum type is covered by ChecksumType64. - -**NOTE:** Checksums in packages are meant as a measure to validate the -originally intended file that was used in the creation of a package is -the same file that is received at a future date. Since this is used for -other steps in the process related to the [community repository](https://chocolatey.org/packages), it -ensures that the file a user receives is the same file a maintainer -and a moderator (if applicable), plus any moderation review has -intended for you to receive with this package. If you are looking at a -remote source that uses the same url for updates, you will need to -ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) -to help provide that functionality. - -**NOTE:** To determine checksums, you can get that from the original -site if provided. You can also use the [checksum tool available on -the [community feed](https://chocolatey.org/packages)](https://chocolatey.org/packages/checksum) (`choco install checksum`) -and use it e.g. `checksum -t sha256 -f path\to\file`. Ensure you -provide checksums for all remote resources used. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -ChecksumType64 [<String>] -OPTIONAL - The type of checkum that the file is validated with - valid -values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to -ChecksumType parameter value. - -MD5 is not recommended as certain organizations need to use FIPS -compliant algorithms for hashing - see -https://support.microsoft.com/en-us/kb/811833 for more details. - -The recommendation is to use at least SHA256. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -Options [<Hashtable>] -OPTIONAL - Specify custom headers. Available in 0.9.10+. - -Property | Value ----------------------- | -------------- -Aliases | -Required? | false -Position? | named -Default Value | @{Headers=@{}} -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Get-ChocolateyWebFile|HelpersGetChocolateyWebFile]] - * [[Install-ChocolateyInstallPackage|HelpersInstallChocolateyInstallPackage]] - * [[Install-ChocolateyPackage|HelpersInstallChocolateyPackage]] - * [[Install-ChocolateyZipPackage|HelpersInstallChocolateyZipPackage]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-ChocolateyPowershellCommand -Full`. - -View the source for [Install-ChocolateyPowershellCommand](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyPowershellCommand.ps1) diff --git a/docs/generated/HelpersInstallChocolateyShortcut.md b/docs/generated/HelpersInstallChocolateyShortcut.md deleted file mode 100644 index d6445106b1..0000000000 --- a/docs/generated/HelpersInstallChocolateyShortcut.md +++ /dev/null @@ -1,231 +0,0 @@ -# Install-ChocolateyShortcut - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyShortcut.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Creates a shortcut - -## Syntax - -~~~powershell -Install-ChocolateyShortcut ` - -ShortcutFilePath <String> ` - -TargetPath <String> ` - [-WorkingDirectory <String>] ` - [-Arguments <String>] ` - [-IconLocation <String>] ` - [-Description <String>] ` - [-WindowStyle <Int32>] ` - [-RunAsAdmin] ` - [-PinToTaskbar] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This adds a shortcut, at the specified location, with the option to specify -a number of additional properties for the shortcut, such as Working Directory, -Arguments, Icon Location, and Description. - -## Notes - -If this errors, as it may if being run under the local SYSTEM account with -particular folder that SYSTEM doesn't have, it will display a warning instead -of failing a package installation. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell - -# This will create a new shortcut at the location of "C:\test.lnk" and -# link to the file located at "C:\text.exe" - -Install-ChocolateyShortcut -ShortcutFilePath "C:\test.lnk" -TargetPath "C:\test.exe" -~~~ - -**EXAMPLE 2** - -~~~powershell - -# This will create a new shortcut at the location of "C:\notepad.lnk" -# and link to the Notepad application. In addition, other properties -# are being set to specify the working directory, an icon to be used for -# the shortcut, along with a description and arguments. - -Install-ChocolateyShortcut ` - -ShortcutFilePath "C:\notepad.lnk" ` - -TargetPath "C:\Windows\System32\notepad.exe" ` - -WorkingDirectory "C:\" ` - -Arguments "C:\test.txt" ` - -IconLocation "C:\test.ico" ` - -Description "This is the description" -~~~ - -**EXAMPLE 3** - -~~~powershell - -# Creates a new notepad shortcut on the root of c: that starts -# notepad.exe as Administrator. Shortcut is also pinned to taskbar. -# These parameters are available in 0.9.10+. - -Install-ChocolateyShortcut ` - -ShortcutFilePath "C:\notepad.lnk" ` - -TargetPath "C:\Windows\System32\notepad.exe" ` - -WindowStyle 3 ` - -RunAsAdmin ` - -PinToTaskbar -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -ShortcutFilePath <String> -The full absolute path to where the shortcut should be created. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -TargetPath <String> -The full absolute path to the target for new shortcut. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -WorkingDirectory [<String>] -OPTIONAL - The full absolute path of the Working Directory that will be -used by the new shortcut. - -As of v0.10.12, the directory will be created unless it contains environment -variable expansion like `%AppData%\FooBar`. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### -Arguments [<String>] -OPTIONAL - Additonal arguments that should be passed along to the new -shortcut. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 4 -Default Value | -Accept Pipeline Input? | false - -### -IconLocation [<String>] -OPTIONAL- The full absolute path to an icon file to be used for the new -shortcut. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 5 -Default Value | -Accept Pipeline Input? | false - -### -Description [<String>] -OPTIONAL - A text description to be associated with the new description. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 6 -Default Value | -Accept Pipeline Input? | false - -### -WindowStyle [<Int32>] -OPTIONAL - Type of windows target application should open with. -Available in 0.9.10+. -0 = Hidden, 1 = Normal Size, 3 = Maximized, 7 - Minimized. -Full list table 3.9 here: https://technet.microsoft.com/en-us/library/ee156605.aspx - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 7 -Default Value | 0 -Accept Pipeline Input? | false - -### -RunAsAdmin -OPTIONAL - Set "Run As Administrator" checkbox for the created the -shortcut. Available in 0.9.10+. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | False -Accept Pipeline Input? | false - -### -PinToTaskbar -OPTIONAL - Pin the new shortcut to the taskbar. Available in 0.9.10+. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | False -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyDesktopLink|HelpersInstallChocolateyDesktopLink]] - * [[Install-ChocolateyExplorerMenuItem|HelpersInstallChocolateyExplorerMenuItem]] - * [[Install-ChocolateyPinnedTaskBarItem|HelpersInstallChocolateyPinnedTaskBarItem]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-ChocolateyShortcut -Full`. - -View the source for [Install-ChocolateyShortcut](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyShortcut.ps1) diff --git a/docs/generated/HelpersInstallChocolateyVsixPackage.md b/docs/generated/HelpersInstallChocolateyVsixPackage.md deleted file mode 100644 index fb932da763..0000000000 --- a/docs/generated/HelpersInstallChocolateyVsixPackage.md +++ /dev/null @@ -1,227 +0,0 @@ -# Install-ChocolateyVsixPackage - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyVsixPackage.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Downloads and installs a VSIX package for Visual Studio - -## Syntax - -~~~powershell -Install-ChocolateyVsixPackage ` - -PackageName <String> ` - [-VsixUrl <String>] ` - [-VsVersion <Int32>] ` - [-Checksum <String>] ` - [-ChecksumType <String>] ` - [-Options <Hashtable>] ` - [-File <String>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -VSIX packages are Extensions for the Visual Studio IDE. The Visual -Studio Gallery at http://visualstudiogallery.msdn.microsoft.com/ is the -public extension feed and hosts thousands of extensions. You can locate -a VSIX Url by finding the download link of Visual Studio extensions on -the Visual Studio Gallery. - -## Notes - -Chocolatey works best when the packages contain the software it is -managing and doesn't require downloads. However most software in the -Windows world requires redistribution rights and when sharing packages -publicly (like on the [community feed](https://chocolatey.org/packages)), maintainers may not have those -aforementioned rights. Chocolatey understands how to work with that, -hence this function. You are not subject to this limitation with -internal packages. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell - -# This downloads the AutoWrockTestable VSIX from the Visual Studio -# Gallery and installs it to the latest version of VS. - -Install-ChocolateyVsixPackage -PackageName "MyPackage" ` - -VsixUrl http://visualstudiogallery.msdn.microsoft.com/ea3a37c9-1c76-4628-803e-b10a109e7943/file/73131/1/AutoWrockTestable.vsix -~~~ - -**EXAMPLE 2** - -~~~powershell - -# This downloads the AutoWrockTestable VSIX from the Visual Studio -# Gallery and installs it to Visual Studio 2012 (v11.0). - -Install-ChocolateyVsixPackage -PackageName "MyPackage" ` - -VsixUrl http://visualstudiogallery.msdn.microsoft.com/ea3a37c9-1c76-4628-803e-b10a109e7943/file/73131/1/AutoWrockTestable.vsix ` - -VsVersion 11 -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -PackageName <String> -The name of the package - while this is an arbitrary value, it's -recommended that it matches the package id. - -In 0.10.4+, `Name` is an alias for PackageName. - -Property | Value ----------------------- | ----- -Aliases | name -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -VsixUrl [<String>] -The URL of the package to be installed. - -Prefer HTTPS when available. Can be HTTP, FTP, or File URIs. - -In 0.10.4+, `Url` is an alias for VsixUrl. - -Property | Value ----------------------- | ----- -Aliases | url -Required? | false -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -VsVersion [<Int32>] -The major version number of Visual Studio where the -package should be installed. This is optional. If not -specified, the most recent Visual Studio installation -will be targetted. - -NOTE: For Visual Studio 2015, the VsVersion is 14. It can be determined -by looking at the folders under Program Files / Program Files (x86). - -In 0.10.4+, `VisualStudioVersion` is an alias for VsVersion. - -Property | Value ----------------------- | ------------------- -Aliases | visualStudioVersion -Required? | false -Position? | 3 -Default Value | 0 -Accept Pipeline Input? | false - -### -Checksum [<String>] -The checksum hash value of the Url resource. This allows a checksum to -be validated for files that are not local. The checksum type is covered -by ChecksumType. - -**NOTE:** Checksums in packages are meant as a measure to validate the -originally intended file that was used in the creation of a package is -the same file that is received at a future date. Since this is used for -other steps in the process related to the [community repository](https://chocolatey.org/packages), it -ensures that the file a user receives is the same file a maintainer -and a moderator (if applicable), plus any moderation review has -intended for you to receive with this package. If you are looking at a -remote source that uses the same url for updates, you will need to -ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) -to help provide that functionality. - -**NOTE:** To determine checksums, you can get that from the original -site if provided. You can also use the [checksum tool available on -the [community feed](https://chocolatey.org/packages)](https://chocolatey.org/packages/checksum) (`choco install checksum`) -and use it e.g. `checksum -t sha256 -f path\to\file`. Ensure you -provide checksums for all remote resources used. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -ChecksumType [<String>] -The type of checkum that the file is validated with - valid -values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to 'md5'. - -MD5 is not recommended as certain organizations need to use FIPS -compliant algorithms for hashing - see -https://support.microsoft.com/en-us/kb/811833 for more details. - -The recommendation is to use at least SHA256. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -Options [<Hashtable>] -OPTIONAL - Specify custom headers. Available in 0.9.10+. - -Property | Value ----------------------- | -------------- -Aliases | -Required? | false -Position? | named -Default Value | @{Headers=@{}} -Accept Pipeline Input? | false - -### -File [<String>] -Will be used for VsixUrl if VsixUrl is empty. Available in 0.10.7+. - -This parameter provides compatibility, but should not be used directly -and not with the community package repository until January 2018. - -Property | Value ----------------------- | ------------ -Aliases | fileFullPath -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyPackage|HelpersInstallChocolateyPackage]] - * [[Install-ChocolateyInstallPackage|HelpersInstallChocolateyInstallPackage]] - * [[Install-ChocolateyZipPackage|HelpersInstallChocolateyZipPackage]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-ChocolateyVsixPackage -Full`. - -View the source for [Install-ChocolateyVsixPackage](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyVsixPackage.ps1) diff --git a/docs/generated/HelpersInstallChocolateyWindowsService.md b/docs/generated/HelpersInstallChocolateyWindowsService.md deleted file mode 100644 index 4d363c0ed5..0000000000 --- a/docs/generated/HelpersInstallChocolateyWindowsService.md +++ /dev/null @@ -1,180 +0,0 @@ -# Install-ChocolateyWindowsService - -**NOTE**: This function requires a Chocolatey for Business License to use. - - -Install-ChocolateyWindowsService [-Name] <string> [-ServiceExecutablePath] <string> [[-Username] <string>] [-Password <string>] [-DisplayName <string>] [-Description <string>] [-StartupType <ChocolateyWindowsServiceStartupType>] [-DoNotStartService] [-DoNotReinstallService] [<CommonParameters>] - - -## Syntax - -~~~powershell -Install-ChocolateyWindowsService ` - -Name <string> ` - -ServiceExecutablePath <string> ` - [-Username <string>] ` - [-Password <string>] ` - [-DisplayName <string>] ` - [-Description <string>] ` - [-StartupType <ChocolateyWindowsServiceStartupType> {Unknown | Manual | Automatic | Disabled}] ` - [-DoNotStartService] ` - [-DoNotReinstallService] -~~~ - - - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Description [<string>] -The description of the service. - - -Property | Value ----------------------- | --------------------- -Aliases | -Required? | false -Position? | Named -Default Value | -Accept Pipeline Input? | true (ByPropertyName) - -### -DisplayName [<string>] -The display name of the service. - - -Property | Value ----------------------- | --------------------- -Aliases | -Required? | false -Position? | Named -Default Value | -Accept Pipeline Input? | true (ByPropertyName) - -### -DoNotReinstallService -Do not uninstall/restart service. This is for advanced scenarios when you need -to deploy a newer version of a service and control when the restart happens over -to the newly deployed code. - - -Property | Value ----------------------- | --------------------- -Aliases | -Required? | false -Position? | Named -Default Value | -Accept Pipeline Input? | true (ByPropertyName) - -### -DoNotStartService -Do not start service after install. This keeps the service from starting up when -installing/upgrading. - - -Property | Value ----------------------- | --------------------- -Aliases | -Required? | false -Position? | Named -Default Value | -Accept Pipeline Input? | true (ByPropertyName) - -### -Name <string> -The name of the service to install. - - -Property | Value ----------------------- | --------------------- -Aliases | -Required? | true -Position? | 0 -Default Value | -Accept Pipeline Input? | true (ByPropertyName) - -### -Password [<string>] - -The password for the service - defaults to empty. If the user is not a built-in -account like LocalSystem and the user name is provided without a password being -provided, the password will automatically be a Chocolatey Managed Password. - -When Chocolatey manages the password for an account, it creates a very complex -password: - -* 32 characters long -* Uppercase, lowercase, numbers, and symbols to meet very stringent complexity - requirements -* Different for every machine -* Completely unguessable - -No one at Chocolatey Software could even tell you what the password is for a -particular machine without local access. - - -Property | Value ----------------------- | --------------------- -Aliases | -Required? | false -Position? | Named -Default Value | -Accept Pipeline Input? | true (ByPropertyName) - -### -ServiceExecutablePath <string> -The full path (absolute path) to the service executable file. - - -Property | Value ----------------------- | --------------------- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | true (ByPropertyName) - -### -StartupType [<ChocolateyWindowsServiceStartupType>] -The startup type of the service. Defaults to Automatic. - - -Property | Value ----------------------- | --------------------- -Aliases | -Required? | false -Position? | Named -Default Value | -Accept Pipeline Input? | true (ByPropertyName) - -### -Username [<string>] -The username for the service - defaults to LocalSystem (SYSTEM). If the user -does not exist, the user will be created. When a user is specified for a -service, the following things will also occur as part of this function: - -* User added to Administrators group -* User given privilege/right to run as a service (SeServiceLogonRight) -* User given privilege/right to log on as a batch (SeBatchLogonRight) -* User given privilege/right to log on interactively (SeInteractiveLogonRight) -* User given privilege/right to log on network (SeNetworkLogonRight) - - - -Property | Value ----------------------- | --------------------- -Aliases | user -Required? | false -Position? | 2 -Default Value | -Accept Pipeline Input? | true (ByPropertyName) - - - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from licensed code. diff --git a/docs/generated/HelpersInstallChocolateyZipPackage.md b/docs/generated/HelpersInstallChocolateyZipPackage.md deleted file mode 100644 index 1e075cf14b..0000000000 --- a/docs/generated/HelpersInstallChocolateyZipPackage.md +++ /dev/null @@ -1,315 +0,0 @@ -# Install-ChocolateyZipPackage - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyZipPackage.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Downloads file from a url and unzips it on your machine. Use -Get-ChocolateyUnzip when local or embedded file. - -## Syntax - -~~~powershell -Install-ChocolateyZipPackage ` - -PackageName <String> ` - [-Url <String>] ` - -UnzipLocation <String> ` - [-Url64bit <String>] ` - [-SpecificFolder <String>] ` - [-Checksum <String>] ` - [-ChecksumType <String>] ` - [-Checksum64 <String>] ` - [-ChecksumType64 <String>] ` - [-Options <Hashtable>] ` - [-File <String>] ` - [-File64 <String>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This will download a file from a url and unzip it on your machine. -If you are embedding the file(s) directly in the package (or do not need -to download a file first), use Get-ChocolateyUnzip instead. - -## Notes - -Chocolatey works best when the packages contain the software it is -managing and doesn't require downloads. However most software in the -Windows world requires redistribution rights and when sharing packages -publicly (like on the [community feed](https://chocolatey.org/packages)), maintainers may not have those -aforementioned rights. Chocolatey understands how to work with that, -hence this function. You are not subject to this limitation with -internal packages. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell -Install-ChocolateyZipPackage -PackageName 'gittfs' -Url 'https://github.com/downloads/spraints/git-tfs/GitTfs-0.11.0.zip' -UnzipLocation $gittfsPath - -~~~ - -**EXAMPLE 2** - -~~~powershell - -Install-ChocolateyZipPackage -PackageName 'sysinternals' ` - -Url 'http://download.sysinternals.com/Files/SysinternalsSuite.zip' ` - -UnzipLocation "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" -~~~ - -**EXAMPLE 3** - -~~~powershell - -Install-ChocolateyZipPackage -PackageName 'sysinternals' ` - -Url 'http://download.sysinternals.com/Files/SysinternalsSuite.zip' ` - -UnzipLocation "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" ` - -Url64 'http://download.sysinternals.com/Files/SysinternalsSuitex64.zip' -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -PackageName <String> -The name of the package - while this is an arbitrary value, it's -recommended that it matches the package id. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -Url [<String>] -This is the 32 bit url to download the resource from. This resource can -be used on 64 bit systems when a package has both a Url and Url64bit -specified if a user passes `--forceX86`. If there is only a 64 bit url -available, please remove do not use the paramter (only use Url64bit). -Will fail on 32bit systems if missing or if a user attempts to force -a 32 bit installation on a 64 bit system. - -Prefer HTTPS when available. Can be HTTP, FTP, or File URIs. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -UnzipLocation <String> -This is the full path to a location to unzip the contents to, most -likely your script folder. If unzipping to your package folder, the path -will be like -`"$(Split-Path -Parent $MyInvocation.MyCommand.Definition)\\file.exe"` - -Property | Value ----------------------- | ----------- -Aliases | destination -Required? | true -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### -Url64bit [<String>] -OPTIONAL - If there is a 64 bit resource available, use this -parameter. Chocolatey will automatically determine if the user is -running a 64 bit OS or not and adjust accordingly. Please note that -the 32 bit url will be used in the absence of this. This parameter -should only be used for 64 bit native software. If the original Url -contains both (which is quite rare), set this to '$url' Otherwise remove -this parameter. - -Prefer HTTPS when available. Can be HTTP, FTP, or File URIs. - -Property | Value ----------------------- | ----- -Aliases | url64 -Required? | false -Position? | 4 -Default Value | -Accept Pipeline Input? | false - -### -SpecificFolder [<String>] -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -Checksum [<String>] -The checksum hash value of the Url resource. This allows a checksum to -be validated for files that are not local. The checksum type is covered -by ChecksumType. - -**NOTE:** Checksums in packages are meant as a measure to validate the -originally intended file that was used in the creation of a package is -the same file that is received at a future date. Since this is used for -other steps in the process related to the [community repository](https://chocolatey.org/packages), it -ensures that the file a user receives is the same file a maintainer -and a moderator (if applicable), plus any moderation review has -intended for you to receive with this package. If you are looking at a -remote source that uses the same url for updates, you will need to -ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) -to help provide that functionality. - -**NOTE:** To determine checksums, you can get that from the original -site if provided. You can also use the [checksum tool available on -the [community feed](https://chocolatey.org/packages)](https://chocolatey.org/packages/checksum) (`choco install checksum`) -and use it e.g. `checksum -t sha256 -f path\to\file`. Ensure you -provide checksums for all remote resources used. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -ChecksumType [<String>] -The type of checkum that the file is validated with - valid -values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to 'md5'. - -MD5 is not recommended as certain organizations need to use FIPS -compliant algorithms for hashing - see -https://support.microsoft.com/en-us/kb/811833 for more details. - -The recommendation is to use at least SHA256. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -Checksum64 [<String>] -OPTIONAL if no Url64bit - The checksum hash value of the Url64bit -resource. This allows a checksum to be validated for files that are not -local. The checksum type is covered by ChecksumType64. - -**NOTE:** Checksums in packages are meant as a measure to validate the -originally intended file that was used in the creation of a package is -the same file that is received at a future date. Since this is used for -other steps in the process related to the [community repository](https://chocolatey.org/packages), it -ensures that the file a user receives is the same file a maintainer -and a moderator (if applicable), plus any moderation review has -intended for you to receive with this package. If you are looking at a -remote source that uses the same url for updates, you will need to -ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) -to help provide that functionality. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -ChecksumType64 [<String>] -OPTIONAL - The type of checkum that the file is validated with - valid -values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to -ChecksumType parameter value. - -MD5 is not recommended as certain organizations need to use FIPS -compliant algorithms for hashing - see -https://support.microsoft.com/en-us/kb/811833 for more details. - -The recommendation is to use at least SHA256. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -Options [<Hashtable>] -OPTIONAL - Specify custom headers. Available in 0.9.10+. - -Property | Value ----------------------- | -------------- -Aliases | -Required? | false -Position? | named -Default Value | @{Headers=@{}} -Accept Pipeline Input? | false - -### -File [<String>] -Will be used for Url if Url is empty. Available in 0.10.7+. - -This parameter provides compatibility, but should not be used directly -and not with the community package repository until January 2018. - -Property | Value ----------------------- | ------------ -Aliases | fileFullPath -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -File64 [<String>] -Will be used for Url64bit if Url64bit is empty. Available in 0.10.7+. - -This parameter provides compatibility, but should not be used directly -and not with the community package repository until January 2018. - -Property | Value ----------------------- | -------------- -Aliases | fileFullPath64 -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Get-ChocolateyWebFile|HelpersGetChocolateyWebFile]] - * [[Get-ChocolateyUnzip|HelpersGetChocolateyUnzip]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-ChocolateyZipPackage -Full`. - -View the source for [Install-ChocolateyZipPackage](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyZipPackage.ps1) diff --git a/docs/generated/HelpersInstallVsix.md b/docs/generated/HelpersInstallVsix.md deleted file mode 100644 index 4b9564d586..0000000000 --- a/docs/generated/HelpersInstallVsix.md +++ /dev/null @@ -1,86 +0,0 @@ -# Install-Vsix - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-Vsix.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -DO NOT USE. Not part of the public API. - -## Syntax - -~~~powershell -Install-Vsix ` - -Installer <String> ` - -InstallFile <String> ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Installs a VSIX package into a particular version of Visual Studio. - -## Notes - -This is not part of the public API. Please use -Install-ChocolateyVsixPackage instead. - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Installer <String> -The path to the VSIX installer - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -InstallFile <String> -The VSIX file that is being installed. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyVsixPackage|HelpersInstallChocolateyVsixPackage]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-Vsix -Full`. - -View the source for [Install-Vsix](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Install-Vsix.ps1) diff --git a/docs/generated/HelpersReference.md b/docs/generated/HelpersReference.md deleted file mode 100644 index 2fc8dc4306..0000000000 --- a/docs/generated/HelpersReference.md +++ /dev/null @@ -1,113 +0,0 @@ -# PowerShell Functions aka Helpers Reference - -<!-- This documentation file is automatically generated from the files at $sourceFunctions using $($sourceLocation)GenerateDocs.ps1. Contributions are welcome at the original location(s). --> -## Main Functions - -These functions call other functions and many times may be the only thing you need in your [[chocolateyInstall.ps1 file|ChocolateyInstallPS1]]. - -* [[Install-ChocolateyPackage|HelpersInstallChocolateyPackage]] -* [[Install-ChocolateyZipPackage|HelpersInstallChocolateyZipPackage]] -* [[Install-ChocolateyPowershellCommand|HelpersInstallChocolateyPowershellCommand]] -* [[Install-ChocolateyVsixPackage|HelpersInstallChocolateyVsixPackage]] - -## Error / Success Functions - -* [[Write-ChocolateySuccess|HelpersWriteChocolateySuccess]] - **DEPRECATED** -* [[Write-ChocolateyFailure|HelpersWriteChocolateyFailure]] - **DEPRECATED** - -You really don't need a try catch with Chocolatey PowerShell files anymore. - -## More Functions - -### Administrative Access Functions - -When creating packages that need to run one of the following commands below, one should add the tag `admin` to the nuspec. - -* [[Install-ChocolateyPackage|HelpersInstallChocolateyPackage]] -* [[Start-ChocolateyProcessAsAdmin|HelpersStartChocolateyProcessAsAdmin]] -* [[Install-ChocolateyInstallPackage|HelpersInstallChocolateyInstallPackage]] -* [[Install-ChocolateyPath|HelpersInstallChocolateyPath]] - when specifying machine path -* [[Install-ChocolateyEnvironmentVariable|HelpersInstallChocolateyEnvironmentVariable]] - when specifying machine path -* [[Install-ChocolateyExplorerMenuItem|HelpersInstallChocolateyExplorerMenuItem]] -* [[Install-ChocolateyFileAssociation|HelpersInstallChocolateyFileAssociation]] - -### Non-Administrator Safe Functions - -When you have a need to run Chocolatey without Administrative access required (non-default install location), you can run the following functions without administrative access. - -These are the functions from above as one list. - -* [[Install-ChocolateyZipPackage|HelpersInstallChocolateyZipPackage]] -* [[Install-ChocolateyPowershellCommand|HelpersInstallChocolateyPowershellCommand]] -* [[Write-ChocolateySuccess|HelpersWriteChocolateySuccess]] -* [[Write-ChocolateyFailure|HelpersWriteChocolateyFailure]] -* [[Get-ChocolateyWebFile|HelpersGetChocolateyWebFile]] -* [[Get-ChocolateyUnzip|HelpersGetChocolateyUnzip]] -* [[Install-ChocolateyPath|HelpersInstallChocolateyPath]] - when specifying user path -* [[Install-ChocolateyEnvironmentVariable|HelpersInstallChocolateyEnvironmentVariable]] - when specifying user path -* [[Install-ChocolateyDesktopLink|HelpersInstallChocolateyDesktopLink]] - **DEPRECATED** - see [[Install-ChocolateyShortcut|HelpersInstallChocolateyShortcut]] -* [[Install-ChocolateyPinnedTaskBarItem|HelpersInstallChocolateyPinnedTaskBarItem]] -* [[Install-ChocolateyShortcut|HelpersInstallChocolateyShortcut]] - v0.9.9+ -* [[Update-SessionEnvironment|HelpersUpdateSessionEnvironment]] - -## Complete List (alphabetical order) - - * [[Format-FileSize|HelpersFormatFileSize]] - * [[Get-ChecksumValid|HelpersGetChecksumValid]] - * [[Get-ChocolateyUnzip|HelpersGetChocolateyUnzip]] - * [[Get-ChocolateyWebFile|HelpersGetChocolateyWebFile]] - * [[Get-EnvironmentVariable|HelpersGetEnvironmentVariable]] - * [[Get-EnvironmentVariableNames|HelpersGetEnvironmentVariableNames]] - * [[Get-FtpFile|HelpersGetFtpFile]] - * [[Get-OSArchitectureWidth|HelpersGetOSArchitectureWidth]] - * [[Get-PackageParameters|HelpersGetPackageParameters]] - * [[Get-ToolsLocation|HelpersGetToolsLocation]] - * [[Get-UACEnabled|HelpersGetUACEnabled]] - * [[Get-UninstallRegistryKey|HelpersGetUninstallRegistryKey]] - * [[Get-VirusCheckValid|HelpersGetVirusCheckValid]] - * [[Get-WebFile|HelpersGetWebFile]] - * [[Get-WebFileName|HelpersGetWebFileName]] - * [[Get-WebHeaders|HelpersGetWebHeaders]] - * [[Install-BinFile|HelpersInstallBinFile]] - * [[Install-ChocolateyDesktopLink|HelpersInstallChocolateyDesktopLink]] - * [[Install-ChocolateyEnvironmentVariable|HelpersInstallChocolateyEnvironmentVariable]] - * [[Install-ChocolateyExplorerMenuItem|HelpersInstallChocolateyExplorerMenuItem]] - * [[Install-ChocolateyFileAssociation|HelpersInstallChocolateyFileAssociation]] - * [[Install-ChocolateyInstallPackage|HelpersInstallChocolateyInstallPackage]] - * [[Install-ChocolateyPackage|HelpersInstallChocolateyPackage]] - * [[Install-ChocolateyPath|HelpersInstallChocolateyPath]] - * [[Install-ChocolateyPinnedTaskBarItem|HelpersInstallChocolateyPinnedTaskBarItem]] - * [[Install-ChocolateyPowershellCommand|HelpersInstallChocolateyPowershellCommand]] - * [[Install-ChocolateyShortcut|HelpersInstallChocolateyShortcut]] - * [[Install-ChocolateyVsixPackage|HelpersInstallChocolateyVsixPackage]] - * [[Install-ChocolateyZipPackage|HelpersInstallChocolateyZipPackage]] - * [[Install-Vsix|HelpersInstallVsix]] - * [[Set-EnvironmentVariable|HelpersSetEnvironmentVariable]] - * [[Set-PowerShellExitCode|HelpersSetPowerShellExitCode]] - * [[Start-ChocolateyProcessAsAdmin|HelpersStartChocolateyProcessAsAdmin]] - * [[Test-ProcessAdminRights|HelpersTestProcessAdminRights]] - * [[Uninstall-BinFile|HelpersUninstallBinFile]] - * [[Uninstall-ChocolateyEnvironmentVariable|HelpersUninstallChocolateyEnvironmentVariable]] - * [[Uninstall-ChocolateyPackage|HelpersUninstallChocolateyPackage]] - * [[Uninstall-ChocolateyZipPackage|HelpersUninstallChocolateyZipPackage]] - * [[Update-SessionEnvironment|HelpersUpdateSessionEnvironment]] - * [[Write-ChocolateyFailure|HelpersWriteChocolateyFailure]] - * [[Write-ChocolateySuccess|HelpersWriteChocolateySuccess]] - * [[Write-FileUpdateLog|HelpersWriteFileUpdateLog]] - * [[Write-FunctionCallLogMessage|HelpersWriteFunctionCallLogMessage]] - -## Variables - -There are also a number of environment variables providing access to some values from the nuspec and other information that may be useful. They are accessed via `$env:variableName`. - -* __chocolateyPackageFolder__ = the folder where Chocolatey has downloaded and extracted the NuGet package, typically `C:\ProgramData\chocolatey\lib\packageName`. -* __chocolateyPackageName__ (since 0.9.9.0) = The package name, which is equivalent to the `<id>` tag in the nuspec -* __chocolateyPackageVersion__ (since 0.9.9.0) = The package version, which is equivalent to the `<version>` tag in the nuspec - -`chocolateyPackageVersion` may be particularly useful, since that would allow you in some cases to create packages for new releases of the updated software by only changing the `<version>` in the nuspec and not having to touch the `chocolateyInstall.ps1` at all. An example of this: - -~~~powershell -$url = "http://www.thesoftware.com/downloads/thesoftware-$env:chocolateyPackageVersion.zip" - -Install-ChocolateyZipPackage '$env:chocolateyPackageName' $url $binRoot -~~~ diff --git a/docs/generated/HelpersSetEnvironmentVariable.md b/docs/generated/HelpersSetEnvironmentVariable.md deleted file mode 100644 index 1821cda4eb..0000000000 --- a/docs/generated/HelpersSetEnvironmentVariable.md +++ /dev/null @@ -1,101 +0,0 @@ -# Set-EnvironmentVariable - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Set-EnvironmentVariable.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -**NOTE:** Administrative Access Required when `-Scope 'Machine'.` - -DO NOT USE. Not part of the public API. Use -`Install-ChocolateyEnvironmentVariable` instead. - -## Syntax - -~~~powershell -Set-EnvironmentVariable ` - -Name <String> ` - [-Value <String>] ` - [-Scope {Process | User | Machine}] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Saves an environment variable. - -## Notes - -This command will assert UAC/Admin privileges on the machine if -`-Scope 'Machine'`. - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Name <String> -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -Value [<String>] -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -Scope - -Valid options: Process, User, Machine - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyEnvironmentVariable|HelpersInstallChocolateyEnvironmentVariable]] - * [[Uninstall-ChocolateyEnvironmentVariable|HelpersUninstallChocolateyEnvironmentVariable]] - * [[Install-ChocolateyPath|HelpersInstallChocolateyPath]] - * [[Get-EnvironmentVariable|HelpersGetEnvironmentVariable]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Set-EnvironmentVariable -Full`. - -View the source for [Set-EnvironmentVariable](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Set-EnvironmentVariable.ps1) diff --git a/docs/generated/HelpersSetPowerShellExitCode.md b/docs/generated/HelpersSetPowerShellExitCode.md deleted file mode 100644 index 3065c7ef45..0000000000 --- a/docs/generated/HelpersSetPowerShellExitCode.md +++ /dev/null @@ -1,79 +0,0 @@ -# Set-PowerShellExitCode - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Set-PowerShellExitCode.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Sets the exit code for the PowerShell scripts. - -## Syntax - -~~~powershell -Set-PowerShellExitCode ` - [-ExitCode <Int32>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Sets the exit code as an environment variable that is checked and used -as the exit code for the package at the end of the package script. - -## Notes - -This tells PowerShell that it should prepare to shut down. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell -Set-PowerShellExitCode 3010 - -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -ExitCode [<Int32>] -The exit code to set. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 1 -Default Value | 0 -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Set-PowerShellExitCode -Full`. - -View the source for [Set-PowerShellExitCode](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Set-PowerShellExitCode.ps1) diff --git a/docs/generated/HelpersStartChocolateyProcessAsAdmin.md b/docs/generated/HelpersStartChocolateyProcessAsAdmin.md deleted file mode 100644 index 81eb797ebc..0000000000 --- a/docs/generated/HelpersStartChocolateyProcessAsAdmin.md +++ /dev/null @@ -1,226 +0,0 @@ -# Start-ChocolateyProcessAsAdmin - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Start-ChocolateyProcessAsAdmin.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -**NOTE:** Administrative Access Required. - -Runs a process with administrative privileges. If `-ExeToRun` is not -specified, it is run with PowerShell. - -## Syntax - -~~~powershell -Start-ChocolateyProcessAsAdmin ` - [-Statements <String[]>] ` - [-ExeToRun <String>] ` - [-Elevated] ` - [-Minimized] ` - [-NoSleep] ` - [-ValidExitCodes <Object>] ` - [-WorkingDirectory <String>] ` - [-SensitiveStatements <String>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - - -## Notes - -This command will assert UAC/Admin privileges on the machine. - -Starting in 0.9.10, will automatically call Set-PowerShellExitCode to -set the package exit code in the following ways: - -- 4 if the binary turns out to be a text file. -- The same exit code returned from the process that is run. If a 3010 is returned, it will set 3010 for the package. - -Aliases `Start-ChocolateyProcess` and `Invoke-ChocolateyProcess` -available in 0.10.2+. - -## Aliases - -`Invoke-ChocolateyProcess` -`Start-ChocolateyProcess` - - -## Examples - - **EXAMPLE 1** - -~~~powershell -Start-ChocolateyProcessAsAdmin -Statements "$msiArgs" -ExeToRun 'msiexec' - -~~~ - -**EXAMPLE 2** - -~~~powershell -Start-ChocolateyProcessAsAdmin -Statements "$silentArgs" -ExeToRun $file - -~~~ - -**EXAMPLE 3** - -~~~powershell -Start-ChocolateyProcessAsAdmin -Statements "$silentArgs" -ExeToRun $file -ValidExitCodes @(0,21) - -~~~ - -**EXAMPLE 4** - -~~~powershell - -# Run PowerShell statements -$psFile = Join-Path "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" 'someInstall.ps1' -Start-ChocolateyProcessAsAdmin "& `'$psFile`'" -~~~ - -**EXAMPLE 5** - -~~~powershell -# This also works for cmd and is required if you have any spaces in the paths within your command -$appPath = "$env:ProgramFiles\myapp" -$cmdBatch = "/c `"$appPath\bin\installmyappservice.bat`"" -Start-ChocolateyProcessAsAdmin $cmdBatch cmd -# or more explicitly -Start-ChocolateyProcessAsAdmin -Statements $cmdBatch -ExeToRun "cmd.exe" -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Statements [<String[]>] -Arguments to pass to `ExeToRun` or the PowerShell script block to be -run. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -ExeToRun [<String>] -The executable/application/installer to run. Defaults to `'powershell'`. - -Property | Value ----------------------- | ---------- -Aliases | -Required? | false -Position? | 2 -Default Value | powershell -Accept Pipeline Input? | false - -### -Elevated -Indicate whether the process should run elevated. - -Available in 0.10.2+. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | True -Accept Pipeline Input? | false - -### -Minimized -Switch indicating if a Windows pops up (if not called with a silent -argument) that it should be minimized. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | False -Accept Pipeline Input? | false - -### -NoSleep -Used only when calling PowerShell - indicates the window that is opened -should return instantly when it is complete. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | False -Accept Pipeline Input? | false - -### -ValidExitCodes [<Object>] -Array of exit codes indicating success. Defaults to `@(0)`. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | @(0) -Accept Pipeline Input? | false - -### -WorkingDirectory [<String>] -The working directory for the running process. Defaults to -`Get-Location`. - -Available in 0.10.1+. - -Property | Value ----------------------- | --------------- -Aliases | -Required? | false -Position? | named -Default Value | $(Get-Location) -Accept Pipeline Input? | false - -### -SensitiveStatements [<String>] -Arguments to pass to `ExeToRun` that are not logged. - -Note that only [licensed versions](https://chocolatey.org/compare) of Chocolatey provide a way to pass -those values completely through without having them in the install -script or on the system in some way. - -Available in 0.10.1+. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyPackage|HelpersInstallChocolateyPackage]] - * [[Install-ChocolateyInstallPackage|HelpersInstallChocolateyInstallPackage]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Start-ChocolateyProcessAsAdmin -Full`. - -View the source for [Start-ChocolateyProcessAsAdmin](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Start-ChocolateyProcessAsAdmin.ps1) diff --git a/docs/generated/HelpersStartChocolateyWindowsService.md b/docs/generated/HelpersStartChocolateyWindowsService.md deleted file mode 100644 index 5483bafb9d..0000000000 --- a/docs/generated/HelpersStartChocolateyWindowsService.md +++ /dev/null @@ -1,49 +0,0 @@ -# Start-ChocolateyWindowsService - -**NOTE**: This function requires a Chocolatey for Business License to use. - - -Start-ChocolateyWindowsService [-Name] <string> [<CommonParameters>] - - -## Syntax - -~~~powershell -Start-ChocolateyWindowsService ` - -Name <string> -~~~ - - - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Name <string> -The name of the service to start. Will throw an error if it doesn't exist. - - -Property | Value ----------------------- | --------------------- -Aliases | -Required? | true -Position? | 0 -Default Value | -Accept Pipeline Input? | true (ByPropertyName) - - - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from licensed code. diff --git a/docs/generated/HelpersStopChocolateyWindowsService.md b/docs/generated/HelpersStopChocolateyWindowsService.md deleted file mode 100644 index 7156fbd181..0000000000 --- a/docs/generated/HelpersStopChocolateyWindowsService.md +++ /dev/null @@ -1,49 +0,0 @@ -# Stop-ChocolateyWindowsService - -**NOTE**: This function requires a Chocolatey for Business License to use. - - -Stop-ChocolateyWindowsService [-Name] <string> [<CommonParameters>] - - -## Syntax - -~~~powershell -Stop-ChocolateyWindowsService ` - -Name <string> -~~~ - - - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Name <string> -The name of the service to stop. Will not throw an error if it doesn't exist. - - -Property | Value ----------------------- | --------------------- -Aliases | -Required? | true -Position? | 0 -Default Value | -Accept Pipeline Input? | true (ByPropertyName) - - - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from licensed code. diff --git a/docs/generated/HelpersTestProcessAdminRights.md b/docs/generated/HelpersTestProcessAdminRights.md deleted file mode 100644 index aec0a5f1f2..0000000000 --- a/docs/generated/HelpersTestProcessAdminRights.md +++ /dev/null @@ -1,46 +0,0 @@ -# Test-ProcessAdminRights - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Test-ProcessAdminRights.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Tests whether the current process is running with administrative rights. - -## Syntax - -~~~powershell -Test-ProcessAdminRights -~~~ - -## Description - -This function checks whether the current process has administrative -rights by checking if the current user identity is a member of the -Administrators group. It returns `$true` if the current process is -running with administrative rights, `$false` otherwise. - -On Windows Vista and later, with UAC enabled, the returned value -represents the actual rights available to the process, e.g. if it -returns `$true`, the process is running elevated. - - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - - - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Test-ProcessAdminRights -Full`. - -View the source for [Test-ProcessAdminRights](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Test-ProcessAdminRights.ps1) diff --git a/docs/generated/HelpersUnInstallChocolateyZipPackage.md b/docs/generated/HelpersUnInstallChocolateyZipPackage.md deleted file mode 100644 index fd25d0b9ba..0000000000 --- a/docs/generated/HelpersUnInstallChocolateyZipPackage.md +++ /dev/null @@ -1,101 +0,0 @@ -# Uninstall-ChocolateyZipPackage - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Uninstall-ChocolateyZipPackage.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Uninstalls a previous installed zip package, may not be necessary. - -## Syntax - -~~~powershell -Uninstall-ChocolateyZipPackage ` - -PackageName <String> ` - -ZipFileName <String> ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This will uninstall a zip file if installed via Install-ChocolateyZipPackage. -This is not necessary if the files are unzipped to the package directory. - -## Notes - -Not necessary if files are unzippped to package directory. - -This helper reduces the number of lines one would have to remove the -files extracted from a previously installed zip file. -This method has error handling built into it. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell -Uninstall-ChocolateyZipPackage '__NAME__' 'filename.zip' - -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -PackageName <String> -The name of the package - while this is an arbitrary value, it's -recommended that it matches the package id. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -ZipFileName <String> -This is the zip filename originally installed. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyZipPackage|HelpersInstallChocolateyZipPackage]] - * [[Uninstall-ChocolateyPackage|HelpersUninstallChocolateyPackage]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Uninstall-ChocolateyZipPackage -Full`. - -View the source for [Uninstall-ChocolateyZipPackage](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Uninstall-ChocolateyZipPackage.ps1) diff --git a/docs/generated/HelpersUninstallBinFile.md b/docs/generated/HelpersUninstallBinFile.md deleted file mode 100644 index 99ed1cc3ac..0000000000 --- a/docs/generated/HelpersUninstallBinFile.md +++ /dev/null @@ -1,95 +0,0 @@ -# Uninstall-BinFile - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Uninstall-BinFile.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Removes a shim (or batch redirect) for a file. - -## Syntax - -~~~powershell -Uninstall-BinFile ` - -Name <String> ` - [-Path <String>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Chocolatey installs have the folder `$($env:ChocolateyInstall)\bin` -included in the PATH environment variable. Chocolatey automatically -shims executables in package folders that are not explicitly ignored, -putting them into the bin folder (and subsequently onto the PATH). - -When you have other files you have shimmed, you need to use this -function to remove them from the bin folder. - -## Notes - -Not normally needed for exe files in the package folder, those are -automatically discovered and the shims removed. - -## Aliases - -`Remove-BinFile` - - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Name <String> -The name of the redirect file without ".exe" appended to it. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -Path [<String>] -The path to the original file. Can be relative from -`$($env:ChocolateyInstall)\bin` back to your file or a full path to the -file. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-BinFile|HelpersInstallBinFile]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Uninstall-BinFile -Full`. - -View the source for [Uninstall-BinFile](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Uninstall-BinFile.ps1) diff --git a/docs/generated/HelpersUninstallChocolateyEnvironmentVariable.md b/docs/generated/HelpersUninstallChocolateyEnvironmentVariable.md deleted file mode 100644 index 989b91fd20..0000000000 --- a/docs/generated/HelpersUninstallChocolateyEnvironmentVariable.md +++ /dev/null @@ -1,120 +0,0 @@ -# Uninstall-ChocolateyEnvironmentVariable - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Uninstall-ChocolateyEnvironmentVariable.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -**NOTE:** Administrative Access Required when `-VariableType 'Machine'.` - -Removes a persistent environment variable. - -## Syntax - -~~~powershell -Uninstall-ChocolateyEnvironmentVariable ` - -VariableName <String> ` - [-VariableType {Process | User | Machine}] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Uninstall-ChocolateyEnvironmentVariable removes an environment variable -with the specified name and value. The variable can be scoped either to -the User or to the Machine. If Machine level scoping is specified, the -command is elevated to an administrative session. - -## Notes - -Available in 0.9.10+. If you need compatibility with older versions, -use Install-ChocolateyEnvironmentVariable and set `-VariableValue $null` - -This command will assert UAC/Admin privileges on the machine when -`-VariableType Machine`. - -This will remove the environment variable from the current session. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell - -# Remove an environment variable -Uninstall-ChocolateyEnvironmentVariable -VariableName 'bob' -~~~ - -**EXAMPLE 2** - -~~~powershell - -# Remove an environment variable from Machine -Uninstall-ChocolateyEnvironmentVariable -VariableName 'bob' -VariableType 'Machine' -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -VariableName <String> -The name or key of the environment variable to remove. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -VariableType -Specifies whether this variable is at either the individual User level -or at the Machine level. - - -Valid options: Process, User, Machine - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 2 -Default Value | User -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyEnvironmentVariable|HelpersInstallChocolateyEnvironmentVariable]] - * [[Set-EnvironmentVariable|HelpersSetEnvironmentVariable]] - * [[Install-ChocolateyPath|HelpersInstallChocolateyPath]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Uninstall-ChocolateyEnvironmentVariable -Full`. - -View the source for [Uninstall-ChocolateyEnvironmentVariable](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Uninstall-ChocolateyEnvironmentVariable.ps1) diff --git a/docs/generated/HelpersUninstallChocolateyPackage.md b/docs/generated/HelpersUninstallChocolateyPackage.md deleted file mode 100644 index d9278ef216..0000000000 --- a/docs/generated/HelpersUninstallChocolateyPackage.md +++ /dev/null @@ -1,178 +0,0 @@ -# Uninstall-ChocolateyPackage - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Uninstall-ChocolateyPackage.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Uninstalls software from "Programs and Features". - -## Syntax - -~~~powershell -Uninstall-ChocolateyPackage ` - -PackageName <String> ` - [-FileType <String>] ` - [-SilentArgs <String[]>] ` - [-File <String>] ` - [-ValidExitCodes <Object>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -This will uninstall software from your machine (in Programs and -Features). This may not be necessary if Auto Uninstaller is turned on. - -Choco 0.9.9+ automatically tracks registry changes for "Programs and -Features" of the underlying software's native installers when -installing packages. The "Automatic Uninstaller" (auto uninstaller) -service is a feature that can use that information to automatically -determine how to uninstall these natively installed applications. This -means that a package may not need an explicit chocolateyUninstall.ps1 -to reverse the installation done in the install script. - -With auto uninstaller turned off, a chocolateyUninstall.ps1 is required -to perform uninstall from "Programs and Features". In the absence of -chocolateyUninstall.ps1, choco uninstall only removes the package from -Chocolatey but does not remove the sofware from your system without -auto uninstaller. - -## Notes - -May not be required. Starting in 0.9.10+, the Automatic Uninstaller -(AutoUninstaller) is turned on by default. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell -Uninstall-ChocolateyPackage '__NAME__' 'EXE_OR_MSI' 'SILENT_ARGS' 'FilePath' - -~~~ - -**EXAMPLE 2** - -~~~powershell - -Uninstall-ChocolateyPackage -PackageName $packageName ` - -FileType $installerType ` - -SilentArgs "$silentArgs" ` - -ValidExitCodes $validExitCodes ` - -File "$file" -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -PackageName <String> -The name of the package - while this is an arbitrary value, it's -recommended that it matches the package id. - -Property | Value ----------------------- | ----- -Aliases | -Required? | true -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -FileType [<String>] -This is the extension of the file. This should be either exe or msi. - -If what is provided is empty or null, Chocolatey will use 'exe' -starting in 0.10.1. - -Property | Value ----------------------- | ------------- -Aliases | installerType -Required? | false -Position? | 2 -Default Value | exe -Accept Pipeline Input? | false - -### -SilentArgs [<String[]>] -OPTIONAL - These are the parameters to pass to the native uninstaller, -including any arguments to make the uninstaller silent/unattended. -[Licensed editions](https://chocolatey.org/compare) of Chocolatey will automatically determine the -installer type and merge the arguments with what is provided here. - -Try any of the to get the silent (unattended) uninstaller - -`/s /S /q /Q /quiet /silent /SILENT /VERYSILENT`. With msi it is always -`/quiet`. Please pass it in still but it will be overridden by -Chocolatey to `/quiet`. If you don't pass anything it could invoke the -installer with out any arguments. That means a nonsilent installer. - -Please include the `notSilent` tag in your Chocolatey package if you -are not setting up a silent/unattended package. Please note that if you -are submitting to the [community repository](https://chocolatey.org/packages), it is nearly a requirement -for the package to be completely unattended. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### -File [<String>] -The full path to the native uninstaller to run. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 4 -Default Value | -Accept Pipeline Input? | false - -### -ValidExitCodes [<Object>] -Array of exit codes indicating success. Defaults to `@(0)`. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | @(0) -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | named -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Install-ChocolateyPackage|HelpersInstallChocolateyPackage]] - * [[Install-ChocolateyInstallPackage|HelpersInstallChocolateyInstallPackage]] - * [[Uninstall-ChocolateyZipPackage|HelpersUninstallChocolateyZipPackage]] - * [[Get-UninstallRegistryKey|HelpersGetUninstallRegistryKey]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Uninstall-ChocolateyPackage -Full`. - -View the source for [Uninstall-ChocolateyPackage](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Uninstall-ChocolateyPackage.ps1) diff --git a/docs/generated/HelpersUninstallChocolateyWindowsService.md b/docs/generated/HelpersUninstallChocolateyWindowsService.md deleted file mode 100644 index 1d031229e3..0000000000 --- a/docs/generated/HelpersUninstallChocolateyWindowsService.md +++ /dev/null @@ -1,49 +0,0 @@ -# Uninstall-ChocolateyWindowsService - -**NOTE**: This function requires a Chocolatey for Business License to use. - - -Uninstall-ChocolateyWindowsService [-Name] <string> [<CommonParameters>] - - -## Syntax - -~~~powershell -Uninstall-ChocolateyWindowsService ` - -Name <string> -~~~ - - - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Name <string> -The name of the service to uninstall. - - -Property | Value ----------------------- | --------------------- -Aliases | -Required? | true -Position? | 0 -Default Value | -Accept Pipeline Input? | true (ByPropertyName) - - - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from licensed code. diff --git a/docs/generated/HelpersUpdateSessionEnvironment.md b/docs/generated/HelpersUpdateSessionEnvironment.md deleted file mode 100644 index 230c0a17c2..0000000000 --- a/docs/generated/HelpersUpdateSessionEnvironment.md +++ /dev/null @@ -1,58 +0,0 @@ -# Update-SessionEnvironment - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Update-SessionEnvironment.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -Updates the environment variables of the current powershell session with -any environment variable changes that may have occured during a -Chocolatey package install. - -## Syntax - -~~~powershell -Update-SessionEnvironment -~~~ - -## Description - -When Chocolatey installs a package, the package author may add or change -certain environment variables that will affect how the application runs -or how it is accessed. Often, these changes are not visible to the -current PowerShell session. This means the user needs to open a new -PowerShell session before these settings take effect which can render -the installed application nonfunctional until that time. - -Use the Update-SessionEnvironment command to refresh the current -PowerShell session with all environment settings possibly performed by -Chocolatey package installs. - -## Notes - -This method is also added to the user's PowerShell profile as -`refreshenv`. When called as `refreshenv`, the method will provide -additional output. - -Preserves `PSModulePath` as set by the process starting in 0.9.10. - -## Aliases - -`refreshenv` - - -## Inputs - -None - -## Outputs - -None - -## Parameters - - - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Update-SessionEnvironment -Full`. - -View the source for [Update-SessionEnvironment](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Update-SessionEnvironment.ps1) diff --git a/docs/generated/HelpersWriteChocolateyFailure.md b/docs/generated/HelpersWriteChocolateyFailure.md deleted file mode 100644 index 5f06869193..0000000000 --- a/docs/generated/HelpersWriteChocolateyFailure.md +++ /dev/null @@ -1,89 +0,0 @@ -# Write-ChocolateyFailure - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Write-ChocolateyFailure.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -DEPRECATED - DO NOT USE. - -## Syntax - -~~~powershell -Write-ChocolateyFailure ` - [-PackageName <String>] ` - [-FailureMessage <String>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Throws the error message as an error. - -## Notes - -This has been deprecated and is no longer useful as of 0.9.9. Instead -please just use `throw $_.Exception` when catching errors. Although -try/catch is no longer necessary unless you want to do some error -handling. - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -PackageName [<String>] -The name of the package - while this is an arbitrary value, it's -recommended that it matches the package id. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -FailureMessage [<String>] -The message to throw an error with. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Write-ChocolateySuccess|HelpersWriteChocolateySuccess]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Write-ChocolateyFailure -Full`. - -View the source for [Write-ChocolateyFailure](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Write-ChocolateyFailure.ps1) diff --git a/docs/generated/HelpersWriteChocolateySuccess.md b/docs/generated/HelpersWriteChocolateySuccess.md deleted file mode 100644 index 69801a98e7..0000000000 --- a/docs/generated/HelpersWriteChocolateySuccess.md +++ /dev/null @@ -1,77 +0,0 @@ -# Write-ChocolateySuccess - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Write-ChocolateySuccess.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -DEPRECATED - DO NOT USE. - -## Syntax - -~~~powershell -Write-ChocolateySuccess ` - [-PackageName <String>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Writes a success message for a package. - -## Notes - -This has been deprecated and is no longer useful as of 0.9.9. Instead -please just use `throw $_.Exception` when catching errors. Although -try/catch is no longer necessary unless you want to do some error -handling. - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -PackageName [<String>] -The name of the package - while this is an arbitrary value, it's -recommended that it matches the package id. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - -## Links - - * [[Write-ChocolateyFailure|HelpersWriteChocolateyFailure]] - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Write-ChocolateySuccess -Full`. - -View the source for [Write-ChocolateySuccess](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Write-ChocolateySuccess.ps1) diff --git a/docs/generated/HelpersWriteFileUpdateLog.md b/docs/generated/HelpersWriteFileUpdateLog.md deleted file mode 100644 index f47aadb0e6..0000000000 --- a/docs/generated/HelpersWriteFileUpdateLog.md +++ /dev/null @@ -1,106 +0,0 @@ -# Write-FileUpdateLog - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Write-FileUpdateLog.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -DEPRECATED - DO NOT USE. Will be removed in v1. - -## Syntax - -~~~powershell -Write-FileUpdateLog ` - [-LogFilePath <String>] ` - [-LocationToMonitor <String>] ` - [-ScriptToRun <ScriptBlock>] ` - [-ArgumentList <Object[]>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Monitors a location and writes changes to a log file. - -## Notes - -DEPRECATED. - -Has issues with paths longer than 260 characters. See -https://github.com/chocolatey/choco/issues/156 - -## Aliases - -None - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -LogFilePath [<String>] -The full path to where to write the log file. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -LocationToMonitor [<String>] -The location to watch for changes at. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -ScriptToRun [<ScriptBlock>] -The script block of what to run and monitor changes. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### -ArgumentList [<Object[]>] -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 4 -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 5 -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Write-FileUpdateLog -Full`. - -View the source for [Write-FileUpdateLog](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Write-FileUpdateLog.ps1) diff --git a/docs/generated/HelpersWriteFunctionCallLogMessage.md b/docs/generated/HelpersWriteFunctionCallLogMessage.md deleted file mode 100644 index 0e6efe07af..0000000000 --- a/docs/generated/HelpersWriteFunctionCallLogMessage.md +++ /dev/null @@ -1,93 +0,0 @@ -# Write-FunctionCallLogMessage - -<!-- This documentation is automatically generated from https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Write-FunctionCallLogMessage.ps1 using https://github.com/chocolatey/choco/tree/stable/GenerateDocs.ps1. Contributions are welcome at the original location(s). --> - -DO NOT USE. Not part of the public API. - -## Syntax - -~~~powershell -Write-FunctionCallLogMessage ` - [-Invocation <Object>] ` - [-Parameters <Object>] ` - [-IgnoredArguments <Object[]>] [<CommonParameters>] -~~~ - -## Description - -Writes function call as a debug message. - -## Notes - -Available in 0.10.2+. - -This function is not part of the API. - -## Aliases - -None - -## Examples - - **EXAMPLE 1** - -~~~powershell - -# This is how this function should always be called -Write-FunctionCallLogMessage -Invocation $MyInvocation -Parameters $PSBoundParameters -~~~ - -## Inputs - -None - -## Outputs - -None - -## Parameters - -### -Invocation [<Object>] -The invocation of the function (`$MyInvocation`) - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 1 -Default Value | -Accept Pipeline Input? | false - -### -Parameters [<Object>] -The parameters passed to the function (`$PSBoundParameters`) - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 2 -Default Value | -Accept Pipeline Input? | false - -### -IgnoredArguments [<Object[]>] -Allows splatting with arguments that do not apply. Do not use directly. - -Property | Value ----------------------- | ----- -Aliases | -Required? | false -Position? | 3 -Default Value | -Accept Pipeline Input? | false - -### <CommonParameters> - -This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see `about_CommonParameters` http://go.microsoft.com/fwlink/p/?LinkID=113216 . - - - -[[Function Reference|HelpersReference]] - -***NOTE:*** This documentation has been automatically generated from `Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Write-FunctionCallLogMessage -Full`. - -View the source for [Write-FunctionCallLogMessage](https://github.com/chocolatey/choco/tree/stable/src/chocolatey.resources/helpers/functions/Write-FunctionCallLogMessage.ps1) diff --git a/docs/legal/CREDITS.md b/docs/legal/CREDITS.md index 86a932656f..20b4a0df99 100644 --- a/docs/legal/CREDITS.md +++ b/docs/legal/CREDITS.md @@ -43,7 +43,6 @@ The Chocolatey Community Team includes the committers and adds these fine folks: ### Contributors * [choco.exe](https://github.com/chocolatey/choco/graphs/contributors) * [Original Chocolatey - POSH choco](https://github.com/chocolatey/chocolatey/graphs/contributors) - * [Community Package Repository / Chocolatey.org](https://github.com/chocolatey/chocolatey.org/graphs/contributors) ### Other Contributors **NOTE: NEEDS UPDATED** diff --git a/lib/NuGet-Chocolatey/NuGet.Core.dll b/lib/Chocolatey-NuGet.Core.2.11.0.20190305/lib/net4/NuGet.Core.dll similarity index 100% rename from lib/NuGet-Chocolatey/NuGet.Core.dll rename to lib/Chocolatey-NuGet.Core.2.11.0.20190305/lib/net4/NuGet.Core.dll diff --git a/lib/NuGet-Chocolatey/NuGet.Core.pdb b/lib/Chocolatey-NuGet.Core.2.11.0.20190305/lib/net4/NuGet.Core.pdb similarity index 100% rename from lib/NuGet-Chocolatey/NuGet.Core.pdb rename to lib/Chocolatey-NuGet.Core.2.11.0.20190305/lib/net4/NuGet.Core.pdb diff --git a/lib/NuGet-Chocolatey/strongname.cmd b/lib/NuGet-Chocolatey/strongname.cmd deleted file mode 100644 index ea14854b59..0000000000 --- a/lib/NuGet-Chocolatey/strongname.cmd +++ /dev/null @@ -1,16 +0,0 @@ -@echo off -SET DIR=%~d0%~p0% - -::%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86 -::no need to ildasm/al - -echo Make sure you have webtransform here for the merge. Continue? -pause - -mkdir %DIR%\output - -%DIR%..\ILMerge\ILMerge.exe NuGet.Core.dll /keyfile:%DIR%..\..\chocolatey.snk /out:%DIR%\output\NuGet.Core.dll /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" /log:%DIR%ILMerge.DELETE.log /allowDup -REM %DIR%..\ILMerge\ILMerge.exe NuGet.Core.dll /keyfile:%DIR%..\..\chocolatey.snk /out:%DIR%NuGet.Core.dll /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" /log:%DIR%ILMerge.DELETE.log /ndebug /allowDup - -echo Copy the files from the output directory up to this directory and delete everything but this file, NuGet.Core.dll and NuGet.Core.pdb. -pause \ No newline at end of file diff --git a/nuget/chocolatey.lib/chocolatey.lib.nuspec b/nuget/chocolatey.lib/chocolatey.lib.nuspec index ddc8cdc32a..9ccb45a197 100644 --- a/nuget/chocolatey.lib/chocolatey.lib.nuspec +++ b/nuget/chocolatey.lib/chocolatey.lib.nuspec @@ -24,11 +24,11 @@ This is the Chocolatey Library (API / DLL) package which allows Chocolatey to be ### Information - * [Chocolatey Website and Community Package Repository](https://chocolatey.org) + * [Chocolatey Website and Community Package Repository](https://community.chocolatey.org) * [Mailing List](http://groups.google.com/group/chocolatey) / [Release Announcements Only Mailing List](https://groups.google.com/group/chocolatey-announce) / [Build Status Mailing List](http://groups.google.com/group/chocolatey-build-status) * [Twitter](https://twitter.com/chocolateynuget) / [Facebook](https://www.facebook.com/ChocolateySoftware) / [Github](https://github.com/chocolatey) - * [Blog](https://chocolatey.org/blog) / [Newsletter](https://chocolatey.us8.list-manage1.com/subscribe?u=86a6d80146a0da7f2223712e4&id=73b018498d) - * [Documentation](https://chocolatey.org/docs) / [Support](https://chocolatey.org/support) + * [Blog](https://blog.chocolatey.org/) / [Newsletter](https://chocolatey.us8.list-manage1.com/subscribe?u=86a6d80146a0da7f2223712e4&id=73b018498d) + * [Documentation](https://docs.chocolatey.org/en-us/) / [Support](https://chocolatey.org/support) </description> <releaseNotes>See all - https://github.com/chocolatey/choco/blob/stable/CHANGELOG.md diff --git a/nuget/chocolatey/chocolatey.nuspec b/nuget/chocolatey/chocolatey.nuspec index 398e4e4e4c..40f4d05805 100644 --- a/nuget/chocolatey/chocolatey.nuspec +++ b/nuget/chocolatey/chocolatey.nuspec @@ -13,7 +13,7 @@ <requireLicenseAcceptance>false</requireLicenseAcceptance> <copyright>2017-2019 Chocolatey Software, Inc, 2011- 2017 RealDimensions Software, LLC</copyright> <!--<projectSourceUrl>https://github.com/chocolatey/choco</projectSourceUrl> - <docsUrl>https://chocolatey.org/docs</docsUrl> + <docsUrl>https://docs.chocolatey.org/en-us/</docsUrl> <mailingListUrl>https://groups.google.com/forum/#!forum/chocolatey</mailingListUrl> <bugTrackerUrl>https://github.com/chocolatey/choco/issues</bugTrackerUrl>--> <tags>nuget apt-get machine repository chocolatey</tags> @@ -27,14 +27,14 @@ You can host your own sources and add them to Chocolatey, you can extend Chocola ### Information - * [Chocolatey Website and Community Package Repository](https://chocolatey.org) + * [Chocolatey Website and Community Package Repository](https://community.chocolatey.org) * [Mailing List](http://groups.google.com/group/chocolatey) / [Release Announcements Only Mailing List](https://groups.google.com/group/chocolatey-announce) / [Build Status Mailing List](http://groups.google.com/group/chocolatey-build-status) * [Twitter](https://twitter.com/chocolateynuget) / [Facebook](https://www.facebook.com/ChocolateySoftware) / [Github](https://github.com/chocolatey) - * [Blog](https://chocolatey.org/blog) / [Newsletter](https://chocolatey.us8.list-manage1.com/subscribe?u=86a6d80146a0da7f2223712e4&id=73b018498d) - * [Documentation](https://chocolatey.org/docs) / [Support](https://chocolatey.org/support) + * [Blog](https://blog.chocolatey.org/) / [Newsletter](https://chocolatey.us8.list-manage1.com/subscribe?u=86a6d80146a0da7f2223712e4&id=73b018498d) + * [Documentation](https://docs.chocolatey.org/en-us/) / [Support](https://chocolatey.org/support) ### Commands -There are quite a few commands you can call - you should check out the [command reference](https://chocolatey.org/docs/commands-reference). Here are the most common: +There are quite a few commands you can call - you should check out the [command reference](https://docs.chocolatey.org/en-us/choco/commands). Here are the most common: * Help - choco -? or choco command -? * Search - choco search something @@ -53,12 +53,12 @@ There are quite a few commands you can call - you should check out the [command * Install webpi feature - choco install IIS7.5Express -source webpi #### More -For more advanced commands and switches, use `choco -?` or `choco command -h`. You can also look at the [command reference](https://chocolatey.org/docs/commands-reference), including how you can force a package to install the x86 version of a package. +For more advanced commands and switches, use `choco -?` or `choco command -h`. You can also look at the [command reference](https://docs.chocolatey.org/en-us/choco/commands), including how you can force a package to install the x86 version of a package. ### Create Packages? -We have some great guidance on how to do that. Where? I'll give you a hint, it rhymes with socks! [Docs!](https://chocolatey.org/docs/create-packages) +We have some great guidance on how to do that. Where? I'll give you a hint, it rhymes with socks! [Docs!](https://docs.chocolatey.org/en-us/create/create-packages) -In that mess there is a link to the [PowerShell Chocolatey module reference](https://chocolatey.org/docs/helpers-reference). +In that mess there is a link to the [PowerShell Chocolatey module reference](https://docs.chocolatey.org/en-us/create/functions). </description> <releaseNotes> See all - https://github.com/chocolatey/choco/blob/stable/CHANGELOG.md diff --git a/setup.ps1 b/setup.ps1 index 17b80ad72e..9ed7de8713 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -1,6 +1,6 @@ ### install chocolatey ### if(-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall")){ - iex ((new-object net.webclient).DownloadString("https://chocolatey.org/install.ps1")) + iex ((new-object net.webclient).DownloadString("https://community.chocolatey.org/install.ps1")) } cinst pester -version 2.0.2 diff --git a/src/chocolatey.console/chocolatey.console.csproj b/src/chocolatey.console/chocolatey.console.csproj index 9e4abe4268..dbf0ed60f8 100644 --- a/src/chocolatey.console/chocolatey.console.csproj +++ b/src/chocolatey.console/chocolatey.console.csproj @@ -131,7 +131,7 @@ </Reference> <Reference Include="NuGet.Core, Version=2.8.2.0, Culture=neutral, PublicKeyToken=fd112f53c3ab578c, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\lib\NuGet-Chocolatey\NuGet.Core.dll</HintPath> + <HintPath>..\..\lib\Chocolatey-NuGet.Core.2.11.0.20190305\lib\net4\NuGet.Core.dll</HintPath> </Reference> <Reference Include="SimpleInjector"> <HintPath>..\packages\SimpleInjector.2.5.0\lib\net40-client\SimpleInjector.dll</HintPath> diff --git a/src/chocolatey.resources/helpers/chocolateyInstaller.psm1 b/src/chocolatey.resources/helpers/chocolateyInstaller.psm1 index 71ce959713..c915808b71 100644 --- a/src/chocolatey.resources/helpers/chocolateyInstaller.psm1 +++ b/src/chocolatey.resources/helpers/chocolateyInstaller.psm1 @@ -1,4 +1,4 @@ -# Copyright © 2017 Chocolatey Software, Inc. +# Copyright © 2017 Chocolatey Software, Inc. # Copyright © 2015 - 2017 RealDimensions Software, LLC # Copyright © 2011 - 2015 RealDimensions Software, LLC & original authors/contributors from https://github.com/chocolatey/chocolatey # @@ -40,11 +40,11 @@ Write-Debug "Host version is $($host.Version), PowerShell Version is '$($PSVersi Get-Item $helpersPath\functions\*.ps1 | ? { -not ($_.Name.Contains(".Tests.")) } | % { - . $_.FullName; - #Export-ModuleMember -Function $_.BaseName + . $_.FullName; + #Export-ModuleMember -Function $_.BaseName } -# Export built-in functions prior to loading extensions so that +# Export built-in functions prior to loading extensions so that # extension-specific loading behavior can be used based on built-in # functions. This allows those overrides to be much more deterministic # This behavior was broken from v0.9.9.5 - v0.10.3. @@ -66,14 +66,18 @@ if (Test-Path($extensionsPath)) { Write-Debug "Loading '$fileNameWithoutExtension' extension."; $loaded = $false $currentAssemblies | % { - $name = $_.GetName().Name - if ($name -eq $fileNameWithoutExtension) { - Import-Module $_ - $loaded = $true + $name = $_.GetName().Name + if ($name -eq $fileNameWithoutExtension) { + Import-Module $_ + $loaded = $true } - } + } - if (!$loaded) { Import-Module $path; } + if (!$loaded) { + if ($fileNameWithoutExtension -ne "chocolateygui.licensed") { + Import-Module $path; + } + } } catch { if ($env:ChocolateyPowerShellHost -eq 'true') { Write-Warning "Import failed for '$path'. Error: '$_'" diff --git a/src/chocolatey.resources/helpers/functions/Get-CheckSumValid.ps1 b/src/chocolatey.resources/helpers/functions/Get-CheckSumValid.ps1 index bb2e422fa9..b64da7c06c 100644 --- a/src/chocolatey.resources/helpers/functions/Get-CheckSumValid.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-CheckSumValid.ps1 @@ -45,7 +45,7 @@ to what is expected. .NOTES This uses the checksum.exe tool available separately at -https://chocolatey.org/packages/checksum. +https://community.chocolatey.org/packages/checksum. Options that affect checksum verification: @@ -85,17 +85,17 @@ and a moderator (if applicable), plus any moderation review has intended for you to receive with this package. If you are looking at a remote source that uses the same url for updates, you will need to ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) +resource updates. You should look into [automatic packaging](https://docs.chocolatey.org/en-us/create/automatic-packages) to help provide that functionality. **NOTE:** To determine checksums, you can get that from the original site if provided. You can also use the [checksum tool available on -the community feed](https://chocolatey.org/packages/checksum) (`choco install checksum`) +the community feed](https://community.chocolatey.org/packages/checksum) (`choco install checksum`) and use it e.g. `checksum -t sha256 -f path\to\file`. Ensure you provide checksums for all remote resources used. .PARAMETER ChecksumType -The type of checkum that the file is validated with - 'md5', 'sha1', +The type of checksum that the file is validated with - 'md5', 'sha1', 'sha256' or 'sha512' - defaults to 'md5'. MD5 is not recommended as certain organizations need to use FIPS @@ -146,7 +146,7 @@ param( Write-Warning "Missing package checksums are not allowed (by default for HTTP/FTP, `n HTTPS when feature 'allowEmptyChecksumsSecure' is disabled) for `n safety and security reasons. Although we strongly advise against it, `n if you need this functionality, please set the feature `n 'allowEmptyChecksums' ('choco feature enable -n `n allowEmptyChecksums') `n or pass in the option '--allow-empty-checksums'. You can also pass `n checksums at runtime (recommended). See `choco install -?` for details." Write-Debug "If you are a maintainer attempting to determine the checksum for packaging purposes, please run `n 'choco install checksum' and run 'checksum -t sha256 -f $file' `n Ensure you do this for all remote resources." - if ($PSVersionTable.PSVersion.Major -ge 4){ + if ($PSVersionTable.PSVersion.Major -ge 4){ Write-Debug "Because you are running Powershell with a major version of v4 or greater, you could also opt to run `n '(Get-FileHash -Path $file -Algorithm SHA256).Hash' `n rather than install a separate tool." } diff --git a/src/chocolatey.resources/helpers/functions/Get-ChocolateyUnzip.ps1 b/src/chocolatey.resources/helpers/functions/Get-ChocolateyUnzip.ps1 index 06763379b2..7bf0f804d3 100644 --- a/src/chocolatey.resources/helpers/functions/Get-ChocolateyUnzip.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-ChocolateyUnzip.ps1 @@ -68,10 +68,11 @@ This is a directory where you would like the unzipped files to end up. If it does not exist, it will be created. .PARAMETER SpecificFolder -OPTIONAL - This is a specific directory within zip file to extract. +OPTIONAL - This is a specific directory within zip file to extract. The +folder and its contents will be extracted to the destination. .PARAMETER PackageName -OPTIONAL - This will faciliate logging unzip activity for subsequent +OPTIONAL - This will facilitate logging unzip activity for subsequent uninstalls .PARAMETER IgnoredArguments @@ -88,7 +89,7 @@ Install-ChocolateyZipPackage #> param( [alias("file")][parameter(Mandatory=$false, Position=0)][string] $fileFullPath, - [parameter(Mandatory=$true, Position=1)][string] $destination, + [alias("unzipLocation")][parameter(Mandatory=$true, Position=1)][string] $destination, [parameter(Mandatory=$false, Position=2)][string] $specificFolder, [parameter(Mandatory=$false, Position=3)][string] $packageName, [alias("file64")][parameter(Mandatory=$false)][string] $fileFullPath64, diff --git a/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 b/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 index 1de01abb0c..3533e26ff1 100644 --- a/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 @@ -43,7 +43,7 @@ This is the full path of the resulting file name. This is the 32 bit url to download the resource from. This resource can be used on 64 bit systems when a package has both a Url and Url64bit specified if a user passes `--forceX86`. If there is only a 64 bit url -available, please remove do not use the paramter (only use Url64bit). +available, please remove do not use the parameter (only use Url64bit). Will fail on 32bit systems if missing or if a user attempts to force a 32 bit installation on a 64 bit system. @@ -76,11 +76,11 @@ and a moderator (if applicable), plus any moderation review has intended for you to receive with this package. If you are looking at a remote source that uses the same url for updates, you will need to ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) +resource updates. You should look into [automatic packaging](https://docs.chocolatey.org/en-us/create/automatic-packages) to help provide that functionality. .PARAMETER ChecksumType -The type of checkum that the file is validated with - valid +The type of checksum that the file is validated with - valid values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to 'md5'. MD5 is not recommended as certain organizations need to use FIPS @@ -103,17 +103,17 @@ and a moderator (if applicable), plus any moderation review has intended for you to receive with this package. If you are looking at a remote source that uses the same url for updates, you will need to ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) +resource updates. You should look into [automatic packaging](https://docs.chocolatey.org/en-us/create/automatic-packages) to help provide that functionality. **NOTE:** To determine checksums, you can get that from the original site if provided. You can also use the [checksum tool available on -the community feed](https://chocolatey.org/packages/checksum) (`choco install checksum`) +the community feed](https://community.chocolatey.org/packages/checksum) (`choco install checksum`) and use it e.g. `checksum -t sha256 -f path\to\file`. Ensure you provide checksums for all remote resources used. .PARAMETER ChecksumType64 -OPTIONAL - The type of checkum that the file is validated with - valid +OPTIONAL - The type of checksum that the file is validated with - valid values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to ChecksumType parameter value. diff --git a/src/chocolatey.resources/helpers/functions/Get-EnvironmentVariable.ps1 b/src/chocolatey.resources/helpers/functions/Get-EnvironmentVariable.ps1 index 726ea1f0f0..224d9cc5d3 100644 --- a/src/chocolatey.resources/helpers/functions/Get-EnvironmentVariable.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-EnvironmentVariable.ps1 @@ -30,10 +30,10 @@ environment variables, mainly when not expanding the variables is a must. .PARAMETER Name -The environemnt variable you want to get the value from. +The environment variable you want to get the value from. .PARAMETER Scope -The environemnt variable target scope. This is `Process`, `User`, or +The environment variable target scope. This is `Process`, `User`, or `Machine`. .PARAMETER PreserveVariables diff --git a/src/chocolatey.resources/helpers/functions/Get-EnvironmentVariableNames.ps1 b/src/chocolatey.resources/helpers/functions/Get-EnvironmentVariableNames.ps1 index d9e8248e57..51eb15faf6 100644 --- a/src/chocolatey.resources/helpers/functions/Get-EnvironmentVariableNames.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-EnvironmentVariableNames.ps1 @@ -34,7 +34,7 @@ None A list of environment variables names. .PARAMETER Scope -The environemnt variable target scope. This is `Process`, `User`, or +The environment variable target scope. This is `Process`, `User`, or `Machine`. .EXAMPLE diff --git a/src/chocolatey.resources/helpers/functions/Get-FtpFile.ps1 b/src/chocolatey.resources/helpers/functions/Get-FtpFile.ps1 index 61cc1ff93d..731d97edd1 100644 --- a/src/chocolatey.resources/helpers/functions/Get-FtpFile.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-FtpFile.ps1 @@ -192,7 +192,7 @@ param( Set-PowerShellExitCode 404 if ($env:DownloadCacheAvailable -eq 'true') { - throw "The remote file either doesn't exist, is unauthorized, or is forbidden for url '$url'. $($_.Exception.Message) `nThis package is likely not broken for licensed users - see https://chocolatey.org/docs/features-private-cdn." + throw "The remote file either doesn't exist, is unauthorized, or is forbidden for url '$url'. $($_.Exception.Message) `nThis package is likely not broken for licensed users - see https://docs.chocolatey.org/en-us/features/private-cdn." } else { throw "The remote file either doesn't exist, is unauthorized, or is forbidden for url '$url'. $($_.Exception.Message)" } diff --git a/src/chocolatey.resources/helpers/functions/Get-PackageParameters.ps1 b/src/chocolatey.resources/helpers/functions/Get-PackageParameters.ps1 index 7fddc410f1..f70fce0e81 100644 --- a/src/chocolatey.resources/helpers/functions/Get-PackageParameters.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-PackageParameters.ps1 @@ -34,15 +34,15 @@ use in package scripts. By default this will look at (`--package-parameters-sensitive="'/PASSWORD:value'"` in commercial editions). -Learn more about using this at https://chocolatey.org/docs/how-to-parse-package-parameters-argument +Learn more about using this at https://docs.chocolatey.org/en-us/guides/create/parse-packageparameters-argument .NOTES Available in 0.10.8+. If you need compatibility with older versions, take a dependency on the `chocolatey-core.extension` package which also provides this functionality. If you are pushing to the community -package repository (https://chocolatey.org/packages), you are required +package repository (https://community.chocolatey.org/packages), you are required to take a dependency on the core extension until January 2018. How to -do this is explained at https://chocolatey.org/docs/how-to-parse-package-parameters-argument#step-3---use-core-community-extension. +do this is explained at https://docs.chocolatey.org/en-us/guides/create/parse-packageparameters-argument#step-3---use-core-community-extension. The differences between this and the `chocolatey-core.extension` package functionality is that the extension function can only do one string at a @@ -86,7 +86,7 @@ $pp = Get-PackageParameters .EXAMPLE > -# see https://chocolatey.org/docs/how-to-parse-package-parameters-argument +# see https://docs.chocolatey.org/en-us/guides/create/parse-packageparameters-argument # command line call: `choco install <pkg_id> --params "'/LICENSE:value'"` $pp = Get-PackageParameters # Read-Host, PromptForChoice, etc are not blocking calls with Chocolatey. @@ -101,7 +101,7 @@ if (!$pp['LICENSE']) { $pp['LICENSE'] = '1234' } > $pp = Get-PackageParameters if (!$pp['UserName']) { $pp['UserName'] = "$env:UserName" } -# Requires Choocolatey v0.10.8+ for Read-Host -AsSecureString +# Requires Chocolatey v0.10.8+ for Read-Host -AsSecureString if (!$pp['Password']) { $pp['Password'] = Read-Host "Enter password for $($pp['UserName']):" -AsSecureString} # fail the install/upgrade if not value is not determined if (!$pp['Password']) { throw "Package needs Password to install, that must be provided in params or in prompt." } diff --git a/src/chocolatey.resources/helpers/functions/Get-WebFile.ps1 b/src/chocolatey.resources/helpers/functions/Get-WebFile.ps1 index 9a33819119..353172d2c7 100644 --- a/src/chocolatey.resources/helpers/functions/Get-WebFile.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-WebFile.ps1 @@ -131,7 +131,7 @@ param( $passwd = ConvertTo-SecureString $explicitProxyPassword -AsPlainText -Force $proxy.Credentials = New-Object System.Management.Automation.PSCredential ($explicitProxyUser, $passwd) } - + if ($explicitProxyBypassList -ne $null -and $explicitProxyBypassList -ne '') { $proxy.BypassList = $explicitProxyBypassList.Split(',', [System.StringSplitOptions]::RemoveEmptyEntries) } @@ -179,15 +179,15 @@ param( if ($options.Headers.Count -gt 0) { Write-Debug "Setting custom headers" - foreach ($item in $options.Headers.GetEnumerator()) { - $uri = (new-object system.uri $url) - Write-Debug($item.Key + ':' + $item.Value) - switch ($item.Key) { - 'Accept' {$req.Accept = $item.Value} - 'Cookie' {$req.CookieContainer.SetCookies($uri, $item.Value)} - 'Referer' {$req.Referer = $item.Value} - 'User-Agent' {$req.UserAgent = $item.Value} - Default {$req.Headers.Add($item.Key, $item.Value)} + foreach ($key in $options.headers.keys) { + $uri = (New-Object -Typename system.uri $url) + switch ($key) { + 'Accept' {$req.Accept = $options.headers.$key} + 'Cookie' {$req.CookieContainer.SetCookies($uri, $options.headers.$key)} + 'Referer' {$req.Referer = $options.headers.$key} + 'User-Agent' {$req.UserAgent = $options.headers.$key} + 'Authorization' {$re.Authorization = $options.headers.$key} + Default {$req.Headers.Add($key, $options.headers.$key)} } } } @@ -209,7 +209,7 @@ param( if ($headers.ContainsKey("Content-Type")) { $contentType = $headers['Content-Type'] - if ($contentType -ne $null) { + if ($null -ne $contentType) { if ($contentType.ToLower().Contains("text/html") -or $contentType.ToLower().Contains("text/plain")) { Write-Warning "$fileName is of content type $contentType" Set-Content -Path $binaryIsTextCheckFile -Value "$fileName has content type $contentType" -Encoding UTF8 -Force @@ -315,7 +315,7 @@ param( } } } catch { - if ($req -ne $null) { + if ($null -ne $req) { $req.ServicePoint.MaxIdleTime = 0 $req.Abort(); # ruthlessly remove $req to ensure it isn't reused @@ -326,12 +326,12 @@ param( Set-PowerShellExitCode 404 if ($env:DownloadCacheAvailable -eq 'true') { - throw "The remote file either doesn't exist, is unauthorized, or is forbidden for url '$url'. $($_.Exception.Message) `nThis package is likely not broken for licensed users - see https://chocolatey.org/docs/features-private-cdn." + throw "The remote file either doesn't exist, is unauthorized, or is forbidden for url '$url'. $($_.Exception.Message) `nThis package is likely not broken for licensed users - see https://docs.chocolatey.org/en-us/features/private-cdn." } else { throw "The remote file either doesn't exist, is unauthorized, or is forbidden for url '$url'. $($_.Exception.Message)" } } finally { - if ($res -ne $null) { + if ($null -ne $res) { $res.Close() } diff --git a/src/chocolatey.resources/helpers/functions/Install-ChocolateyDesktopLink.ps1 b/src/chocolatey.resources/helpers/functions/Install-ChocolateyDesktopLink.ps1 index c9e1472c88..5573c14efa 100644 --- a/src/chocolatey.resources/helpers/functions/Install-ChocolateyDesktopLink.ps1 +++ b/src/chocolatey.resources/helpers/functions/Install-ChocolateyDesktopLink.ps1 @@ -23,11 +23,11 @@ DEPRECATED - This adds a shortcut on the desktop to the specified file path. Determines the desktop folder and creates a shortcut to the specified file path. Will not throw errors if it fails. -It is recommended you use `Install-ChocolateyShorctut` instead of this +It is recommended you use `Install-ChocolateyShortcut` instead of this method as this has been deprecated. .NOTES -Deprecated in favor of [[`Install-ChocolateyShortcut`|HelpersInstallChocolateyShortcut]]. +Deprecated in favor of https://docs.chocolatey.org/en-us/create/functions/install-chocolateyshortcut. If this errors, such as it will if being installed under the local SYSTEM account, it will display a warning instead of failing a package installation. diff --git a/src/chocolatey.resources/helpers/functions/Install-ChocolateyPackage.ps1 b/src/chocolatey.resources/helpers/functions/Install-ChocolateyPackage.ps1 index d5ac643bcf..2e9cb8db0a 100644 --- a/src/chocolatey.resources/helpers/functions/Install-ChocolateyPackage.ps1 +++ b/src/chocolatey.resources/helpers/functions/Install-ChocolateyPackage.ps1 @@ -109,7 +109,7 @@ everything you call against that file, as in This is the 32 bit url to download the resource from. This resource can be used on 64 bit systems when a package has both a Url and Url64bit specified if a user passes `--forceX86`. If there is only a 64 bit url -available, please remove do not use the paramter (only use Url64bit). +available, please remove do not use the parameter (only use Url64bit). Will fail on 32bit systems if missing or if a user attempts to force a 32 bit installation on a 64 bit system. @@ -143,17 +143,17 @@ and a moderator (if applicable), plus any moderation review has intended for you to receive with this package. If you are looking at a remote source that uses the same url for updates, you will need to ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) +resource updates. You should look into [automatic packaging](https://docs.chocolatey.org/en-us/create/automatic-packages) to help provide that functionality. **NOTE:** To determine checksums, you can get that from the original site if provided. You can also use the [checksum tool available on -the community feed](https://chocolatey.org/packages/checksum) (`choco install checksum`) +the community feed](https://community.chocolatey.org/packages/checksum) (`choco install checksum`) and use it e.g. `checksum -t sha256 -f path\to\file`. Ensure you provide checksums for all remote resources used. .PARAMETER ChecksumType -The type of checkum that the file is validated with - valid +The type of checksum that the file is validated with - valid values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to 'md5'. MD5 is not recommended as certain organizations need to use FIPS @@ -176,11 +176,11 @@ and a moderator (if applicable), plus any moderation review has intended for you to receive with this package. If you are looking at a remote source that uses the same url for updates, you will need to ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) +resource updates. You should look into [automatic packaging](https://docs.chocolatey.org/en-us/create/automatic-packages) to help provide that functionality. .PARAMETER ChecksumType64 -OPTIONAL - The type of checkum that the file is validated with - valid +OPTIONAL - The type of checksum that the file is validated with - valid values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to ChecksumType parameter value. @@ -220,6 +220,13 @@ functionality (see links). .PARAMETER IgnoredArguments Allows splatting with arguments that do not apply. Do not use directly. +.PARAMETER BeforeInstall Script +Specifies the commands to run after download has completed but before install steps have begun. +Available in 0.10.16+. + +Use this for starting an auxilary process such as AutoHotkey, so that any timeouts are not +affected by the time to download. + .EXAMPLE > $packageName= 'bob' @@ -271,8 +278,6 @@ Install-ChocolateyPackage @packageArgs > $packageName= 'bob' $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" -$url = 'https://somewhere.com/file.msi' -$url64 = 'https://somewhere.com/file-x64.msi' $urlTransform = 'https://somewhere.com/file.mst' $mstFileLocation = Join-Path $toolsDir 'transform.mst' @@ -359,6 +364,7 @@ param( [parameter(Mandatory=$false)] [alias("useOnlyPackageSilentArgs")][switch] $useOnlyPackageSilentArguments = $false, [parameter(Mandatory=$false)][switch]$useOriginalLocation, + [parameter(Mandatory=$false)][scriptblock] $beforeInstall, [parameter(ValueFromRemainingArguments = $true)][Object[]] $ignoredArguments ) [string]$silentArgs = $silentArgs -join ' ' @@ -405,6 +411,10 @@ param( -GetOriginalFileName } + if ($beforeInstall) { + & $beforeInstall + } + Install-ChocolateyInstallPackage -PackageName $packageName ` -FileType $fileType ` -SilentArgs $silentArgs ` diff --git a/src/chocolatey.resources/helpers/functions/Install-ChocolateyPowershellCommand.ps1 b/src/chocolatey.resources/helpers/functions/Install-ChocolateyPowershellCommand.ps1 index 816c60f93e..5eddd3e0b2 100644 --- a/src/chocolatey.resources/helpers/functions/Install-ChocolateyPowershellCommand.ps1 +++ b/src/chocolatey.resources/helpers/functions/Install-ChocolateyPowershellCommand.ps1 @@ -86,11 +86,11 @@ and a moderator (if applicable), plus any moderation review has intended for you to receive with this package. If you are looking at a remote source that uses the same url for updates, you will need to ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) +resource updates. You should look into [automatic packaging](https://docs.chocolatey.org/en-us/create/automatic-packages) to help provide that functionality. .PARAMETER ChecksumType -The type of checkum that the file is validated with - valid +The type of checksum that the file is validated with - valid values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to 'md5'. MD5 is not recommended as certain organizations need to use FIPS @@ -113,17 +113,17 @@ and a moderator (if applicable), plus any moderation review has intended for you to receive with this package. If you are looking at a remote source that uses the same url for updates, you will need to ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) +resource updates. You should look into [automatic packaging](https://docs.chocolatey.org/en-us/create/automatic-packages) to help provide that functionality. **NOTE:** To determine checksums, you can get that from the original site if provided. You can also use the [checksum tool available on -the community feed](https://chocolatey.org/packages/checksum) (`choco install checksum`) +the community feed](https://community.chocolatey.org/packages/checksum) (`choco install checksum`) and use it e.g. `checksum -t sha256 -f path\to\file`. Ensure you provide checksums for all remote resources used. .PARAMETER ChecksumType64 -OPTIONAL - The type of checkum that the file is validated with - valid +OPTIONAL - The type of checksum that the file is validated with - valid values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to ChecksumType parameter value. diff --git a/src/chocolatey.resources/helpers/functions/Install-ChocolateyShortcut.ps1 b/src/chocolatey.resources/helpers/functions/Install-ChocolateyShortcut.ps1 index 9af7438d00..bceb4285e7 100644 --- a/src/chocolatey.resources/helpers/functions/Install-ChocolateyShortcut.ps1 +++ b/src/chocolatey.resources/helpers/functions/Install-ChocolateyShortcut.ps1 @@ -49,7 +49,7 @@ As of v0.10.12, the directory will be created unless it contains environment variable expansion like `%AppData%\FooBar`. .PARAMETER Arguments -OPTIONAL - Additonal arguments that should be passed along to the new +OPTIONAL - Additional arguments that should be passed along to the new shortcut. .PARAMETER IconLocation diff --git a/src/chocolatey.resources/helpers/functions/Install-ChocolateyVsixPackage.ps1 b/src/chocolatey.resources/helpers/functions/Install-ChocolateyVsixPackage.ps1 index f86866c591..821d6bb704 100644 --- a/src/chocolatey.resources/helpers/functions/Install-ChocolateyVsixPackage.ps1 +++ b/src/chocolatey.resources/helpers/functions/Install-ChocolateyVsixPackage.ps1 @@ -66,30 +66,30 @@ by looking at the folders under Program Files / Program Files (x86). In 0.10.4+, `VisualStudioVersion` is an alias for VsVersion. .PARAMETER Checksum -The checksum hash value of the Url resource. This allows a checksum to +The checksum hash value of the Url resource. This allows a checksum to be validated for files that are not local. The checksum type is covered -by ChecksumType. +by ChecksumType. -**NOTE:** Checksums in packages are meant as a measure to validate the +**NOTE:** Checksums in packages are meant as a measure to validate the originally intended file that was used in the creation of a package is the same file that is received at a future date. Since this is used for -other steps in the process related to the community repository, it +other steps in the process related to the community repository, it ensures that the file a user receives is the same file a maintainer -and a moderator (if applicable), plus any moderation review has -intended for you to receive with this package. If you are looking at a -remote source that uses the same url for updates, you will need to -ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) +and a moderator (if applicable), plus any moderation review has +intended for you to receive with this package. If you are looking at a +remote source that uses the same url for updates, you will need to +ensure the package also stays updated in line with those remote +resource updates. You should look into [automatic packaging](https://docs.chocolatey.org/en-us/create/automatic-packages) to help provide that functionality. -**NOTE:** To determine checksums, you can get that from the original -site if provided. You can also use the [checksum tool available on -the community feed](https://chocolatey.org/packages/checksum) (`choco install checksum`) -and use it e.g. `checksum -t sha256 -f path\to\file`. Ensure you +**NOTE:** To determine checksums, you can get that from the original +site if provided. You can also use the [checksum tool available on +the community feed](https://community.chocolatey.org/packages/checksum) (`choco install checksum`) +and use it e.g. `checksum -t sha256 -f path\to\file`. Ensure you provide checksums for all remote resources used. .PARAMETER ChecksumType -The type of checkum that the file is validated with - valid +The type of checksum that the file is validated with - valid values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to 'md5'. MD5 is not recommended as certain organizations need to use FIPS diff --git a/src/chocolatey.resources/helpers/functions/Install-ChocolateyZipPackage.ps1 b/src/chocolatey.resources/helpers/functions/Install-ChocolateyZipPackage.ps1 index d6aad516c7..ee551fb56c 100644 --- a/src/chocolatey.resources/helpers/functions/Install-ChocolateyZipPackage.ps1 +++ b/src/chocolatey.resources/helpers/functions/Install-ChocolateyZipPackage.ps1 @@ -48,12 +48,16 @@ recommended that it matches the package id. This is the 32 bit url to download the resource from. This resource can be used on 64 bit systems when a package has both a Url and Url64bit specified if a user passes `--forceX86`. If there is only a 64 bit url -available, please remove do not use the paramter (only use Url64bit). +available, please remove do not use the parameter (only use Url64bit). Will fail on 32bit systems if missing or if a user attempts to force a 32 bit installation on a 64 bit system. Prefer HTTPS when available. Can be HTTP, FTP, or File URIs. +.PARAMETER SpecificFolder +OPTIONAL - This is a specific directory within zip file to extract. The +folder and its contents will be extracted to the destination. + .PARAMETER Url64bit OPTIONAL - If there is a 64 bit resource available, use this parameter. Chocolatey will automatically determine if the user is @@ -85,17 +89,17 @@ and a moderator (if applicable), plus any moderation review has intended for you to receive with this package. If you are looking at a remote source that uses the same url for updates, you will need to ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) +resource updates. You should look into [automatic packaging](https://docs.chocolatey.org/en-us/create/automatic-packages) to help provide that functionality. **NOTE:** To determine checksums, you can get that from the original site if provided. You can also use the [checksum tool available on -the community feed](https://chocolatey.org/packages/checksum) (`choco install checksum`) +the community feed](https://community.chocolatey.org/packages/checksum) (`choco install checksum`) and use it e.g. `checksum -t sha256 -f path\to\file`. Ensure you provide checksums for all remote resources used. .PARAMETER ChecksumType -The type of checkum that the file is validated with - valid +The type of checksum that the file is validated with - valid values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to 'md5'. MD5 is not recommended as certain organizations need to use FIPS @@ -118,11 +122,11 @@ and a moderator (if applicable), plus any moderation review has intended for you to receive with this package. If you are looking at a remote source that uses the same url for updates, you will need to ensure the package also stays updated in line with those remote -resource updates. You should look into [automatic packaging](https://chocolatey.org/docs/automatic-packages) +resource updates. You should look into [automatic packaging](https://docs.chocolatey.org/en-us/create/automatic-packages) to help provide that functionality. .PARAMETER ChecksumType64 -OPTIONAL - The type of checkum that the file is validated with - valid +OPTIONAL - The type of checksum that the file is validated with - valid values are 'md5', 'sha1', 'sha256' or 'sha512' - defaults to ChecksumType parameter value. @@ -203,7 +207,7 @@ param( if ($url -eq '' -or $url -eq $null) { $url = $file - } + } if ($url64bit -eq '' -or $url64bit -eq $null) { $url64bit = $file64 } diff --git a/src/chocolatey.resources/helpers/functions/Update-SessionEnvironment.ps1 b/src/chocolatey.resources/helpers/functions/Update-SessionEnvironment.ps1 index 74d304356f..a3089a762f 100644 --- a/src/chocolatey.resources/helpers/functions/Update-SessionEnvironment.ps1 +++ b/src/chocolatey.resources/helpers/functions/Update-SessionEnvironment.ps1 @@ -56,31 +56,34 @@ None } if ($refreshEnv) { - Write-Output "Refreshing environment variables from the registry for powershell.exe. Please wait..." + Write-Output 'Refreshing environment variables from the registry for powershell.exe. Please wait...' } else { - Write-Verbose "Refreshing environment variables from the registry." + Write-Verbose 'Refreshing environment variables from the registry.' } $userName = $env:USERNAME $architecture = $env:PROCESSOR_ARCHITECTURE $psModulePath = $env:PSModulePath - #ordering is important here, $user comes after so we can override $machine - 'Process', 'Machine', 'User' | - % { - $scope = $_ - Get-EnvironmentVariableNames -Scope $scope | - % { - Set-Item "Env:$($_)" -Value (Get-EnvironmentVariable -Scope $scope -Name $_) + #ordering is important here, $user should override $machine... + $ScopeList = 'Process', 'Machine' + if ($userName -notin 'SYSTEM', "${env:COMPUTERNAME}`$") { + # but only if not running as the SYSTEM/machine in which case user can be ignored. + $ScopeList += 'User' + } + foreach ($Scope in $ScopeList) { + Get-EnvironmentVariableNames -Scope $Scope | + ForEach-Object { + Set-Item "Env:$_" -Value (Get-EnvironmentVariable -Scope $Scope -Name $_) } - } + } #Path gets special treatment b/c it munges the two together $paths = 'Machine', 'User' | - % { + ForEach-Object { (Get-EnvironmentVariable -Name 'PATH' -Scope $_) -split ';' } | - Select -Unique + Select-Object -Unique $Env:PATH = $paths -join ';' # PSModulePath is almost always updated by process, so we want to preserve it. @@ -91,7 +94,7 @@ None if ($architecture) { $env:PROCESSOR_ARCHITECTURE = $architecture; } if ($refreshEnv) { - Write-Output "Finished" + Write-Output 'Finished' } } diff --git a/src/chocolatey.tests.integration/chocolatey.tests.integration.csproj b/src/chocolatey.tests.integration/chocolatey.tests.integration.csproj index aaf566b4d4..38a6fa0521 100644 --- a/src/chocolatey.tests.integration/chocolatey.tests.integration.csproj +++ b/src/chocolatey.tests.integration/chocolatey.tests.integration.csproj @@ -65,7 +65,7 @@ </Reference> <Reference Include="NuGet.Core, Version=2.8.2.0, Culture=neutral, PublicKeyToken=fd112f53c3ab578c, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\lib\NuGet-Chocolatey\NuGet.Core.dll</HintPath> + <HintPath>..\..\lib\Chocolatey-NuGet.Core.2.11.0.20190305\lib\net4\NuGet.Core.dll</HintPath> </Reference> <Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> diff --git a/src/chocolatey.tests/chocolatey.tests.csproj b/src/chocolatey.tests/chocolatey.tests.csproj index db60a3cdcd..e00f6ffe15 100644 --- a/src/chocolatey.tests/chocolatey.tests.csproj +++ b/src/chocolatey.tests/chocolatey.tests.csproj @@ -61,7 +61,7 @@ </Reference> <Reference Include="NuGet.Core, Version=2.8.2.0, Culture=neutral, PublicKeyToken=fd112f53c3ab578c, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\lib\NuGet-Chocolatey\NuGet.Core.dll</HintPath> + <HintPath>..\..\lib\Chocolatey-NuGet.Core.2.11.0.20190305\lib\net4\NuGet.Core.dll</HintPath> </Reference> <Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> diff --git a/src/chocolatey.tests/infrastructure.app/services/TemplateServiceSpecs.cs b/src/chocolatey.tests/infrastructure.app/services/TemplateServiceSpecs.cs index fb9f9f9659..1ca436debe 100644 --- a/src/chocolatey.tests/infrastructure.app/services/TemplateServiceSpecs.cs +++ b/src/chocolatey.tests/infrastructure.app/services/TemplateServiceSpecs.cs @@ -231,6 +231,7 @@ public class when_generate_is_called : TemplateServiceSpecsBase private readonly ChocolateyConfiguration config = new ChocolateyConfiguration(); private readonly List<string> files = new List<string>(); private readonly HashSet<string> directoryCreated = new HashSet<string>(StringComparer.InvariantCultureIgnoreCase); + private readonly UTF8Encoding utf8WithoutBOM = new UTF8Encoding(false); public override void Context() { @@ -250,6 +251,8 @@ public override void Context() fileSystem.Setup(x => x.directory_exists(It.IsAny<string>())).Returns<string>(dirPath => dirPath.EndsWith("templates\\default")); fileSystem.Setup(x => x.write_file(It.IsAny<string>(), It.IsAny<string>(), Encoding.UTF8)) .Callback((string filePath, string fileContent, Encoding encoding) => files.Add(filePath)); + fileSystem.Setup(x => x.write_file(It.IsAny<string>(), It.IsAny<string>(), utf8WithoutBOM)) + .Callback((string filePath, string fileContent, Encoding encoding) => files.Add(filePath)); fileSystem.Setup(x => x.delete_directory_if_exists(It.IsAny<string>(), true)); fileSystem.Setup(x => x.create_directory_if_not_exists(It.IsAny<string>())).Callback( (string directory) => @@ -322,6 +325,7 @@ public class when_generate_is_called_with_nested_folders : TemplateServiceSpecsB private readonly ChocolateyConfiguration config = new ChocolateyConfiguration(); private readonly List<string> files = new List<string>(); private readonly HashSet<string> directoryCreated = new HashSet<string>(StringComparer.InvariantCultureIgnoreCase); + private readonly UTF8Encoding utf8WithoutBOM = new UTF8Encoding(false); public override void Context() { @@ -341,6 +345,8 @@ public override void Context() fileSystem.Setup(x => x.directory_exists(It.IsAny<string>())).Returns<string>(dirPath => dirPath.EndsWith("templates\\test")); fileSystem.Setup(x => x.write_file(It.IsAny<string>(), It.IsAny<string>(), Encoding.UTF8)) .Callback((string filePath, string fileContent, Encoding encoding) => files.Add(filePath)); + fileSystem.Setup(x => x.write_file(It.IsAny<string>(), It.IsAny<string>(), utf8WithoutBOM)) + .Callback((string filePath, string fileContent, Encoding encoding) => files.Add(filePath)); fileSystem.Setup(x => x.delete_directory_if_exists(It.IsAny<string>(), true)); fileSystem.Setup(x => x.get_files(It.IsAny<string>(), "*.*", SearchOption.AllDirectories)) .Returns(new[] { "templates\\test\\template.nuspec", "templates\\test\\random.txt", "templates\\test\\tools\\chocolateyInstall.ps1", "templates\\test\\tools\\lower\\another.ps1" }); diff --git a/src/chocolatey.tests/infrastructure/filesystem/DotNetFileSystemSpecs.cs b/src/chocolatey.tests/infrastructure/filesystem/DotNetFileSystemSpecs.cs index c4f067d93d..16d53e266b 100644 --- a/src/chocolatey.tests/infrastructure/filesystem/DotNetFileSystemSpecs.cs +++ b/src/chocolatey.tests/infrastructure/filesystem/DotNetFileSystemSpecs.cs @@ -214,10 +214,17 @@ public override void Because() [Fact] public void GetExecutablePath_should_find_existing_executable() { - FileSystem.get_executable_path("ls").ShouldEqual( - Platform.get_platform() != PlatformType.Windows - ? "/bin/ls" - : "ls"); + if (Platform.get_platform() == PlatformType.Windows) + { + FileSystem.get_executable_path("ls").ShouldEqual("ls"); + } + else + { + new string[] + { + "/bin/ls", "/usr/bin/ls" + }.ShouldContain(FileSystem.get_executable_path("ls")); + } } [Fact] diff --git a/src/chocolatey/chocolatey.csproj b/src/chocolatey/chocolatey.csproj index f1d4e6bc7e..79ff5e26c5 100644 --- a/src/chocolatey/chocolatey.csproj +++ b/src/chocolatey/chocolatey.csproj @@ -76,7 +76,7 @@ </Reference> <Reference Include="NuGet.Core, Version=2.8.2.0, Culture=neutral, PublicKeyToken=fd112f53c3ab578c, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\lib\NuGet-Chocolatey\NuGet.Core.dll</HintPath> + <HintPath>..\..\lib\Chocolatey-NuGet.Core.2.11.0.20190305\lib\net4\NuGet.Core.dll</HintPath> </Reference> <Reference Include="Rhino.Licensing"> <HintPath>..\..\lib\Rhino.Licensing\Rhino.Licensing.dll</HintPath> diff --git a/src/chocolatey/infrastructure.app/ApplicationParameters.cs b/src/chocolatey/infrastructure.app/ApplicationParameters.cs index 8a39f7606a..1385dc9924 100644 --- a/src/chocolatey/infrastructure.app/ApplicationParameters.cs +++ b/src/chocolatey/infrastructure.app/ApplicationParameters.cs @@ -89,7 +89,7 @@ public static class ApplicationParameters public static readonly string TemplatesLocation = _fileSystem.combine_paths(InstallLocation, "templates"); public static readonly string ChocolateyCommunityFeedPushSourceOld = "https://chocolatey.org/"; public static readonly string ChocolateyCommunityFeedPushSource = "https://push.chocolatey.org/"; - public static readonly string ChocolateyCommunityFeedSource = "https://chocolatey.org/api/v2/"; + public static readonly string ChocolateyCommunityFeedSource = "https://community.chocolatey.org/api/v2/"; public static readonly string ChocolateyLicensedFeedSource = "https://licensedpackages.chocolatey.org/api/v2/"; public static readonly string ChocolateyLicensedFeedSourceName = "chocolatey.licensed"; public static readonly string UserAgent = "Chocolatey Command Line"; diff --git a/src/chocolatey/infrastructure.app/builders/ConfigurationBuilder.cs b/src/chocolatey/infrastructure.app/builders/ConfigurationBuilder.cs index 28cd769000..2f30fda2fa 100644 --- a/src/chocolatey/infrastructure.app/builders/ConfigurationBuilder.cs +++ b/src/chocolatey/infrastructure.app/builders/ConfigurationBuilder.cs @@ -408,16 +408,16 @@ private static void set_global_options(IList<string> args, ChocolateyConfigurati "Proxy Location - Explicit proxy location. Overrides the default proxy location of '{0}'. Available for config settings in 0.9.9.9+, this CLI option available in 0.10.4+.".format_with(config.Proxy.Location), option => config.Proxy.Location = option.remove_surrounding_quotes()) .Add("proxy-user=", - "Proxy User Name - Explicit proxy user (optional). Requires explicity proxy (`--proxy` or config setting). Overrides the default proxy user of '{0}'. Available for config settings in 0.9.9.9+, this CLI option available in 0.10.4+.".format_with(config.Proxy.User), + "Proxy User Name - Explicit proxy user (optional). Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy user of '{0}'. Available for config settings in 0.9.9.9+, this CLI option available in 0.10.4+.".format_with(config.Proxy.User), option => config.Proxy.User = option.remove_surrounding_quotes()) .Add("proxy-password=", - "Proxy Password - Explicit proxy password (optional) to be used with username. Requires explicity proxy (`--proxy` or config setting) and user name. Overrides the default proxy password (encrypted in settings if set). Available for config settings in 0.9.9.9+, this CLI option available in 0.10.4+.", + "Proxy Password - Explicit proxy password (optional) to be used with username. Requires explicit proxy (`--proxy` or config setting) and user name. Overrides the default proxy password (encrypted in settings if set). Available for config settings in 0.9.9.9+, this CLI option available in 0.10.4+.", option => config.Proxy.EncryptedPassword = NugetEncryptionUtility.EncryptString(option.remove_surrounding_quotes())) .Add("proxy-bypass-list=", - "ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicity proxy (`--proxy` or config setting). Overrides the default proxy bypass list of '{0}'. Available in 0.10.4+.".format_with(config.Proxy.BypassList), + "ProxyBypassList - Comma separated list of regex locations to bypass on proxy. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass list of '{0}'. Available in 0.10.4+.".format_with(config.Proxy.BypassList), option => config.Proxy.BypassList = option.remove_surrounding_quotes()) .Add("proxy-bypass-on-local", - "Proxy Bypass On Local - Bypass proxy for local connections. Requires explicity proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of '{0}'. Available in 0.10.4+.".format_with(config.Proxy.BypassOnLocal), + "Proxy Bypass On Local - Bypass proxy for local connections. Requires explicit proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of '{0}'. Available in 0.10.4+.".format_with(config.Proxy.BypassOnLocal), option => config.Proxy.BypassOnLocal = option != null) .Add("log-file=", "Log File to output to in addition to regular loggers. Available in 0.10.8+.", @@ -477,7 +477,7 @@ the local options are parsed. (`""value""`) but in powershell.exe you should use backticks (`` `""value`"" ``) or apostrophes (`'value'`). Using the combination allows for both shells to work without issue, except for when the next - section applies. + section applies. * **Pass quotes in arguments**: When you need to pass quoted values to to something like a native installer, you are in for a world of fun. In cmd.exe you must pass it like this: `-ia ""/yo=""""Spaces spaces""""""`. In @@ -499,32 +499,32 @@ wanting to pass specific options. When writing scripts, such as PowerShell scripts passing options and switches, there are some best practices to follow to ensure that you don't run into issues later. This also applies to integrations that -are calling Chocolatey and parsing output. Chocolatey **uses** +are calling Chocolatey and parsing output. Chocolatey **uses** PowerShell, but it is an exe, so it cannot return PowerShell objects. -Following these practices ensures both readability of your scripts AND -compatibility across different versions and editions of Chocolatey. -Following this guide will ensure your experience is not frustrating +Following these practices ensures both readability of your scripts AND +compatibility across different versions and editions of Chocolatey. +Following this guide will ensure your experience is not frustrating based on choco not receiving things you think you are passing to it. - * For consistency, always use `choco`, not `choco.exe`. Never use + * For consistency, always use `choco`, not `choco.exe`. Never use shortcut commands like `cinst` or `cup`. - * Always have the command as the first argument to `choco. e.g. + * Always have the command as the first argument to `choco`. e.g. `choco install`, where `install` is the command. * If there is a subcommand, ensure that is the second argument. e.g. `choco source list`, where `source` is the command and `list` is the subcommand. - * Typically the subject comes next. If installing packages, the + * Typically the subject comes next. If installing packages, the subject would be the package names, e.g. `choco install pkg1 pkg2`. * Never use 'nupkg' or point directly to a nupkg file UNLESS using 'choco push'. Use the source folder instead, e.g. `choco install - <package id> --source=""'c:\folder\with\package'""` instead of - `choco install DoNotDoThis.1.0.nupkg` or `choco install DoNotDoThis + <package id> --source=""'c:\folder\with\package'""` instead of + `choco install DoNotDoThis.1.0.nupkg` or `choco install DoNotDoThis --source=""'c:\folder\with\package\DoNotDoThis.1.0.nupkg'""`. - * Switches and parameters are called simply options. Options come + * Switches and parameters are called simply options. Options come after the subject. e.g. `choco install pkg1 --debug --verbose`. * Never use the force option (`--force`/`-f`) in scripts (or really - otherwise as a default mode of use). Force is an override on + otherwise as a default mode of use). Force is an override on Chocolatey behavior. If you are wondering why Chocolatey isn't doing something like the documentation says it should, it's likely because you are using force. Stop. @@ -532,60 +532,60 @@ Chocolatey behavior. If you are wondering why Chocolatey isn't doing full option is `--name`, use `--name`. The only acceptable short option for use in scripts is `-y`. Find option names in help docs online or through `choco -?` /`choco [Command Name] -?`. - * For scripts that are running automated, always use `-y`. Do note + * For scripts that are running automated, always use `-y`. Do note that even with `-y` passed, some things / state issues detected will - temporarily stop for input - the key here is temporarily. They will + temporarily stop for input - the key here is temporarily. They will continue without requiring any action after the temporary timeout (typically 30 seconds). - * Full option names are prepended with two dashes, e.g. `--` or + * Full option names are prepended with two dashes, e.g. `--` or `--debug --verbose --ignore-proxy`. - * When setting a value to an option, always put an equals (`=`) + * When setting a value to an option, always put an equals (`=`) between the name and the setting, e.g. `--source=""'local'""`. - * When setting a value to an option, always surround the value - properly with double quotes bookending apostrophes, e.g. + * When setting a value to an option, always surround the value + properly with double quotes bookending apostrophes, e.g. `--source=""'internal_server'""`. - * If you are building PowerShell scripts, you can most likely just - simply use apostrophes surrounding option values, e.g. + * If you are building PowerShell scripts, you can most likely just + simply use apostrophes surrounding option values, e.g. `--source='internal_server'`. * Prefer upgrade to install in scripts. You can't `install` to a newer version of something, but you can `choco upgrade` which will do both upgrade or install (unless switched off explicitly). - * If you are sharing the script with others, pass `--source` to be - explicit about where the package is coming from. Use full link and - not source name ('https://chocolatey.org/api/v2' versus + * If you are sharing the script with others, pass `--source` to be + explicit about where the package is coming from. Use full link and + not source name ('https://community.chocolatey.org/api/v2/' versus 'chocolatey'). - * If parsing output, you might want to use `--limit-output`/`-r` to - get output in a more machine parseable format. NOTE: Not all - commands handle return of information in an easily digestible + * If parsing output, you might want to use `--limit-output`/`-r` to + get output in a more machine parseable format. NOTE: Not all + commands handle return of information in an easily digestible output. - * Use exit codes to determine status. Chocolatey exits with 0 when - everything worked appropriately and other exits codes like 1 when - things error. There are package specific exit codes that are + * Use exit codes to determine status. Chocolatey exits with 0 when + everything worked appropriately and other exits codes like 1 when + things error. There are package specific exit codes that are recommended to be used and reboot indicating exit codes as well. To - check exit code when using PowerShell, immediately call + check exit code when using PowerShell, immediately call `$exitCode = $LASTEXITCODE` to get the value choco exited with. -Here's an example following bad practices (line breaks added for +Here's an example following bad practices (line breaks added for readability): - `choco install pkg1 -y -params '/Option:Value /Option2:value with + `choco install pkg1 -y -params '/Option:Value /Option2:value with spaces' --c4b-option 'Yaass' --option-that-is-new 'dude upgrade'` -Now here is that example written with best practices (again line - breaks added for readability - there are not line continuations +Now here is that example written with best practices (again line + breaks added for readability - there are not line continuations for choco): - `choco upgrade pkg1 -y --source=""'https://chocolatey.org/api/v2'"" + `choco upgrade pkg1 -y --source=""'https://community.chocolatey.org/api/v2/'"" --package-parameters=""'/Option:Value /Option2:value with spaces'"" --c4b-option=""'Yaass'"" --option-that-is-new=""'dude upgrade'""` -Note the differences between the two: - * Which is more self-documenting? - * Which will allow for the newest version of something installed or +Note the differences between the two: + * Which is more self-documenting? + * Which will allow for the newest version of something installed or upgraded to (which allows for more environmental consistency on packages and versions)? * Which may throw an error on a badly passed option? - * Which will throw errors on unknown option values? See explanation + * Which will throw errors on unknown option values? See explanation below. Chocolatey ignores options it doesn't understand, but it can only @@ -594,8 +594,8 @@ equals sign ('='). Note those last two options in the examples above? If you roll off of a commercial edition or someone with older version attempts to run the badly crafted script `--c4b-option 'Yaass' --option-that-is-new 'dude upgrade'`, they are likely to see errors on - 'Yaass' and 'dude upgrade' because they are not explicitly tied to the - option they are written after. Now compare that to the other script. + 'Yaass' and 'dude upgrade' because they are not explicitly tied to the + option they are written after. Now compare that to the other script. Choco will ignore `--c4b-option=""'Yaass'""` and `--option-that-is-new=""'dude upgrade'""` as a whole when it doesn't register the options. This means that your script doesn't error. diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyApiKeyCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyApiKeyCommand.cs index 683038f285..35de7c2c15 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyApiKeyCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyApiKeyCommand.cs @@ -1,13 +1,13 @@ // Copyright © 2017 - 2018 Chocolatey Software, Inc // Copyright © 2011 - 2017 RealDimensions Software, LLC -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. -// +// // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -61,7 +61,7 @@ public virtual void handle_additional_argument_parsing(IList<string> unparsedArg public virtual void handle_validation(ChocolateyConfiguration configuration) { - if (!configuration.ApiKeyCommand.Remove && !string.IsNullOrWhiteSpace(configuration.ApiKeyCommand.Key) + if (!configuration.ApiKeyCommand.Remove && !string.IsNullOrWhiteSpace(configuration.ApiKeyCommand.Key) && string.IsNullOrWhiteSpace(configuration.Sources)) { throw new ApplicationException("You must specify both 'source' and 'key' to set an API key."); @@ -69,7 +69,7 @@ public virtual void handle_validation(ChocolateyConfiguration configuration) if (configuration.ApiKeyCommand.Remove && string.IsNullOrWhiteSpace(configuration.Sources)) { throw new ApplicationException("You must specify 'source' to remove an API key."); - + } } @@ -77,7 +77,7 @@ public virtual void help_message(ChocolateyConfiguration configuration) { this.Log().Info(ChocolateyLoggers.Important, "ApiKey Command"); this.Log().Info(@" -This lists api keys that are set or sets an api key for a particular +This lists api keys that are set or sets an api key for a particular source so it doesn't need to be specified every time. Anything that doesn't contain source and key will list api keys. @@ -97,30 +97,30 @@ choco apikey choco apikey -s ""https://push.chocolatey.org/"" -k=""123-123123-123"" choco apikey -s ""http://internal_nexus"" -k=""user:password"" -For source location, this can be a folder/file share or an -http location. When it comes to urls, they can be different from the packages -url (where packages are searched and installed from). As an example, for -Chocolatey's community package package repository, the package url is -https://chocolatey.org/api/v2, but the push url is https://push.chocolatey.org -(and the deprecated https://chocolatey.org/ as a push url). Check the -documentation for your choice of repository to learn what the push url is. - -For the key, this can be an apikey that is provided by your source repository. -With some sources, like Nexus, this can be a NuGet API key or it could be a -user name and password specified as 'user:password' for the API key. Please see -your repository's documentation (for Nexus, please see +For source location, this can be a folder/file share or an +http location. When it comes to urls, they can be different from the packages +url (where packages are searched and installed from). As an example, for +Chocolatey's community package package repository, the package url is +https://community.chocolatey.org/api/v2/, but the push url is https://push.chocolatey.org +(and the deprecated https://chocolatey.org/ as a push url). Check the +documentation for your choice of repository to learn what the push url is. + +For the key, this can be an apikey that is provided by your source repository. +With some sources, like Nexus, this can be a NuGet API key or it could be a +user name and password specified as 'user:password' for the API key. Please see +your repository's documentation (for Nexus, please see https://bit.ly/nexus2apikey). -NOTE: See scripting in the command reference (`choco -?`) for how to +NOTE: See scripting in the command reference (`choco -?`) for how to write proper scripts and integrations. "); "chocolatey".Log().Info(ChocolateyLoggers.Important, "Connecting to Chocolatey.org (Community Package Repository)"); "chocolatey".Log().Info(() => @" -In order to save your API key for {0}, +In order to save your API key for {0}, log in (or register, confirm and then log in) to - {0}, go to {0}account, + {0}, go to {0}account, copy the API Key, and then use it in the following command: choco apikey -k <your key here> -s {0} @@ -135,8 +135,8 @@ Exit codes that normally result from running this command. - 0: operation was successful, no issues detected - -1 or 1: an error has occurred -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at +If you find other exit codes that we have not yet documented, please + file a ticket so we can document it at https://github.com/chocolatey/choco/issues/new/choose. "); diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyInstallCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyInstallCommand.cs index ba9cf33556..86162e15c4 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyInstallCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyInstallCommand.cs @@ -27,7 +27,7 @@ namespace chocolatey.infrastructure.app.commands using logging; using services; - [CommandFor("install", "installs packages from various sources")] + [CommandFor("install", "installs packages using configured sources")] public class ChocolateyInstallCommand : ICommand { private readonly IChocolateyPackageService _packageService; @@ -279,7 +279,7 @@ choco install notepadplusplus googlechrome atom 7zip -dvfy choco install git -y --params=""'/GitAndUnixToolsOnPath /NoAutoCrlf'"" choco install git -y --params=""'/GitAndUnixToolsOnPath /NoAutoCrlf'"" --install-arguments=""'/DIR=C:\git'"" # Params are package parameters, passed to the package - # Install args are installer arguments, appended to the silentArgs + # Install args are installer arguments, appended to the silentArgs # in the package for the installer itself choco install nodejs.install --version 0.10.35 choco install git -s ""'https://somewhere/out/there'"" @@ -304,9 +304,9 @@ What is `-my`? See option bundling in the command reference option to not allow PATH changes. Until then you will need to manually go modify Path to just one Ruby and then use something like uru (https://bitbucket.org/jonforums/uru) or pik - (https://chocolatey.org/packages/pik) to switch between versions. + (https://community.chocolatey.org/packages/pik) to switch between versions. -NOTE: See scripting in the command reference (`choco -?`) for how to +NOTE: See scripting in the command reference (`choco -?`) for how to write proper scripts and integrations. "); @@ -410,10 +410,10 @@ on the local machine. "chocolatey".Log().Info(@" * How-To: A complete example of how you can use the PackageParameters argument when creating a Chocolatey Package can be seen at - https://chocolatey.org/docs/how-to-parse-package-parameters-argument + https://docs.chocolatey.org/en-us/guides/create/parse-packageparameters-argument * One may want to override the default installation directory of a piece of software. See - https://chocolatey.org/docs/getting-started#overriding-default-install-directory-or-other-advanced-install-concepts. + https://docs.chocolatey.org/en-us/getting-started#overriding-default-install-directory-or-other-advanced-install-concepts. "); diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyNewCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyNewCommand.cs index 6c5ddb194f..cb73152ced 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyNewCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyNewCommand.cs @@ -27,7 +27,7 @@ namespace chocolatey.infrastructure.app.commands using services; using templates; - [CommandFor("new", "generates files necessary for a chocolatey package from a template")] + [CommandFor("new", "creates template files for creating a new Chocolatey package")] public class ChocolateyNewCommand : ICommand { private readonly ITemplateService _templateService; diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyOutdatedCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyOutdatedCommand.cs index 89e0b688a9..d58b50442d 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyOutdatedCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyOutdatedCommand.cs @@ -24,7 +24,7 @@ namespace chocolatey.infrastructure.app.commands using logging; using services; - [CommandFor("outdated", "retrieves packages that are outdated. Similar to upgrade all --noop")] + [CommandFor("outdated", "retrieves information about packages that are outdated. Similar to upgrade all --noop")] public class ChocolateyOutdatedCommand : ICommand { private readonly IChocolateyPackageService _packageService; diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyPackCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyPackCommand.cs index b3cef3f13b..300d9dac33 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyPackCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyPackCommand.cs @@ -26,7 +26,7 @@ namespace chocolatey.infrastructure.app.commands using logging; using services; - [CommandFor("pack", "packages up a nuspec to a compiled nupkg")] + [CommandFor("pack", "packages nuspec, scripts, and other Chocolatey package resources into a nupkg file")] public class ChocolateyPackCommand : ICommand { private readonly IChocolateyPackageService _packageService; diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyPushCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyPushCommand.cs index 6ec0e0e0dd..9ce1fe6f42 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyPushCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyPushCommand.cs @@ -25,7 +25,7 @@ namespace chocolatey.infrastructure.app.commands using logging; using services; - [CommandFor("push", "pushes a compiled nupkg")] + [CommandFor("push", "pushes a compiled nupkg to a source")] public class ChocolateyPushCommand : ICommand { private readonly IChocolateyPackageService _packageService; diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateySourceCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateySourceCommand.cs index 25d5caf991..5bf439a804 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateySourceCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateySourceCommand.cs @@ -1,13 +1,13 @@ // Copyright © 2017 - 2018 Chocolatey Software, Inc // Copyright © 2011 - 2017 RealDimensions Software, LLC -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. -// +// // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -48,7 +48,7 @@ public virtual void configure_argument_parser(OptionSet optionSet, ChocolateyCon "Name - the name of the source. Required with actions other than list. Defaults to empty.", option => configuration.SourceCommand.Name = option.remove_surrounding_quotes()) .Add("s=|source=", - "Source - The source. This can be a folder/file share or an http location. If it is a url, it will be a location you can go to in a browser and it returns OData with something that says Packages in the browser, similar to what you see when you go to https://chocolatey.org/api/v2/. Required with add action. Defaults to empty.", + "Source - The source. This can be a folder/file share or an http location. If it is a url, it will be a location you can go to in a browser and it returns OData with something that says Packages in the browser, similar to what you see when you go to https://community.chocolatey.org/api/v2/. Required with add action. Defaults to empty.", option => configuration.Sources = option.remove_surrounding_quotes()) .Add("u=|user=", "User - used with authenticated feeds. Defaults to empty.", @@ -64,13 +64,13 @@ public virtual void configure_argument_parser(OptionSet optionSet, ChocolateyCon option => configuration.SourceCommand.CertificatePassword = option.remove_surrounding_quotes()) .Add("priority=", "Priority - The priority order of this source as compared to other sources, lower is better. Defaults to 0 (no priority). All priorities above 0 will be evaluated first, then zero-based values will be evaluated in config file order. Available in 0.9.9.9+.", - option => configuration.SourceCommand.Priority = int.Parse(option.remove_surrounding_quotes())) + option => configuration.SourceCommand.Priority = int.Parse(option.remove_surrounding_quotes())) .Add("bypassproxy|bypass-proxy", "Bypass Proxy - Should this source explicitly bypass any explicitly or system configured proxies? Defaults to false. Available in 0.10.4+.", option => configuration.SourceCommand.BypassProxy = option != null) .Add("allowselfservice|allow-self-service", "Allow Self-Service - Should this source be allowed to be used with self-service? Requires business edition (v1.10.0+) with feature 'useBackgroundServiceWithSelfServiceSourcesOnly' turned on. Defaults to false. Available in 0.10.4+.", - option => configuration.SourceCommand.AllowSelfService = option != null) + option => configuration.SourceCommand.AllowSelfService = option != null) .Add("adminonly|admin-only", "Visible to Administrators Only - Should this source be visible to non-administrators? Requires business edition (v1.12.2+). Defaults to false. Available in 0.10.8+.", option => configuration.SourceCommand.VisibleToAdminsOnly = option != null) @@ -104,7 +104,7 @@ public virtual void handle_validation(ChocolateyConfiguration configuration) { throw new ApplicationException("When specifying the subcommand '{0}', you must also specify --name.".format_with(configuration.SourceCommand.Command.to_string())); } - + if (configuration.SourceCommand.Command == SourceCommandType.add && string.IsNullOrWhiteSpace(configuration.Sources)) { throw new ApplicationException("When specifying the subcommand 'add', you must also specify --source.".format_with(configuration.SourceCommand.Command.to_string())); @@ -149,11 +149,11 @@ choco source list choco source remove -n=bob When it comes to the source location, this can be a folder/file share or an http -location. If it is a url, it will be a location you can go to in a browser and -it returns OData with something that says Packages in the browser, similar to -what you see when you go to https://chocolatey.org/api/v2/. +location. If it is a url, it will be a location you can go to in a browser and +it returns OData with something that says Packages in the browser, similar to +what you see when you go to https://community.chocolatey.org/api/v2/. -NOTE: See scripting in the command reference (`choco -?`) for how to +NOTE: See scripting in the command reference (`choco -?`) for how to write proper scripts and integrations. "); @@ -166,8 +166,8 @@ Exit codes that normally result from running this command. - 0: operation was successful, no issues detected - -1 or 1: an error has occurred -If you find other exit codes that we have not yet documented, please - file a ticket so we can document it at +If you find other exit codes that we have not yet documented, please + file a ticket so we can document it at https://github.com/chocolatey/choco/issues/new/choose. "); diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyUnpackSelfCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyUnpackSelfCommand.cs index 2917a836d1..fd548dd5af 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyUnpackSelfCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyUnpackSelfCommand.cs @@ -31,7 +31,7 @@ namespace chocolatey.infrastructure.app.commands using resources; #endif - [CommandFor("unpackself", "have chocolatey set itself up")] + [CommandFor("unpackself", "re-installs Chocolatey base files")] public class ChocolateyUnpackSelfCommand : ICommand { private readonly IFileSystem _fileSystem; diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyVersionCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyVersionCommand.cs index 5091cd474d..5d96007959 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyVersionCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyVersionCommand.cs @@ -84,7 +84,7 @@ DEPRECATION NOTICE - `choco version -lo` is deprecated. version command { this.Log().Warn(ChocolateyLoggers.Important, @" DEPRECATION NOTICE - choco version command is deprecated and will be - removed in version 1.0.0. Please use `choco upgrade pkgname --noop` + removed in version 1.0.0. Please use `choco outdated` instead."); } diff --git a/src/chocolatey/infrastructure.app/configuration/ConfigFileApiKeySetting.cs b/src/chocolatey/infrastructure.app/configuration/ConfigFileApiKeySetting.cs index 6913328737..e2a9237bf4 100644 --- a/src/chocolatey/infrastructure.app/configuration/ConfigFileApiKeySetting.cs +++ b/src/chocolatey/infrastructure.app/configuration/ConfigFileApiKeySetting.cs @@ -43,7 +43,7 @@ public override bool Equals(object obj) var item = (ConfigFileApiKeySetting) obj; return (Source == item.Source) - && (Key == item.Source); + && (Key == item.Key); } public override int GetHashCode() diff --git a/src/chocolatey/infrastructure.app/configuration/chocolatey.config b/src/chocolatey/infrastructure.app/configuration/chocolatey.config index 2a4275993d..216f20b480 100644 --- a/src/chocolatey/infrastructure.app/configuration/chocolatey.config +++ b/src/chocolatey/infrastructure.app/configuration/chocolatey.config @@ -9,7 +9,7 @@ <add key="proxyPassword" value="" /> </config> <sources> - <source id="chocolatey" value="https://chocolatey.org/api/v2/" /> + <source id="chocolatey" value="https://community.chocolatey.org/api/v2/" /> </sources> <features> <feature name="checksumFiles" enabled="true" /> diff --git a/src/chocolatey/infrastructure.app/runners/GenericRunner.cs b/src/chocolatey/infrastructure.app/runners/GenericRunner.cs index 4d1b597515..5daaf667c6 100644 --- a/src/chocolatey/infrastructure.app/runners/GenericRunner.cs +++ b/src/chocolatey/infrastructure.app/runners/GenericRunner.cs @@ -306,7 +306,8 @@ require admin rights. Only advanced users should run choco w/out an attempting to use Chocolatey in a non-administrator setting, you must select a different location other than the default install location. See - https://chocolatey.org/install#non-administrative-install for details. + https://docs.chocolatey.org/en-us/choco/setup#non-administrative-install + for details. "); var selection = InteractivePrompt.prompt_for_confirmation(@" Do you want to continue?", new[] { "yes", "no" }, diff --git a/src/chocolatey/infrastructure.app/services/ChocolateyPackageService.cs b/src/chocolatey/infrastructure.app/services/ChocolateyPackageService.cs index 0b4295d93d..b7d79513ab 100644 --- a/src/chocolatey/infrastructure.app/services/ChocolateyPackageService.cs +++ b/src/chocolatey/infrastructure.app/services/ChocolateyPackageService.cs @@ -66,14 +66,14 @@ experience to the next level at @" Did you know the proceeds of Pro (and some proceeds from other licensed editions) go into bettering the community infrastructure? - Your support ensures an active community, keeps Chocolatey tip top, + Your support ensures an active community, keeps Chocolatey tip-top, plus it nets you some awesome features! https://chocolatey.org/compare", @" Did you know some organizations use Chocolatey completely internally without using the community repository or downloads from the internet? Wait until you see how Package Builder and Package Internalizer can - help you achieve more, quicker and easier! Get your trial started + help you achieve more, quicker, and easier! Get your trial started today at https://chocolatey.org/compare", @" An organization needed total software management life cycle automation. @@ -210,16 +210,14 @@ public virtual IEnumerable<PackageResult> list_run(ChocolateyConfiguration confi private IEnumerable<PackageResult> report_registry_programs(ChocolateyConfiguration config, IEnumerable<IPackage> list) { - var itemsToRemoveFromMachine = list.Select(package => _packageInfoService.get_package_information(package)). - Where(p => p.RegistrySnapshot != null). - Select(p => p.RegistrySnapshot.RegistryKeys.FirstOrDefault()). - Where(p => p != null). - Select(p => p.DisplayName).ToList(); + var itemsToRemoveFromMachine = list.Select(package => _packageInfoService.get_package_information(package)).Where(p => p.RegistrySnapshot != null).ToList(); var count = 0; - var machineInstalled = _registryService.get_installer_keys().RegistryKeys. - Where((p) => p.is_in_programs_and_features() && !itemsToRemoveFromMachine.Contains(p.DisplayName) && !p.KeyPath.contains("choco-")). - OrderBy((p) => p.DisplayName).Distinct(); + var machineInstalled = _registryService.get_installer_keys().RegistryKeys.Where( + p => p.is_in_programs_and_features() && + !itemsToRemoveFromMachine.Any(pkg => pkg.RegistrySnapshot.RegistryKeys.Any(k => k.DisplayName.is_equal_to(p.DisplayName))) && + !p.KeyPath.contains("choco-")).OrderBy(p => p.DisplayName).Distinct(); + this.Log().Info(() => ""); foreach (var key in machineInstalled) { @@ -338,7 +336,9 @@ public virtual void handle_package_result(PackageResult packageResult, Chocolate EnvironmentSettings.reset_environment_variables(config); set_pending(packageResult, config); - this.Log().Info("{0} package files {1} completed. Performing other installation steps.".format_with(packageResult.Name, commandName.to_string())); + this.Log().Info(packageResult.ExitCode == 0 + ? "{0} package files {1} completed. Performing other installation steps.".format_with(packageResult.Name, commandName.to_string()) + : "{0} package files {1} failed with exit code {2}. Performing other installation steps.".format_with(packageResult.Name, commandName.to_string(), packageResult.ExitCode)); var pkgInfo = get_package_information(packageResult, config); @@ -433,7 +433,7 @@ public virtual void handle_package_result(PackageResult packageResult, Chocolate this.Log().Warn(ChocolateyLoggers.Important, @"Chocolatey has detected a pending reboot after installing/upgrading package '{0}' - stopping further execution".format_with(packageResult.Name)); - throw new ApplicationException("Reboot required before continuing. Reboot and run same command again."); + throw new ApplicationException("Reboot required before continuing. Reboot and run the same command again."); } } @@ -466,8 +466,8 @@ public virtual void handle_package_result(PackageResult packageResult, Chocolate } else { - this.Log().Info(ChocolateyLoggers.Important, @" Software install location not explicitly set, could be in package or - default install location if installer."); + this.Log().Info(ChocolateyLoggers.Important, @" Software install location not explicitly set, it could be in package or + default install location of installer."); } } @@ -568,12 +568,12 @@ public virtual ConcurrentDictionary<string, PackageResult> install_run(Chocolate if (string.IsNullOrWhiteSpace(config.Sources)) { this.Log().Error(ChocolateyLoggers.Important, @"Installation was NOT successful. There are no sources enabled for - packages and none were passed as arguments."); + packages, and none were passed as arguments."); Environment.ExitCode = 1; return packageInstalls; } - this.Log().Info(@"By installing you accept licenses for the packages."); + this.Log().Info(@"By installing, you accept licenses for the packages."); get_environment_before(config, allowLogging: true); @@ -697,7 +697,7 @@ private IEnumerable<ChocolateyConfiguration> get_packages_from_config(string pac if (!_fileSystem.file_exists(_fileSystem.get_full_path(packageConfigFile))) { - var logMessage = "Could not find '{0}' in the location specified.".format_with(packageConfigFile); + var logMessage = "'{0}' could not be found in the location specified.".format_with(packageConfigFile); this.Log().Error(ChocolateyLoggers.Important, logMessage); var results = packageInstalls.GetOrAdd(packageConfigFile, new PackageResult(packageConfigFile, null, null)); results.Messages.Add(new ResultMessage(ResultType.Error, logMessage)); @@ -761,7 +761,7 @@ public virtual ConcurrentDictionary<string, PackageResult> upgrade_run(Chocolate return new ConcurrentDictionary<string, PackageResult>(); } - this.Log().Info(@"By upgrading you accept licenses for the packages."); + this.Log().Info(@"By upgrading, you accept licenses for the packages."); foreach (var packageConfigFile in config.PackageNames.Split(new[] { ApplicationParameters.PackageNamesSeparator }, StringSplitOptions.RemoveEmptyEntries).or_empty_list_if_null().Where(p => p.EndsWith(".config")).ToList()) { @@ -875,16 +875,16 @@ If a package uninstall is failing and/or you've already uninstalled the software outside of Chocolatey, you can attempt to run the command with `-n` to skip running a chocolateyUninstall script, additionally adding `--skip-autouninstaller` to skip an attempt to automatically - remove system-installed software. This will only remove the packaging - files and not things like software installed to Programs and Features. + remove system-installed software. Only the packaging files are removed + and not things like software installed to Programs and Features. If a package is failing because it is a dependency of another package - or packages, then you may first need to consider if it needs removed - as it is typically installed as a dependency for a reason. If you - decide that you still want to remove it, head into - `$env:ChocolateyInstall\lib` and find the package folder you want - removed. Then delete the folder for the package. This option should - only be used as a last resort. + or packages, then you may first need to consider if it needs to be + removed as packages have dependencies for a reason. If + you decide that you still want to remove it, head into + `$env:ChocolateyInstall\lib` and find the package folder you want to + be removed. Then delete the folder for the package. You should use + this option only as a last resort. "); } @@ -1006,7 +1006,7 @@ public virtual void handle_package_uninstall(PackageResult packageResult, Chocol this.Log().Warn(ChocolateyLoggers.Important, @"Chocolatey has detected a pending reboot after uninstalling package '{0}' - stopping further execution".format_with(packageResult.Name)); - throw new ApplicationException("Reboot required before continuing. Reboot and run same command again."); + throw new ApplicationException("Reboot required before continuing. Reboot and run the same command again."); } } @@ -1208,12 +1208,12 @@ private void handle_unsuccessful_operation(ChocolateyConfiguration config, Packa { this.Log().Error(ChocolateyLoggers.Important, @" Package location is not specific enough, cannot move bad package or - rollback previous version. Erroneous install location captured as + rollback the previous version. Erroneous install location captured as '{0}' ATTENTION: You must take manual action to remove {1} from {2}. It will show incorrectly as installed - until you do. To remove you can simply delete the folder in question. + until you do. To remove, you can simply delete the folder in question. ".format_with(packageResult.InstallLocation, packageResult.Name, ApplicationParameters.PackagesLocation)); } else @@ -1233,7 +1233,7 @@ private void move_bad_package_to_failure_location(PackageResult packageResult) { FaultTolerance.try_catch_with_logging_exception( () => _fileSystem.move_directory(packageResult.InstallLocation, packageResult.InstallLocation.Replace(ApplicationParameters.PackagesLocation, ApplicationParameters.PackageFailuresLocation)), - "Could not move bad package to failure directory It will show as installed.{0} {1}{0} The error".format_with(Environment.NewLine, packageResult.InstallLocation)); + "Could not move the bad package to the failure directory. It will show as installed.{0} {1}{0} The error".format_with(Environment.NewLine, packageResult.InstallLocation)); } } diff --git a/src/chocolatey/infrastructure.app/services/NugetService.cs b/src/chocolatey/infrastructure.app/services/NugetService.cs index 15431c6826..0a749a7c3b 100644 --- a/src/chocolatey/infrastructure.app/services/NugetService.cs +++ b/src/chocolatey/infrastructure.app/services/NugetService.cs @@ -348,7 +348,7 @@ package prior to acceptance. You should have received an email. If you package page to contact moderators. Please ensure your registered email address is correct and emails from -noreply at chocolatey dot org are not being sent to your spam/junk +noreply at chocolatey dot org are not being sent to your spam/junk folder."); } } @@ -435,7 +435,7 @@ public virtual ConcurrentDictionary<string, PackageResult> install_run(Chocolate uninstallSuccessAction: null, addUninstallHandler: true); - var originalConfig = config; + var originalConfig = config.deep_copy(); foreach (string packageName in packageNames.or_empty_list_if_null()) { @@ -457,14 +457,14 @@ public virtual ConcurrentDictionary<string, PackageResult> install_run(Chocolate if (installedPackage != null && (version == null || version == installedPackage.Version) && config.Force) { - this.Log().Warn(ChocolateyLoggers.Important, () => @"{0} v{1} already installed. Forcing reinstall of version '{1}'. + this.Log().Warn(ChocolateyLoggers.Important, () => @"{0} v{1} already installed. Forcing reinstall of version '{1}'. Please use upgrade if you meant to upgrade to a new version.".format_with(installedPackage.Id, installedPackage.Version)); version = installedPackage.Version; } if (installedPackage != null && version != null && version < installedPackage.Version && !config.AllowMultipleVersions && !config.AllowDowngrade) { - string logMessage = "A newer version of {0} (v{1}) is already installed.{2} Use --allow-downgrade or --force to attempt to install older versions, or use side by side to allow multiple versions.".format_with(installedPackage.Id, installedPackage.Version, Environment.NewLine); + string logMessage = "A newer version of {0} (v{1}) is already installed.{2} Use --allow-downgrade or --force to attempt to install older versions, or use --side-by-side to allow multiple versions.".format_with(installedPackage.Id, installedPackage.Version, Environment.NewLine); var nullResult = packageInstalls.GetOrAdd(packageName, new PackageResult(installedPackage, _fileSystem.combine_paths(ApplicationParameters.PackagesLocation, installedPackage.Id))); nullResult.Messages.Add(new ResultMessage(ResultType.Error, logMessage)); this.Log().Error(ChocolateyLoggers.Important, logMessage); @@ -481,10 +481,10 @@ public virtual ConcurrentDictionary<string, PackageResult> install_run(Chocolate If the package version is a prerelease and you didn't specify `--pre`, the package may not be found.{2}{3}".format_with(packageName, config.Sources, string.IsNullOrWhiteSpace(config.Version) ? String.Empty : @" -Version was specified as '{0}'. It is possible that version +Version was specified as '{0}'. It is possible that version does not exist for '{1}' at the source specified.".format_with(config.Version.to_string(), packageName), @" -Please see https://chocolatey.org/docs/troubleshooting for more +Please see https://docs.chocolatey.org/en-us/troubleshooting for more assistance."); this.Log().Error(ChocolateyLoggers.Important, logMessage); var noPkgResult = packageInstalls.GetOrAdd(packageName, new PackageResult(packageName, version.to_string(), null)); @@ -614,7 +614,7 @@ public virtual ConcurrentDictionary<string, PackageResult> upgrade_run(Chocolate set_package_names_if_all_is_specified(config, () => { config.IgnoreDependencies = true; }); config.IgnoreDependencies = configIgnoreDependencies; - var originalConfig = config; + var originalConfig = config.deep_copy(); foreach (string packageName in config.PackageNames.Split(new[] { ApplicationParameters.PackageNamesSeparator }, StringSplitOptions.RemoveEmptyEntries).or_empty_list_if_null()) { @@ -890,7 +890,7 @@ public virtual ConcurrentDictionary<string, PackageResult> get_outdated(Chocolat set_package_names_if_all_is_specified(config, () => { config.IgnoreDependencies = true; }); var packageNames = config.PackageNames.Split(new[] { ApplicationParameters.PackageNamesSeparator }, StringSplitOptions.RemoveEmptyEntries).or_empty_list_if_null().ToList(); - var originalConfig = config; + var originalConfig = config.deep_copy(); foreach (var packageName in packageNames) { @@ -1088,9 +1088,9 @@ public virtual void backup_existing_version(ChocolateyConfiguration config, IPac if (errored) { this.Log().Warn(ChocolateyLoggers.Important, - @"There was an error accessing files. This could mean there is a - process locking the folder or files. Please make sure nothing is - running that would lock the files or folders in this directory prior + @"There was an error accessing files. This could mean there is a + process locking the folder or files. Please make sure nothing is + running that would lock the files or folders in this directory prior to upgrade. If the package fails to upgrade, this is likely the cause."); } } @@ -1321,8 +1321,8 @@ public virtual ConcurrentDictionary<string, PackageResult> uninstall_run(Chocola : "{0}.commandline".format_with(packageName); var timeoutInSeconds = config.PromptForConfirmation ? 0 : 20; - this.Log().Warn(@"You are uninstalling {0}, which is likely a metapackage for an - *.install/*.portable package that it installed + this.Log().Warn(@"You are uninstalling {0}, which is likely a metapackage for an + *.install/*.portable package that it installed ({0} represents discoverability).".format_with(packageName)); var selection = InteractivePrompt.prompt_for_confirmation( "Would you like to uninstall {0} as well?".format_with(actualPackageName), @@ -1357,7 +1357,7 @@ public virtual ConcurrentDictionary<string, PackageResult> uninstall_run(Chocola config.ForceDependencies = false; }); - var originalConfig = config; + var originalConfig = config.deep_copy(); foreach (string packageName in config.PackageNames.Split(new[] { ApplicationParameters.PackageNamesSeparator }, StringSplitOptions.RemoveEmptyEntries).or_empty_list_if_null()) { @@ -1637,4 +1637,4 @@ private void set_package_names_if_all_is_specified(ChocolateyConfiguration confi } } } -} \ No newline at end of file +} diff --git a/src/chocolatey/infrastructure.app/services/TemplateService.cs b/src/chocolatey/infrastructure.app/services/TemplateService.cs index 3c5095e267..a91c3b72e3 100644 --- a/src/chocolatey/infrastructure.app/services/TemplateService.cs +++ b/src/chocolatey/infrastructure.app/services/TemplateService.cs @@ -29,6 +29,7 @@ namespace chocolatey.infrastructure.app.services public class TemplateService : ITemplateService { + private readonly UTF8Encoding utf8WithoutBOM = new UTF8Encoding(false); private readonly IFileSystem _fileSystem; private readonly IList<string> _templateBinaryExtensions = new List<string> { ".exe", ".msi", ".msu", ".msp", ".mst", @@ -104,7 +105,7 @@ public void generate(ChocolateyConfiguration configuration) var defaultTemplateOverride = _fileSystem.combine_paths(ApplicationParameters.TemplatesLocation, "default"); if (string.IsNullOrWhiteSpace(configuration.NewCommand.TemplateName) && (!_fileSystem.directory_exists(defaultTemplateOverride) || configuration.NewCommand.UseOriginalTemplate)) { - generate_file_from_template(configuration, tokens, NuspecTemplate.Template, _fileSystem.combine_paths(packageLocation, "{0}.nuspec".format_with(tokens.PackageNameLower)), Encoding.UTF8); + generate_file_from_template(configuration, tokens, NuspecTemplate.Template, _fileSystem.combine_paths(packageLocation, "{0}.nuspec".format_with(tokens.PackageNameLower)), utf8WithoutBOM); generate_file_from_template(configuration, tokens, ChocolateyInstallTemplate.Template, _fileSystem.combine_paths(packageToolsLocation, "chocolateyinstall.ps1"), Encoding.UTF8); generate_file_from_template(configuration, tokens, ChocolateyBeforeModifyTemplate.Template, _fileSystem.combine_paths(packageToolsLocation, "chocolateybeforemodify.ps1"), Encoding.UTF8); generate_file_from_template(configuration, tokens, ChocolateyUninstallTemplate.Template, _fileSystem.combine_paths(packageToolsLocation, "chocolateyuninstall.ps1"), Encoding.UTF8); @@ -125,9 +126,13 @@ public void generate(ChocolateyConfiguration configuration) { var packageFileLocation = file.Replace(templatePath, packageLocation); var fileExtension = _fileSystem.get_file_extension(packageFileLocation); - if (fileExtension.is_equal_to(".nuspec")) packageFileLocation = _fileSystem.combine_paths(packageLocation, "{0}.nuspec".format_with(tokens.PackageNameLower)); - if (_templateBinaryExtensions.Contains(fileExtension)) + if (fileExtension.is_equal_to(".nuspec")) + { + packageFileLocation = _fileSystem.combine_paths(packageLocation, "{0}.nuspec".format_with(tokens.PackageNameLower)); + generate_file_from_template(configuration, tokens, _fileSystem.read_file(file), packageFileLocation, utf8WithoutBOM); + } + else if (_templateBinaryExtensions.Contains(fileExtension)) { this.Log().Debug(" Treating template file ('{0}') as binary instead of replacing templated values.".format_with(_fileSystem.get_file_name(file))); _fileSystem.copy_file(file, packageFileLocation, overwriteExisting:true); diff --git a/src/chocolatey/infrastructure.app/tasks/RemovePendingPackagesTask.cs b/src/chocolatey/infrastructure.app/tasks/RemovePendingPackagesTask.cs index b2e85bc4ef..bc50d12a91 100644 --- a/src/chocolatey/infrastructure.app/tasks/RemovePendingPackagesTask.cs +++ b/src/chocolatey/infrastructure.app/tasks/RemovePendingPackagesTask.cs @@ -60,13 +60,13 @@ private void handle_message(PreRunMessage message) { this.Log().Debug(ChocolateyLoggers.Verbose, "[Pending] Removing all pending packages that should not be considered installed..."); - var pendingFiles = _fileSystem.get_files(ApplicationParameters.PackagesLocation, ApplicationParameters.PackagePendingFileName, SearchOption.AllDirectories).ToList(); + var pendingFiles = _fileSystem.get_files(ApplicationParameters.PackagesLocation, ApplicationParameters.PackagePendingFileName).ToList(); foreach (var pendingFile in pendingFiles.or_empty_list_if_null()) { var packageFolder = _fileSystem.get_directory_name(pendingFile); string packageFolderName = _fileSystem.get_directory_info_for(packageFolder).Name; - var pendingSkipFiles = _fileSystem.get_files(packageFolder, PENDING_SKIP_FILE, SearchOption.AllDirectories).ToList(); + var pendingSkipFiles = _fileSystem.get_files(packageFolder, PENDING_SKIP_FILE).ToList(); if (pendingSkipFiles.Count != 0) { this.Log().Warn("Pending file found for {0}, but a {1} file was also found. Skipping removal".format_with(packageFolderName, PENDING_SKIP_FILE)); diff --git a/src/chocolatey/infrastructure.app/templates/ChocolateyInstallTemplate.cs b/src/chocolatey/infrastructure.app/templates/ChocolateyInstallTemplate.cs index 7dbcdc2c95..139a105523 100644 --- a/src/chocolatey/infrastructure.app/templates/ChocolateyInstallTemplate.cs +++ b/src/chocolatey/infrastructure.app/templates/ChocolateyInstallTemplate.cs @@ -1,13 +1,13 @@ // Copyright © 2017 - 2018 Chocolatey Software, Inc // Copyright © 2011 - 2017 RealDimensions Software, LLC -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. -// +// // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -50,8 +50,8 @@ public class ChocolateyInstallTemplate softwareName = '[[PackageName]]*' #part or all of the Display Name as you see it in Programs and Features. It should be enough to be unique # Checksums are now required as of 0.10.0. - # To determine checksums, you can get that from the original site if provided. - # You can also use checksum.exe (choco install checksum) and use it + # To determine checksums, you can get that from the original site if provided. + # You can also use checksum.exe (choco install checksum) and use it # e.g. checksum -t sha256 -f path\to\file checksum = '[[Checksum]]' checksumType = '[[ChecksumType]]' #default is md5, can also be sha1, sha256 or sha512 @@ -73,50 +73,50 @@ public class ChocolateyInstallTemplate #silentArgs = '-s' # Ghost # Note that some installers, in addition to the silentArgs above, may also need assistance of AHK to achieve silence. #silentArgs = '' # none; make silent with input macro script like AutoHotKey (AHK) - # https://chocolatey.org/packages/autohotkey.portable + # https://community.chocolatey.org/packages/autohotkey.portable #validExitCodes= @(0) #please insert other valid exit codes here } -Install-ChocolateyPackage @packageArgs # https://chocolatey.org/docs/helpers-install-chocolatey-package -#Install-ChocolateyZipPackage @packageArgs # https://chocolatey.org/docs/helpers-install-chocolatey-zip-package -## If you are making your own internal packages (organizations), you can embed the installer or +Install-ChocolateyPackage @packageArgs # https://docs.chocolatey.org/en-us/create/functions/install-chocolateypackage +#Install-ChocolateyZipPackage @packageArgs # https://docs.chocolatey.org/en-us/create/functions/install-chocolateyzippackage +## If you are making your own internal packages (organizations), you can embed the installer or ## put on internal file share and use the following instead (you'll need to add $file to the above) -#Install-ChocolateyInstallPackage @packageArgs # https://chocolatey.org/docs/helpers-install-chocolatey-install-package +#Install-ChocolateyInstallPackage @packageArgs # https://docs.chocolatey.org/en-us/create/functions/install-chocolateyinstallpackage ## Main helper functions - these have error handling tucked into them already -## see https://chocolatey.org/docs/helpers-reference +## see https://docs.chocolatey.org/en-us/create/functions ## Install an application, will assert administrative rights -## - https://chocolatey.org/docs/helpers-install-chocolatey-package -## - https://chocolatey.org/docs/helpers-install-chocolatey-install-package +## - https://docs.chocolatey.org/en-us/create/functions/install-chocolateypackage +## - https://docs.chocolatey.org/en-us/create/functions/install-chocolateyinstallpackage ## add additional optional arguments as necessary ##Install-ChocolateyPackage $packageName $fileType $silentArgs $url [$url64 -validExitCodes $validExitCodes -checksum $checksum -checksumType $checksumType -checksum64 $checksum64 -checksumType64 $checksumType64] -## Download and unpack a zip file - https://chocolatey.org/docs/helpers-install-chocolatey-zip-package +## Download and unpack a zip file - https://docs.chocolatey.org/en-us/create/functions/install-chocolateyzippackage ##Install-ChocolateyZipPackage $packageName $url $toolsDir [$url64 -checksum $checksum -checksumType $checksumType -checksum64 $checksum64 -checksumType64 $checksumType64] -## Install Visual Studio Package - https://chocolatey.org/docs/helpers-install-chocolatey-vsix-package +## Install Visual Studio Package - https://docs.chocolatey.org/en-us/create/functions/install-chocolateyvsixpackage #Install-ChocolateyVsixPackage $packageName $url [$vsVersion] [-checksum $checksum -checksumType $checksumType] #Install-ChocolateyVsixPackage @packageArgs -## see the full list at https://chocolatey.org/docs/helpers-reference +## see the full list at https://docs.chocolatey.org/en-us/create/functions ## downloader that the main helpers use to download items ## if removing $url64, please remove from here -## - https://chocolatey.org/docs/helpers-get-chocolatey-web-file +## - https://docs.chocolatey.org/en-us/create/functions/get-chocolateywebfile #Get-ChocolateyWebFile $packageName 'DOWNLOAD_TO_FILE_FULL_PATH' $url $url64 ## Installer, will assert administrative rights - used by Install-ChocolateyPackage ## use this for embedding installers in the package when not going to community feed or when you have distribution rights -## - https://chocolatey.org/docs/helpers-install-chocolatey-install-package +## - https://docs.chocolatey.org/en-us/create/functions/install-chocolateyinstallpackage #Install-ChocolateyInstallPackage $packageName $fileType $silentArgs '_FULLFILEPATH_' -validExitCodes $validExitCodes ## Unzips a file to the specified location - auto overwrites existing content -## - https://chocolatey.org/docs/helpers-get-chocolatey-unzip +## - https://docs.chocolatey.org/en-us/create/functions/get-chocolateyunzipp #Get-ChocolateyUnzip ""FULL_LOCATION_TO_ZIP.zip"" $toolsDir ## Runs processes asserting UAC, will assert administrative rights - used by Install-ChocolateyInstallPackage -## - https://chocolatey.org/docs/helpers-start-chocolatey-process-as-admin +## - https://docs.chocolatey.org/en-us/create/functions/start-chocolateyprocessasadmin #Start-ChocolateyProcessAsAdmin 'STATEMENTS_TO_RUN' 'Optional_Application_If_Not_PowerShell' -validExitCodes $validExitCodes ## To avoid quoting issues, you can also assemble your -Statements in another variable and pass it in @@ -124,33 +124,33 @@ public class ChocolateyInstallTemplate ##Will resolve to C:\Program Files\appname #$statementsToRun = ""/C `""$appPath\bin\installservice.bat`"""" #Start-ChocolateyProcessAsAdmin $statementsToRun cmd -validExitCodes $validExitCodes - -## add specific folders to the path - any executables found in the chocolatey package -## folder will already be on the path. This is used in addition to that or for cases + +## add specific folders to the path - any executables found in the chocolatey package +## folder will already be on the path. This is used in addition to that or for cases ## when a native installer doesn't add things to the path. -## - https://chocolatey.org/docs/helpers-install-chocolatey-path +## - https://docs.chocolatey.org/en-us/create/functions/install-chocolateypath #Install-ChocolateyPath 'LOCATION_TO_ADD_TO_PATH' 'User_OR_Machine' # Machine will assert administrative rights ## Add specific files as shortcuts to the desktop -## - https://chocolatey.org/docs/helpers-install-chocolatey-shortcut +## - https://docs.chocolatey.org/en-us/create/functions/install-chocolateyshortcut #$target = Join-Path $toolsDir ""$($packageName).exe"" # Install-ChocolateyShortcut -shortcutFilePath ""<path>"" -targetPath ""<path>"" [-workDirectory ""C:\"" -arguments ""C:\test.txt"" -iconLocation ""C:\test.ico"" -description ""This is the description""] ## Outputs the bitness of the OS (either ""32"" or ""64"") -## - https://chocolatey.org/docs/helpers-get-o-s-architecture-width +## - https://docs.chocolatey.org/en-us/create/functions/get-osarchitecturewidth #$osBitness = Get-ProcessorBits ## Set persistent Environment variables -## - https://chocolatey.org/docs/helpers-install-chocolatey-environment-variable +## - https://docs.chocolatey.org/en-us/create/functions/install-chocolateyenvironmentvariable #Install-ChocolateyEnvironmentVariable -variableName ""SOMEVAR"" -variableValue ""value"" [-variableType = 'Machine' #Defaults to 'User'] ## Set up a file association -## - https://chocolatey.org/docs/helpers-install-chocolatey-file-association -#Install-ChocolateyFileAssociation +## - https://docs.chocolatey.org/en-us/create/functions/install-chocolateyfileassociation +#Install-ChocolateyFileAssociation ## Adding a shim when not automatically found - Cocolatey automatically shims exe files found in package directory. -## - https://chocolatey.org/docs/helpers-install-bin-file -## - https://chocolatey.org/docs/create-packages#how-do-i-exclude-executables-from-getting-shims +## - https://docs.chocolatey.org/en-us/create/functions/install-binfile +## - https://docs.chocolatey.org/en-us/create/create-packages#how-do-i-exclude-executables-from-getting-shims #Install-BinFile ##PORTABLE EXAMPLE diff --git a/src/chocolatey/infrastructure.app/templates/ChocolateyReadMeTemplate.cs b/src/chocolatey/infrastructure.app/templates/ChocolateyReadMeTemplate.cs index fd3e36fffd..c401502584 100644 --- a/src/chocolatey/infrastructure.app/templates/ChocolateyReadMeTemplate.cs +++ b/src/chocolatey/infrastructure.app/templates/ChocolateyReadMeTemplate.cs @@ -20,15 +20,15 @@ public class ChocolateyReadMeTemplate { public static string Template = @"## Summary -How do I create packages? See https://chocolatey.org/docs/create-packages +How do I create packages? See https://docs.chocolatey.org/en-us/create/create-packages -If you are submitting packages to the community feed (https://chocolatey.org) +If you are submitting packages to the community feed (https://community.chocolatey.org) always try to ensure you have read, understood and adhere to the create packages wiki link above. ## Automatic Packaging Updates? Consider making this package an automatic package, for the best -maintainability over time. Read up at https://chocolatey.org/docs/automatic-packages +maintainability over time. Read up at https://docs.chocolatey.org/en-us/create/automatic-packages ## Shim Generation Any executables you include in the package or download (but don't call @@ -42,18 +42,18 @@ Shim generation runs whether the package is self-contained or uses automation If the application is a GUI, you should create an empty file next to the exe named 'name.exe.gui' e.g. 'bob.exe' would need a file named 'bob.exe.gui'. -See https://chocolatey.org/docs/create-packages#how-do-i-set-up-shims-for-applications-that-have-a-gui +See https://docs.chocolatey.org/en-us/create/create-packages#how-do-i-set-up-shims-for-applications-that-have-a-gui If you want to ignore the executable, create an empty file next to the exe named 'name.exe.ignore' e.g. 'bob.exe' would need a file named 'bob.exe.ignore'. -See https://chocolatey.org/docs/create-packages#how-do-i-exclude-executables-from-getting-shims +See https://docs.chocolatey.org/en-us/create/create-packages#how-do-i-exclude-executables-from-getting-shims ## Self-Contained? If you have a self-contained package, you can remove the automation scripts entirely and just include the executables, they will automatically get shimmed, which puts them on the path. Ensure you have the legal right to distribute -the application though. See https://chocolatey.org/docs/legal. +the application though. See https://docs.chocolatey.org/en-us/information/legal. You should read up on the Shim Generation section to familiarize yourself on what to do with GUI applications and/or ignoring shims. @@ -64,18 +64,18 @@ You should read up on the Shim Generation section to familiarize yourself functions that you can use, these are sometimes called the helpers. ### Built-In Functions -https://chocolatey.org/docs/helpers-reference +https://docs.chocolatey.org/en-us/create/functions A note about a couple: -* Get-BinRoot - this is a horribly named function that doesn't do what new folks think it does. It gets you the 'tools' root, which by default is set to 'c:\tools', not the chocolateyInstall bin folder - see https://chocolatey.org/docs/helpers-get-tools-location -* Install-BinFile - used for non-exe files - executables are automatically shimmed... - see https://chocolatey.org/docs/helpers-install-bin-file -* Uninstall-BinFile - used for non-exe files - executables are automatically shimmed - see https://chocolatey.org/docs/helpers-uninstall-bin-file +* Get-BinRoot - this is a horribly named function that doesn't do what new folks think it does. It gets you the 'tools' root, which by default is set to 'c:\tools', not the chocolateyInstall bin folder - see https://docs.chocolatey.org/en-us/create/functions/get-toolslocation +* Install-BinFile - used for non-exe files - executables are automatically shimmed... - see https://docs.chocolatey.org/en-us/create/functions/install-binfile +* Uninstall-BinFile - used for non-exe files - executables are automatically shimmed - see https://docs.chocolatey.org/en-us/create/functions/uninstall-binfile ### Getting package specific information -Use the package parameters pattern - see https://chocolatey.org/docs/how-to-parse-package-parameters-argument +Use the package parameters pattern - see https://docs.chocolatey.org/en-us/guides/create/parse-packageparameters-argument ### Need to mount an ISO? -https://chocolatey.org/docs/how-to-mount-an-iso-in-chocolatey-package +https://docs.chocolatey.org/en-us/guides/create/mount-an-iso-in-chocolatey-package ### Environment Variables Chocolatey makes a number of environment variables available (You can access any of these with $env:TheVariableNameBelow): diff --git a/src/chocolatey/infrastructure.app/templates/ChocolateyTodoTemplate.cs b/src/chocolatey/infrastructure.app/templates/ChocolateyTodoTemplate.cs index d03698a29d..047e773c9e 100644 --- a/src/chocolatey/infrastructure.app/templates/ChocolateyTodoTemplate.cs +++ b/src/chocolatey/infrastructure.app/templates/ChocolateyTodoTemplate.cs @@ -1,13 +1,13 @@ // Copyright © 2017 - 2018 Chocolatey Software, Inc // Copyright © 2011 - 2017 RealDimensions Software, LLC -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. -// +// // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -21,98 +21,98 @@ public class ChocolateyTodoTemplate public static string Template = @"TODO -1. Determine Package Use: +1. Determine Package Use: - Organization? Internal Use? - You are not subject to distribution - rights when you keep everything internal. Put the binaries directly - into the tools directory (as long as total nupkg size is under 1GB). - When bigger, look to use from a share or download binaries from an - internal location. Embedded binaries makes for the most reliable use - of Chocolatey. Use `$fileLocation` (`$file`/`$file64`) and + Organization? Internal Use? - You are not subject to distribution + rights when you keep everything internal. Put the binaries directly + into the tools directory (as long as total nupkg size is under 1GB). + When bigger, look to use from a share or download binaries from an + internal location. Embedded binaries makes for the most reliable use + of Chocolatey. Use `$fileLocation` (`$file`/`$file64`) and `Install-ChocolateyInstallPackage`/`Get-ChocolateyUnzip` in tools\chocolateyInstall.ps1. - You can also choose to download from internal urls, see the next - section, but ignore whether you have distribution rights or not, it - doesn't apply. Under no circumstances should download from the - internet, it is completely unreliable. See - https://chocolatey.org/docs/community-packages-disclaimer#organizations + You can also choose to download from internal urls, see the next + section, but ignore whether you have distribution rights or not, it + doesn't apply. Under no circumstances should download from the + internet, it is completely unreliable. See + https://docs.chocolatey.org/en-us/community-repository/community-packages-disclaimer to understand the limitations of a publicly available repository. - Community Repository? + Community Repository? Have Distribution Rights? If you are the software vendor OR the software EXPLICITLY allows - redistribution and the total nupkg size will be under 200MB, you - have the option to embed the binaries directly into the package to - provide the most reliable install experience. Put the binaries - directly into the tools folder, use `$fileLocation` (`$file`/ + redistribution and the total nupkg size will be under 200MB, you + have the option to embed the binaries directly into the package to + provide the most reliable install experience. Put the binaries + directly into the tools folder, use `$fileLocation` (`$file`/ `$file64`) and `Install-ChocolateyInstallPackage`/ `Get-ChocolateyUnzip` in tools\chocolateyInstall.ps1. Additionally, fill out the LICENSE and VERIFICATION file (see 3 below and those files for specifics). - NOTE: You can choose to download binaries at runtime, but be sure + NOTE: You can choose to download binaries at runtime, but be sure the download location will remain stable. See the next section. Do Not Have Distribution Rights? - Note: Packages built this way cannot be 100% reliable, but it's a - constraint of publicly available packages and there is little + constraint of publicly available packages and there is little that can be done to change that. See - https://chocolatey.org/docs/community-packages-disclaimer#organizations - to better understand the limitations of a publicly available + https://docs.chocolatey.org/en-us/community-repository/community-packages-disclaimer + to better understand the limitations of a publicly available repository. Download Location is Publicly Available? - You will need to download the runtime files from their official - location at runtime. Use `$url`/`$url64` and + You will need to download the runtime files from their official + location at runtime. Use `$url`/`$url64` and `Install-ChocolateyPackage`/`Install-ChocolateyZipPackage` in tools\chocolateyInstall.ps1. Download Location is Not Publicly Available? - Stop here, you can't push this to the community repository. You - can ask the vendor for permission to embed, then include a PDF of - that signed permission directly in the package. Otherwise you - will need to seek alternate locations to non-publicly host the + Stop here, you can't push this to the community repository. You + can ask the vendor for permission to embed, then include a PDF of + that signed permission directly in the package. Otherwise you + will need to seek alternate locations to non-publicly host the package. Download Location Is Same For All Versions? You still need to point to those urls, but you may wish to set up something like Automatic Updater (AU) so that when a new version - of the software becomes available, the new package version + of the software becomes available, the new package version automatically gets pushed up to the community repository. See - https://chocolatey.org/docs/automatic-packages#automatic-updater-au + https://docs.chocolatey.org/en-us/create/automatic-packages#automatic-updater-au 2. Determine Package Type: -- Installer Package - contains an installer (everything in template is +- Installer Package - contains an installer (everything in template is geared towards this type of package) -- Zip Package - downloads or embeds and unpacks archives, may unpack - and run an installer using `Install-ChocolateyInstallPackage` as a +- Zip Package - downloads or embeds and unpacks archives, may unpack + and run an installer using `Install-ChocolateyInstallPackage` as a secondary step. -- Portable Package - Contains runtime binaries (or unpacks them as a - zip package) - cannot require administrative permissions to install +- Portable Package - Contains runtime binaries (or unpacks them as a + zip package) - cannot require administrative permissions to install or use - Config Package - sets config like files, registry keys, etc -- Extension Package - Packages that add PowerShell functions to - Chocolatey - https://chocolatey.org/docs/how-to-create-extensions +- Extension Package - Packages that add PowerShell functions to + Chocolatey - https://docs.chocolatey.org/en-us/features/extensions - Template Package - Packages that add templates like this for `choco - new -t=name` - https://chocolatey.org/docs/how-to-create-custom-package-templates + new -t=name` - https://docs.chocolatey.org/en-us/guides/create/create-custom-package-templates - Other - there are other types of packages as well, these are the main package types seen in the wild -3. Fill out the package contents: +3. Fill out the package contents: -- tools\chocolateyBeforeModify.ps1 - remove if you have no processes +- tools\chocolateyBeforeModify.ps1 - remove if you have no processes or services to shut down before upgrade/uninstall -- tools\LICENSE.txt / tools\VERIFICATION.txt - Remove if you are not - embedding binaries. Keep and fill out if you are embedding binaries - in the package AND pushing to the community repository, even if you - are the author of software. The file becomes easier to fill out - (does not require changes each version) if you are the software +- tools\LICENSE.txt / tools\VERIFICATION.txt - Remove if you are not + embedding binaries. Keep and fill out if you are embedding binaries + in the package AND pushing to the community repository, even if you + are the author of software. The file becomes easier to fill out + (does not require changes each version) if you are the software vendor. If you are building packages for internal use (organization, etc), you don't need these files as you are not subject to distribution rights internally. -- tools\chocolateyUninstall.ps1 - remove if autouninstaller can - automatically uninstall and you have nothing additional to do during +- tools\chocolateyUninstall.ps1 - remove if autouninstaller can + automatically uninstall and you have nothing additional to do during uninstall -- Readme.txt - delete this file once you have read over and used +- Readme.txt - delete this file once you have read over and used anything you've needed from here - nuspec - fill this out, then clean out all the comments (you may wish to leave the headers for the package vs software metadata) @@ -120,24 +120,24 @@ anything you've needed from here 4. ChocolateyInstall.ps1: -- For embedded binaries - use `$fileLocation` (`$file`/`$file64`) and +- For embedded binaries - use `$fileLocation` (`$file`/`$file64`) and `Install-ChocolateyInstallPackage`/ `Get-ChocolateyUnzip`. -- Downloading binaries at runtime - use `$url`/`$url64` and +- Downloading binaries at runtime - use `$url`/`$url64` and `Install-ChocolateyPackage` / `Install-ChocolateyZipPackage`. -- Other needs (creating files, setting registry keys), use regular +- Other needs (creating files, setting registry keys), use regular PowerShell to do so or see if there is a function already defined: - https://chocolatey.org/docs/helpers-reference + https://docs.chocolatey.org/en-us/create/functions - There may also be functions available in extension packages, see - https://chocolatey.org/packages?q=id%3A.extension for examples and + https://community.chocolatey.org/packages?q=id%3A.extension for examples and availability. - Clean out the comments and sections you are not using. -5. Test the package to ensure install/uninstall work appropriately. - There is a test environment you can use for this - +5. Test the package to ensure install/uninstall work appropriately. + There is a test environment you can use for this - https://github.com/chocolatey/chocolatey-test-environment 6. Learn more about Chocolatey packaging - go through the workshop at - https://github.com/ferventcoder/chocolatey-workshop + https://github.com/chocolatey/chocolatey-workshop You will learn about - General packaging - Customizing package behavior at runtime (package parameters) diff --git a/src/chocolatey/infrastructure.app/templates/ChocolateyUninstallTemplate.cs b/src/chocolatey/infrastructure.app/templates/ChocolateyUninstallTemplate.cs index 715212260a..8b96826c37 100644 --- a/src/chocolatey/infrastructure.app/templates/ChocolateyUninstallTemplate.cs +++ b/src/chocolatey/infrastructure.app/templates/ChocolateyUninstallTemplate.cs @@ -1,13 +1,13 @@ // Copyright © 2017 - 2018 Chocolatey Software, Inc // Copyright © 2011 - 2017 RealDimensions Software, LLC -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. -// +// // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -25,8 +25,8 @@ public class ChocolateyUninstallTemplate ## NOTE: In 80-90% of the cases (95% with licensed versions due to Package Synchronizer and other enhancements), ## AutoUninstaller should be able to detect and handle registry uninstalls without a chocolateyUninstall.ps1. -## See https://chocolatey.org/docs/commands-uninstall -## and https://chocolatey.org/docs/helpers-uninstall-chocolatey-package +## See https://docs.chocolatey.org/en-us/choco/commands/uninstall +## and https://docs.chocolatey.org/en-us/create/functions/uninstall-chocolateypackage ## If this is an MSI, ensure 'softwareName' is appropriate, then clean up comments and you are done. ## If this is an exe, change fileType, silentArgs, and validExitCodes @@ -51,30 +51,29 @@ public class ChocolateyUninstallTemplate #silentArgs = '-s -u' # Ghost # Note that some installers, in addition to the silentArgs above, may also need assistance of AHK to achieve silence. #silentArgs = '' # none; make silent with input macro script like AutoHotKey (AHK) - # https://chocolatey.org/packages/autohotkey.portable + # https://community.chocolatey.org/packages/autohotkey.portable #validExitCodes= @(0) #please insert other valid exit codes here } -$uninstalled = $false # Get-UninstallRegistryKey is new to 0.9.10, if supporting 0.9.9.x and below, # take a dependency on ""chocolatey-core.extension"" in your nuspec file. -# This is only a fuzzy search if $softwareName includes '*'. Otherwise it is +# This is only a fuzzy search if $softwareName includes '*'. Otherwise it is # exact. In the case of versions in key names, we recommend removing the version # and using '*'. [array]$key = Get-UninstallRegistryKey -SoftwareName $packageArgs['softwareName'] if ($key.Count -eq 1) { - $key | % { + $key | % { $packageArgs['file'] = ""$($_.UninstallString)"" #NOTE: You may need to split this if it contains spaces, see below - + if ($packageArgs['fileType'] -eq 'MSI') { - # The Product Code GUID is all that should be passed for MSI, and very - # FIRST, because it comes directly after /x, which is already set in the + # The Product Code GUID is all that should be passed for MSI, and very + # FIRST, because it comes directly after /x, which is already set in the # Uninstall-ChocolateyPackage msiargs (facepalm). $packageArgs['silentArgs'] = ""$($_.PSChildName) $($packageArgs['silentArgs'])"" - - # Don't pass anything for file, it is ignored for msi (facepalm number 2) - # Alternatively if you need to pass a path to an msi, determine that and + + # Don't pass anything for file, it is ignored for msi (facepalm number 2) + # Alternatively if you need to pass a path to an msi, determine that and # use it instead of the above in silentArgs, still very first $packageArgs['file'] = '' } else { @@ -97,10 +96,10 @@ public class ChocolateyUninstallTemplate } ## OTHER POWERSHELL FUNCTIONS -## https://chocolatey.org/docs/helpers-reference -#Uninstall-ChocolateyZipPackage $packageName # Only necessary if you did not unpack to package directory - see https://chocolatey.org/docs/helpers-uninstall-chocolatey-zip-package -#Uninstall-ChocolateyEnvironmentVariable # 0.9.10+ - https://chocolatey.org/docs/helpers-uninstall-chocolatey-environment-variable -#Uninstall-BinFile # Only needed if you used Install-BinFile - see https://chocolatey.org/docs/helpers-uninstall-bin-file +## https://docs.chocolatey.org/en-us/create/functions +#Uninstall-ChocolateyZipPackage $packageName # Only necessary if you did not unpack to package directory - see https://docs.chocolatey.org/en-us/create/functions/uninstall-chocolateyzippackage +#Uninstall-ChocolateyEnvironmentVariable # 0.9.10+ - https://docs.chocolatey.org/en-us/create/functions/uninstall-chocolateyenvironmentvariable +#Uninstall-BinFile # Only needed if you used Install-BinFile - see https://docs.chocolatey.org/en-us/create/functions/uninstall-binfile ## Remove any shortcuts you added in the install script. "; diff --git a/src/chocolatey/infrastructure.app/templates/NuspecTemplate.cs b/src/chocolatey/infrastructure.app/templates/NuspecTemplate.cs index 4ab6dc8a94..1855eb60cf 100644 --- a/src/chocolatey/infrastructure.app/templates/NuspecTemplate.cs +++ b/src/chocolatey/infrastructure.app/templates/NuspecTemplate.cs @@ -1,13 +1,13 @@ // Copyright © 2017 - 2018 Chocolatey Software, Inc // Copyright © 2011 - 2017 RealDimensions Software, LLC -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. -// +// // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -20,8 +20,8 @@ public class NuspecTemplate { public static string Template = @"<?xml version=""1.0"" encoding=""utf-8""?> -<!-- Read this before creating packages: https://chocolatey.org/docs/create-packages --> -<!-- It is especially important to read the above link to understand additional requirements when publishing packages to the community feed aka dot org (https://chocolatey.org/packages). --> +<!-- Read this before creating packages: https://docs.chocolatey.org/en-us/create/create-packages --> +<!-- It is especially important to read the above link to understand additional requirements when publishing packages to the community feed aka dot org (https://community.chocolatey.org/packages). --> <!-- Test your packages in a test environment: https://github.com/chocolatey/chocolatey-test-environment --> @@ -29,8 +29,8 @@ public class NuspecTemplate This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Reference. Chocolatey uses a special version of NuGet.Core that allows us to do more than was initially possible. As such there are certain things to be aware of: * the package xmlns schema url may cause issues with nuget.exe -* Any of the following elements can ONLY be used by choco tools - projectSourceUrl, docsUrl, mailingListUrl, bugTrackerUrl, packageSourceUrl, provides, conflicts, replaces -* nuget.exe can still install packages with those elements but they are ignored. Any authoring tools or commands will error on those elements +* Any of the following elements can ONLY be used by choco tools - projectSourceUrl, docsUrl, mailingListUrl, bugTrackerUrl, packageSourceUrl, provides, conflicts, replaces +* nuget.exe can still install packages with those elements but they are ignored. Any authoring tools or commands will error on those elements --> <!-- You can embed software files directly into packages, as long as you are not bound by distribution rights. --> @@ -59,7 +59,9 @@ public class NuspecTemplate <authors>__REPLACE_AUTHORS_OF_SOFTWARE_COMMA_SEPARATED__</authors> <!-- projectUrl is required for the community feed --> <projectUrl>https://_Software_Location_REMOVE_OR_FILL_OUT_</projectUrl> - <!--<iconUrl>http://cdn.rawgit.com/[[MaintainerRepo]]/master/icons/[[PackageNameLower]].png</iconUrl>--> + <!-- There are a number of CDN Services that can be used for hosting the Icon for a package. More information can be found here: https://docs.chocolatey.org/en-us/create/create-packages#package-icon-guidelines --> + <!-- Here is an example using Githack --> + <!--<iconUrl>http://rawcdn.githack.com/[[MaintainerRepo]]/master/icons/[[PackageNameLower]].png</iconUrl>--> <!-- <copyright>Year Software Vendor</copyright> --> <!-- If there is a license Url available, it is required for the community feed --> <!-- <licenseUrl>Software License Location __REMOVE_OR_FILL_OUT__</licenseUrl> @@ -72,7 +74,7 @@ public class NuspecTemplate <summary>__REPLACE__</summary> <description>__REPLACE__MarkDown_Okay [[AutomaticPackageNotesNuspec]]</description> <!-- <releaseNotes>__REPLACE_OR_REMOVE__MarkDown_Okay</releaseNotes> --> - <!-- =============================== --> + <!-- =============================== --> <!-- Specifying dependencies and version ranges? https://docs.nuget.org/create/versioning#specifying-version-ranges-in-.nuspec-files --> <!--<dependencies> @@ -83,7 +85,7 @@ public class NuspecTemplate <dependency id="""" /> <dependency id=""chocolatey-core.extension"" version=""1.1.0"" /> </dependencies>--> - <!-- chocolatey-core.extension - https://chocolatey.org/packages/chocolatey-core.extension + <!-- chocolatey-core.extension - https://community.chocolatey.org/packages/chocolatey-core.extension - You want to use Get-UninstallRegistryKey on less than 0.9.10 (in chocolateyUninstall.ps1) - You want to use Get-PackageParameters and on less than 0.11.0 - You want to take advantage of other functions in the core community maintainer's team extension package @@ -105,7 +107,7 @@ public class NuspecTemplate @" -**Please Note**: This is an automatically updated package. If you find it is +**Please Note**: This is an automatically updated package. If you find it is out of date by more than a day or two, please contact the maintainer(s) and let them know the package is no longer updating correctly. "; diff --git a/src/chocolatey/infrastructure/licensing/License.cs b/src/chocolatey/infrastructure/licensing/License.cs index 777d55067e..e54889c6cf 100644 --- a/src/chocolatey/infrastructure/licensing/License.cs +++ b/src/chocolatey/infrastructure/licensing/License.cs @@ -64,7 +64,7 @@ that chocolatey.licensed.dll exists at as is and be successful. You need to download nupkgs from the links in the trial email as your license will not be registered on the licensed repository. Please reference - https://chocolatey.org/docs/installation-licensed#how-do-i-install-the-trial-edition + https://docs.chocolatey.org/en-us/licensed-extension/setup#how-do-i-install-the-trial-edition for specific instructions."); } }