This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Mac OS and the fly likes Difference between .dmg and .app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Difference between .dmg and .app" Watch "Difference between .dmg and .app" New topic

Difference between .dmg and .app

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167

Someone was mentioning about turning a jar into an app in another thread and that caused a bit of a confusion for me.

I noticed that when I download some "installable" it is named .dmg and when I execute the application it, it is an .app file. Would I be correct in thinking this similar to .msi and .exe on windoze?

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41060
.app is like .exe, but .dmg is a disk image, not an installer. If you double-click a disk image it will be mounted on the desktop like any other readable device. There may be an option to have an application (possibly an installer) run automatically upon mounting a disk image, but that's not the norm.

Ping & DNS - my free Android networking tools app
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167

Oh ok. Got it now.
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3476

Why there is DMG in the first place? what is the purpose of treating a software as a device?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60752

Think of a zip file that acts like a mountable volume.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Difference between .dmg and .app
Similar Threads
Upgrading eclipse on Mac
MySQL - Best way to install
About the new Mac App Store
Need help decompiling version 50 class files
random numbers, returns a negative number?