ExplainerSoftware Installation

EXE, MSI, DMG, PKG and APK files explained

What the file endings .exe, .msi, .dmg, .pkg and .apk mean, which system each belongs to, and how to open or install them safely.

Applies to
  • Any device

Rate this guide

When you download a program, the file ends in a short code such as .exe or .dmg. That ending tells you which kind of computer or phone the file is for and how to use it. The five you meet most often are explained here.

The core idea

Each system has its own way of packaging software. A file made for one system will not run on another. The ending after the last dot in the file name (the file extension) shows which system the file is for. If Windows hides extensions, open File Explorer, select View, then turn on File name extensions. In Windows 11 it is under View > Show; in Windows 10 it is a checkbox on the View tab.

One file type for each system3 numbered steps, one under the other. The full text follows the picture.One file type for each system1Windows.exe programs and .msiinstaller packages2Mac.dmg disk images and .pkginstaller packages3Android.apk app packages, normallyvia Google Play
Match the file ending to your device.
Text version of this diagram
  1. Windows: .exe programs and .msi installer packages
  2. Mac: .dmg disk images and .pkg installer packages
  3. Android: .apk app packages, normally via Google Play

The five file types

What each file type is and how it is used
EndingSystemWhat it isWhat you do
.exeWindowsAn executable file: a program, or the installer program for a larger oneDouble-click it and follow the screens
.msiWindowsA Windows Installer package: a set of instructions Windows follows to install a programDouble-click it and follow the screens
.dmgMacA disk image: a virtual disk that opens like a drive and holds an appOpen it, then drag the app to Applications
.pkgMacAn installer package that places files where they belongOpen it and follow the installer
.apkAndroidAn Android app packageNormally you never handle it: Google Play installs apps for you

EXE and MSI on Windows

A .exe file runs code on your computer. That is why it matters where it came from. Many downloads are an .exe installer that sets up the real program. An .msi file is a more standard package, often used by businesses. For a home user, the steps are the same: double-click, approve the prompt and follow the screens. Windows asks Do you want to allow this app to make changes to your device? because installing changes the system. Select Yes only for a file you chose to download.

DMG and PKG on a Mac

A .dmg file appears as a new disk on your desktop or in the Finder sidebar. Google's instructions for Chrome on a Mac are typical: open the file, drag the app to the Applications folder, then eject the disk image in the Finder sidebar. Mozilla warns against opening Firefox directly from the disk image, because that can lose data and settings. A .pkg file works like a Windows installer: you open it and it walks you through the steps.

APK on Android

Apps from Google Play are installed for you, so you rarely see an APK file. If a website offers you an APK, you are installing outside Google Play. Google warns that if you download apps from unknown sources, your device and personal information can be at risk.

Treat an APK from a website with care

Install an APK only if you trust the maker and got the file from their official site. Never install one because a message, pop-up or caller told you to. Menu names vary by maker, so search Settings for unknown apps to see which apps are allowed to install files. Turn the permission off again afterward.

What these files do not tell you

The ending shows the kind of file, not whether it is safe. A harmful program can be an .exe, and so can a real one. What makes a download trustworthy is its source and its publisher. On a Mac, Apple says Gatekeeper checks the developer's signature and that the software has not been altered, and requires notarization by default in macOS Catalina and later. On Windows, the prompt shows the publisher name. See how to install software safely for the full routine.

Other types you may see

A .zip file is a folder of compressed files, not an installer. Open it and look inside. A document that is really an .exe is a warning sign, for example invoice.pdf.exe.

What this means for you

Frequently asked questions

Can I open an EXE file on a Mac or a phone?

No. An EXE file is built for Windows. Look for the Mac or Android version of the program instead.

Should I delete the installer after installing?

Yes, once the program works. The installer is no longer needed. On a Mac, also eject the disk image after copying the app.

What is the difference between EXE and MSI?

Both can install Windows software. An EXE is a program that can do anything its maker wrote. An MSI follows the standard Windows Installer instructions. You use them the same way.

Why does my browser warn about a download?

Browsers warn about file types that can run code. The warning is a reason to check where the file came from, not a reason to ignore it.

Was this guide helpful?

Choose from 1 star (not helpful) to 5 stars (very helpful)

Rating this guide needs JavaScript. You can send feedback on the contact page instead.

Official resources used

Pages consulted while preparing this guide. Check them for the latest details.

Need more help?

If this guide did not solve your problem, send us a message and tell us what you tried.

Contact us

Beware of fake support

Real support never asks you to call an unfamiliar number, pay with gift cards or let a stranger control your computer.

Read how to stay safe online