Skip to content

Commit b63496f

Browse files
committed
Create 2025-08-05-msi-and-mst-files.md
1 parent 83f629f commit b63496f

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
layout: post
3+
title: "MSI and MST files"
4+
description: "A (very) short overview of how MSI and MST files work together..."
5+
date: 2025-08-05 23:59
6+
author: Robert Muehsig
7+
tags: [Windows, Installer]
8+
language: en
9+
---
10+
11+
{% include JB/setup %}
12+
13+
*This is more of a "Today-I-Learned" post and not a "full-blown How-To article." If something is completely wrong, please let me know – thanks!*
14+
15+
# What is an MSI?
16+
17+
Let's start simple: An __MSI__ (Microsoft Installer) is a package used to install software on Windows. The MSI contains everything needed to install the software, such as files, registry changes, and custom actions.
18+
19+
An MSI also includes *properties*—for example, the install location or custom values that need to be applied during installation.
20+
21+
You can install an MSI interactively (by double-clicking it) or by using the `msiexec` command.
22+
23+
A more complex `msiexec` command can look like this:
24+
25+
```
26+
msiexec /qb /i "installer.msi" APPLICATIONFOLDER="C:\Program Files\customSoftware" SOMEPROP="SomeValue" SOMEOTHERPROP="SomeOtherValue"
27+
```
28+
29+
# Ok... and what is an MST?
30+
31+
An __MST__ (Microsoft Transform) is a file that contains a set of modifications for an MSI installation. All those properties (and more) that you would pass via command line can be "baked into" an MST file.
32+
33+
You can apply an MST during installation like this:
34+
35+
36+
```
37+
msiexec /i setup.msi TRANSFORMS=custom.mst /qn
38+
```
39+
40+
41+
# Pros / Cons
42+
43+
**Pros:**
44+
45+
If you want to apply the same settings across multiple installations and keep them stored in one place, an MST is a good solution.
46+
47+
**Cons:**
48+
49+
The MST file, like the MSI itself, is a binary file and can only be edited with tools like [Orca](https://learn.microsoft.com/en-us/windows/win32/msi/orca-exe).
50+
51+
Both file formats are quite old, but I recently learned that **MST** files are still a thing—and quite useful if you're dealing with automated or enterprise software deployments.
52+
53+
Hope this helps!

0 commit comments

Comments
 (0)