Dmg files

Does anyone know how to remove dmg files from my desktop after installation? I have tried ejecting, moving to trash and emptying it, starting in safe mode and doing the same, and updating my software to latest version. Yet after all of that, the dmg files keep returning to my desktop.



Posted on Jul 23, 2023 6:44 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 23, 2023 9:20 PM

jacklink wrote:

Got it.

Any way to get them off my desktop? Or are they meant to just be there in perpetuity?


I think Barney-15E nailed it.


When you drag an application into the Dock, you're not actually copying the application into the Dock. You're just creating a reference that says "Go access this file at its original location."


If

  • That original location was on a mounted disk image
  • The disk image is not currently mounted
  • The disk image file is still available

then the system will helpfully re-mount the disk image when you try to access the file.


I take advantage of this for some documents that I keep in an encrypted .DMG file.


What you need to do to stop this happening is to

  • Install Chrome and Capture One 22 in your Applications folder (if they aren't there already). You might have to run an installer, or it might be as easy as dragging-and-dropping the application icon from the mounted .DMG volume to the Applications folder on your startup drive. Usually it will be obvious which.
  • Drag the Chrome and Capture One 22 icons out of your Dock, dropping them anywhere else. This will not get rid of the applications – just the old shortcuts that point to the applications on the .DMGs.
  • Drag the Chrome and Capture One 22 icons from the Applications folder on your startup disk to the Dock.


Now you can unmount the .DMG volumes and they will not keep re-appearing whenever you run the programs. You can also trash the .DMG files if you like, though my personal preference is to save .DMG installation kits in case I ever need to reinstall the program in question. Either way, the .DMGs will be out of your hair.

19 replies
Question marked as Top-ranking reply

Jul 23, 2023 9:20 PM in response to jacklink

jacklink wrote:

Got it.

Any way to get them off my desktop? Or are they meant to just be there in perpetuity?


I think Barney-15E nailed it.


When you drag an application into the Dock, you're not actually copying the application into the Dock. You're just creating a reference that says "Go access this file at its original location."


If

  • That original location was on a mounted disk image
  • The disk image is not currently mounted
  • The disk image file is still available

then the system will helpfully re-mount the disk image when you try to access the file.


I take advantage of this for some documents that I keep in an encrypted .DMG file.


What you need to do to stop this happening is to

  • Install Chrome and Capture One 22 in your Applications folder (if they aren't there already). You might have to run an installer, or it might be as easy as dragging-and-dropping the application icon from the mounted .DMG volume to the Applications folder on your startup drive. Usually it will be obvious which.
  • Drag the Chrome and Capture One 22 icons out of your Dock, dropping them anywhere else. This will not get rid of the applications – just the old shortcuts that point to the applications on the .DMGs.
  • Drag the Chrome and Capture One 22 icons from the Applications folder on your startup disk to the Dock.


Now you can unmount the .DMG volumes and they will not keep re-appearing whenever you run the programs. You can also trash the .DMG files if you like, though my personal preference is to save .DMG installation kits in case I ever need to reinstall the program in question. Either way, the .DMGs will be out of your hair.

Jul 23, 2023 6:55 PM in response to jacklink

.dmg files are just disk image files. They don't move or replicate themselves.


If a .dmg file isn't opened up and mounted, and you have permissions to delete it, you should be able to drag it to the Trash and empty the Trash. If that doesn't work, there may be some application on your Mac which is actively replacing the .dmg files. What application would do this? To me, that would be a potential cause of concern.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Dmg files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.