MiKTeX 2.9 exports two COM objects that make it possible to script MiKTeX:
- The MiKTeX session object provides an interface to MiKTeX core functionality. The interface can be used to search for files, gather information about the MiKTeX 2.9 installation and to run MiKTeX 2.9 applications.
- The MiKTeX package manager object provides an interface to the MiKTeX package manager. The interface can be used to install/remove packages and to retrieve informataion about packages.
Getting the MiKTeX 2.9 SDK
The MiKTeX 2.9 SDK can be downloaded from the SDK home page: http://miktex.org/2.9/sdk.aspx
What you need
- a working MiKTeX 2.9 system
- a COM-capable script interpreter (Perl, Ruby, Python, ...) and/or a COM-capable high language compiler (e.g., Microsoft Visual C++)
The SDK contains several samples. Click the Examples tag above to browse the samples online.