Chocolatey Community Coffee Break

Join the Chocolatey Team on our regular monthly stream where we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Learn More

Chocolatey Product Spotlight

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

Learn More

Announcing Chocolatey Central Management 0.10.0

Livestream from
Thursday, 06 October 2022

We recently released our largest update to Chocolatey Central Management so far. Join Gary and Steph to find out more about Chocolatey Central Management and the new features and fixes we've added to this release.

Watch On-Demand
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

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

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

Livestream from
Thursday, 9 June 2022

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

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

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

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

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

Watch On-Demand
Chocolatey Product Spotlight: Chocolatey 1.2.0 and Chocolatey Licensed Extension 5.0.0

Livestream from
Thursday, 03 November 2022

Join Paul and Gary for this months Chocolatey product livestream where we look at the latest release of Chocolatey 1.2.0, Chocolatey Licensed Extension 5.0.0 and shine a spotlight on the new hook scripts functionality. This opens up so many possibilities for Chocolatey CLI users!

Watch On-Demand
Chocolatey Coding Livestream

Livestream from
Tuesday, 29 November 2022

Join Josh as he adds the ability to manage Chocolatey GUI config and features with the Chocolatey Ansible Collection.

Watch On-Demand
Introduction into Chocolatey with Veeam

Webinar from
Tuesday, 13 December 2022

Join Gary, Paul, and Maurice as they introduce and demonstrate how to use Chocolatey! Questions will be answered live in an Ask Me Anything format.

Watch On-Demand



Downloads of v 23.5:


Last Update:

14 May 2023

Package Maintainer(s):

Software Author(s):

  • Christian Schenk


miktex tex latex pdf typesetting foss embedded


  • 1
  • 2
  • 3

23.5 | Updated: 14 May 2023



Downloads of v 23.5:



Software Author(s):

  • Christian Schenk

MiKTeX 23.5

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests

Validation Testing Passed

Verification Testing Passed


Scan Testing Successful:

No detections found in any package files

Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install MiKTeX, run the following command from the command line or from PowerShell:


To upgrade MiKTeX, run the following command from the command line or from PowerShell:


To uninstall MiKTeX, run the following command from the command line or from PowerShell:


Deployment Method:


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

1. Enter Your Internal Repository Url

(this should look similar to

2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

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

3. Copy Your Script

choco upgrade miktex -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

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

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

choco upgrade miktex -y --source="'INTERNAL REPO URL'" 

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

Exit $exitCode

- name: Install miktex
    name: miktex
    version: '23.5'
    state: present

See docs at

chocolatey_package 'miktex' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '23.5'

See docs at

cChocoPackageInstaller miktex
    Name     = "miktex"
    Version  = "23.5"
    Source   = "INTERNAL REPO URL"

Requires cChoco DSC Resource. See docs at

package { 'miktex':
  ensure   => '23.5',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',

Requires Puppet Chocolatey Provider module. See docs at

4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.


This package is likely a meta/virtual (*) or an installer (*.install) or portable (*.portable) application package.

  • Meta/virtual (*) - has a dependency on the *.install or the *.portable package - it is provided for discoverability and for other packages to take a dependency on.
  • Portable (*.portable/*.commandline (deprecated naming convention)/*.tool (deprecated naming convention)) - usually zips or archives that require no administrative access to install.
  • Install (*.install/*.app (deprecated naming convention)) - uses native installers, usually requires administrative access to install.

Learn more about chocolatey's distinction of installed versus portable apps and/or learn about this kind of package.

Package Approved

This package was approved as a trusted package on 14 May 2023.


MiKTeX (pronounced mick-tech) is an up-to-date implementation of TeX/LaTeX and related programs. TeX is a typesetting system written by Donald Ervin Knuth who says that it is intended for the creation of beautiful books - and especially for books that contain a lot of mathematics.

MiKTeX comes with TeXworks, a TeX frontend which you can use it to edit and preview LaTeX documents.

The sky is the limit when it comes to TeX/LaTeX, with drawings, chemical equations, syntax trees, circuit diagrams, mathematical expressions, proof systems, chessboards and more! (Image source)

MiKTeX's integrated package manager installs missing components from the Internet, if required.

Package Set Parameter (optional)

  • /Set:(option) - Download and install the essential, basic (default), or complete set of TeX packages/tools.
  • /Mirror:(URL) - This will use the (url), a CTAN mirror to download MiKTeX. It is recommended to only use this if the default mirror as chosen by the MiKTeX setup utility doesn't work for some reason.* Hint: Including /Mirror (valid or not) will write the list of "official", URLs to the Chocolatey log.
  • /ThisUser - This will install MiKTeX for only this user. **Note: This can cause confusion for other users as Chocolatey will claim MiKTeX is installed but other users will (potentially) not be able to see/use it.

Custom Repository Parameter (optional)

This package has only the MiKTeX setup utility embedded. Any new install of MiKTeX involves using the setup utility to download and create a (temporary by default) repository and then installing from that repository. This Chocolatey package can both establish a more permenant repository (for sharing with other computers) and use a specific (possibly private) repository from which to install MiKTeX. Thus a single computer within a network could download MiKTeX from the internet and create a repository, and all other computers on the network could use that repository to install MiKTeX saving external bandwidth.

Using a Custom Repository:

  • /RepoPath:(path) -- with a local or UNC path. This will install or update MiKTeX from a specific existing repository. No attempt to update the repository itself will be made. Upgrades should use this repository in the future by default. Note: If both /RepoPath (with a UNC path) and /Mirror are used, /Mirror will be ignored.

Creating a Custom Repository:

  • /RepoPath:(path) - with a local directory as (path). This will create (or update) the repository in the location. MiKTeX will also be installed. Note: The repository will not be shared or accessible to other systems without additional administrator actions and will not be removed on an uninstall.


  • On a server, you might use:

choco install miktex.install --params '"/Set:complete /RepoPath:""c:\Shared Files\MiKTeX-Repo"""'
Double-double quotes (i.e. ""path"") are necessary for paths containing a space.

  • On a workstation in the same network, you might use:

choco install miktex.install --params '"/RepoPath:\\localserver\MiKTeX-Repo"'

# This is just a virtual package for miktex.install

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

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

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
MiKTeX 23.4 1790 Sunday, April 30, 2023 Approved
MiKTeX 22.10 12859 Thursday, November 3, 2022 Approved
MiKTeX 22.8.28 7496 Tuesday, August 30, 2022 Approved
MiKTeX 22.7.30 4730 Saturday, August 6, 2022 Approved
MiKTeX 22.7 2828 Saturday, July 23, 2022 Approved
MiKTeX 22.3 8658 Saturday, March 26, 2022 Approved
MiKTeX 22.1 6164 Wednesday, February 2, 2022 Approved
MiKTeX 21.12 4838 Wednesday, December 29, 2021 Approved
MiKTeX 21.10 6169 Saturday, November 6, 2021 Approved
MiKTeX 21.8 6202 Thursday, September 16, 2021 Approved
MiKTeX 21.6.28 9372 Tuesday, July 13, 2021 Approved
MiKTeX 21.3 9501 Saturday, April 3, 2021 Approved
MiKTeX 21.2 5694 Wednesday, February 24, 2021 Approved
MiKTeX 21.1 6453 Wednesday, January 20, 2021 Approved
MiKTeX 20.12 3719 Monday, December 28, 2020 Approved
MiKTeX 5029 Friday, November 20, 2020 Approved
MiKTeX 20.11 3624 Monday, November 2, 2020 Approved
MiKTeX 1152 Friday, October 30, 2020 Approved
MiKTeX 20.10 2011 Sunday, October 25, 2020 Approved
MiKTeX 20.7 8096 Saturday, August 8, 2020 Approved
MiKTeX 209 Tuesday, July 28, 2020 Approved
MiKTeX 20.6.29 5483 Sunday, July 19, 2020 Approved
MiKTeX 2.9.7219 41007 Wednesday, October 9, 2019 Approved
MiKTeX 2.9.7216 2313 Sunday, October 6, 2019 Approved
MiKTeX 2.9.7152 18097 Saturday, August 3, 2019 Approved
MiKTeX 2.9.7100 13105 Tuesday, June 11, 2019 Approved
MiKTeX 2.9.7086 4470 Wednesday, May 29, 2019 Approved
MiKTeX 2.9.7079 2958 Wednesday, May 22, 2019 Approved
MiKTeX 2.9.7031.01 4778 Thursday, May 9, 2019 Approved
MiKTeX 2.9.6942 6709 Sunday, February 3, 2019 Approved
MiKTeX 2.9.6850 6601 Thursday, October 4, 2018 Approved
MiKTeX 2.9.6813 2955 Saturday, September 8, 2018 Approved
MiKTeX 2.9.6643 8393 Monday, March 12, 2018 Approved
MiKTeX 2.9.6615 2351 Wednesday, February 21, 2018 Approved
MiKTeX 2.9.6520 6247 Thursday, November 9, 2017 Approved
MiKTeX 2.9.6361 7564 Saturday, June 3, 2017 Approved
MiKTeX 2.9.6326 2492 Saturday, April 29, 2017 Approved
MiKTeX 2.9.6236 4512 Sunday, January 29, 2017 Approved
MiKTeX 2.9.6219 1886 Thursday, January 12, 2017 Approved
MiKTeX 2.9.6161.01 2489 Tuesday, November 15, 2016 Approved
MiKTeX (Portable) 2.9.6161 479 Tuesday, November 15, 2016 Approved
MiKTeX 2.9.6069.3 2075 Wednesday, October 12, 2016 Approved
MiKTeX 2.9.6069.2 2615 Friday, September 9, 2016 Approved
MiKTeX 2.9.6069.1 1365 Monday, August 22, 2016 Approved
MiKTeX 2.9.6069 1397 Tuesday, August 16, 2016 Approved
MiKTeX 2.9.6022 991 Tuesday, June 28, 2016 Approved
MiKTeX 2.9.5997 450 Saturday, June 4, 2016 Approved
MiKTeX 2.9.5987 431 Wednesday, May 25, 2016 Approved
MiKTeX 2.9.5872 1860 Monday, February 8, 2016 Approved
MiKTeX 2.9.5857 959 Saturday, January 23, 2016 Approved
MiKTeX 2.9.5823.01 747 Wednesday, January 13, 2016 Approved
MiKTeX 2.9.5721 1580 Sunday, September 27, 2015 Approved
MiKTeX 2.9.5105 3755 Tuesday, January 14, 2014 Approved
MiKTeX 2.9.4813 922 Wednesday, July 31, 2013 Approved
Discussion for the MiKTeX Package

Ground Rules:

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