File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Difference between .dmg and .app" Watch "Difference between .dmg and .app" New topic
Author

Difference between .dmg and .app

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10375
    
    8

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
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
.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: 10375
    
    8

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

Joined: Nov 08, 2003
Posts: 3479

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

Joined: Jan 10, 2002
Posts: 61217
    
  66

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Difference between .dmg and .app