Windows · Developer Tools
Chocolatey OS Dependency Extension
Chocolatey OS Dependency Extension is a Chocolatey extension for use as a dependency by package maintainers to easily validate OS compatibility.
Version 0.0.1 · by Bill Curran
Official site: github.com
About Chocolatey OS Dependency Extension

### PURPOSE:
**chocolatey-os-dependency.extension** provides easy to remember functions for package creators/maintainers to verify an OS version requirement during package installation. The OS and build versions are checked and if found not compatible, the package installation is aborted. The functions are named Confirm-WinX; where X can be 11, 10, 81, 80, 8, or 7. Additionally the Confirm-WinX function can be used with a minimum build number requirement.
### FUNCTIONS:
* **Confirm-Win11** - Checks for Windows 11 and aborts package install if not. Default build 22000.
* **Confirm-Win10** - Checks for Windows 10 (or 11) and aborts package install if not. Default build 10240.
* **Confirm-Win81** - Checks for Windows 8.1 and aborts package install if not. Default build 9600.
* **Confirm-Win80** - Checks for Windows 8.0 and aborts package install if not. Default build 9200.
* **Confirm-Win8** - Checks for Windows 8.0 or 8.1 and aborts package install if not. Default build 9200.
* **Confirm-Win7** - Checks for Windows 7 and aborts package install if not. Default build 7601.
* **Confirm-WinMinimumBuild** - Checks for a Windows minimum build and aborts package install if not. (Built for the future!)
* **Confirm-WinRequiredBuild** - Checks for a Windows specific build and aborts package install if not. (Built for the future!)
### USAGE:
* Add **Confirm-Win10** to your chocolateyInstall.ps1 script before Install-ChocolateyPackage to abort the install if Windows 10 (or 11) is not present.
* Add **Confirm-Win10 19041** to your chocolateyInstall.ps1 script before Install-ChocolateyPackage to abort the install if Windows 10 build 19041 (version 2004/Vibranium) or higher is not present.
* Add **Confirm-Win11** or **Confirm-Win11 22000** or **Confirm-WinMinimumBuild 22000** to your chocolateyInstall.ps1 script before Install-ChocolateyPackage to abort the install if Windows 11 is not present.
* Add **Confirm-WinRequiredBuild 20348** to your chocolateyInstall.ps1 script before Install-ChocolateyPackage to abort install if Windows Server 2022 is not present.
* Consult this [List of Microsoft Windows versions](https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions) to reference build numbers.
---
**Click here to [Patreon-ize](https://www.patreon.com/bcurran3) the package maintainer.**
How to install Chocolatey OS Dependency Extension
- Click Download — the developer's official website opens in a new tab.
- Download the latest version there and run it. Choose Custom/Advanced where offered, and skip any bundled extras.
- Prefer the command line? With Chocolatey you can install and update it with: choco install chocolatey-os-dependency-extension
- Open Chocolatey OS Dependency Extension once it finishes installing.
Frequently asked questions
Is Chocolatey OS Dependency Extension free to download?
Yes. The Download button sends you to github.com, the developer's official site, where Chocolatey OS Dependency Extension is available to download. Grabware doesn't host or modify any files.
What is the latest version of Chocolatey OS Dependency Extension?
The version listed here is 0.0.1, published /Date(1651. The developer's site always has the newest release.
How do I install Chocolatey OS Dependency Extension from the command line?
With Chocolatey, run: choco install chocolatey-os-dependency-extension. This installs it from the official source and keeps it updated.
Is Chocolatey OS Dependency Extension safe?
Chocolatey OS Dependency 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 OS Dependency Extension
More
March 2014 servicing stack update for Windows 8.1 and Windows Server 2012 R2 (KB2919442)The update fixes some issues in the servicing stack of Windows 8.1 and Windows Server 2012 R2.Chocolatey Compatibility ExtensionExtension package to provide compatibility with older versions of Chocolatey
Update for Universal C Runtime in Windows (KB2999226)Update for Universal C Runtime (CRT) in Windows. Before you install this update, check out the prerequisites section.