The DMG file extension was specifically designed for Macintosh computers, and users are likely to have a lot of trouble if trying to use them on a Windows device. zip file format permits many compression algorithms, though DEFLATE is the most common. zip file may contain one or more files or directories that may have been compressed. ZIP is an archive file format that supports lossless data compression. Mac systems treat DMG in the same way they would treat an inserted disc, and they instantly try to open or 'run' the file. The file contains raw data that is usually both encrypted and compressed. The DMG file is essentially a mountable disc image that shows up on your desktop when opened. In most cases, the DMG file is used to give the Mac devices the ability to install different types of files and software originating from the internet.
The DMG file extension was created by Apple and is primarily used on Macintosh computers and devices.