Grabware

Windows · Developer Tools

Chocolatey Misc Helpers Extension

Chocolatey Misc Helpers Extension is a collection of helper functions for package creators/maintainers.

Version 0.0.4 · by Bill Curran

Download

Official site: github.com

About Chocolatey Misc Helpers Extension

---

### [choco://chocolatey-misc-helpers.extension](choco://chocolatey-misc-helpers.extension)

To use choco:// protocol URLs, install [(unofficial) choco:// Protocol support ](https://chocolatey.org/packages/choco-protocol-support)

---

## **chocolatey-misc-helpers.extension** provides helper functions to be used in Chocolatey install/uninstall scripts by package creators/maintainers.

These didn't fit into the concept scope of my other extensions so I started this miscellaneous collection and will add to it as "needed."

### HELPERS:

* **Start-CheckandStop** - Checks for and stops a process if running. Creates variables to easily restart the process after a package upgrade. Useful for installers that fail if the program is running, i.e. KeePass, uTorrent, etc. or for stopping programs that automatically run after install, i.e. Skype, SuMo, Ellp, etc. as well as for programs that will stop running during an upgrade and then not return to a running state post upgrade, i.e. Plex Media Server, etc. [Screenshot](https://cdn.staticaly.com/gh/bcurran3/ChocolateyPackages/master/chocolatey-misc-helpers.extension_extras/chocolatey-misc-helpers.extension_screenshot.png)

* **Start-CheckandThrow** - Checks if a process is running and aborts installation/upgrade if so. [Screenshot](https://cdn.staticaly.com/gh/bcurran3/ChocolateyPackages/master/chocolatey-misc-helpers.extension_extras/chocolatey-misc-helpers.extension_screenshot.png)

* **Start-WaitandStop** - Starts a background process to stop a (foreground) process - quits after 5 minutes or after the process gets stopped. Useful to stop additional pop-up programs during installation. [Screenshot](https://cdn.staticaly.com/gh/bcurran3/ChocolateyPackages/master/chocolatey-misc-helpers.extension_extras/chocolatey-misc-helpers.extension_screenshot.png)

* **Start-WaitandStopActual** - (do not directly use) Called by Start-WaitandStop to make Start-WaitandStop simple to use.

* **Test-Dependency** - Provides a way to verify a dependency is installed. Does NOT check version. Returns True/False.

[Screenshot](https://cdn.staticaly.com/gh/bcurran3/ChocolateyPackages/master/chocolatey-misc-helpers.extension_extras/Test-Dependency_screenshot.png)

* **Test-URL** - Checks if a (download) URL is valid. Returns True/False. Provides a way to verify a download link and switch to an alternate if the primary is bad. Reasoning: Some software developers move program_version.exe to an archival download directory once the version has been superceded. Instead of a package failing when the download link changes to the archived location, you can now define that new archival download link as an alternative/secondary download link.

* **Read comments in the scripts for help implementing.**

### USAGE:

* Start-CheckandStop "ProcessName"

* Start-CheckandThrow "ProcessName"

* Start-WaitandStop "ProcessName"

* Test-Dependency "DependencyPackageName"

How to install Chocolatey Misc Helpers Extension

  1. Click Download — the developer's official website opens in a new tab.
  2. Download the latest version there and run it. Choose Custom/Advanced where offered, and skip any bundled extras.
  3. Prefer the command line? With Chocolatey you can install and update it with: choco install chocolatey-misc-helpers-extension
  4. Open Chocolatey Misc Helpers Extension once it finishes installing.
How to install Windows software with Chocolatey

Frequently asked questions

Is Chocolatey Misc Helpers Extension free to download?

Yes. The Download button sends you to github.com, the developer's official site, where Chocolatey Misc Helpers Extension is available to download. Grabware doesn't host or modify any files.

What is the latest version of Chocolatey Misc Helpers Extension?

The version listed here is 0.0.4, published /Date(1598. The developer's site always has the newest release.

How do I install Chocolatey Misc Helpers Extension from the command line?

With Chocolatey, run: choco install chocolatey-misc-helpers-extension. This installs it from the official source and keeps it updated.

Is Chocolatey Misc Helpers Extension safe?

Chocolatey Misc Helpers Extension downloads directly from the developer. As always, scan the installer with your antivirus and choose Custom setup to skip any bundled extras.

Alternatives to Chocolatey Misc Helpers Extension

More