Lots of good points in this thread. I've re-thought how this should work.
- Can You Delete Dmg Files After Installing
- Os X Dmg File
- Windows Files I Can Delete
- Can We Delete Dmg Files After Installation
Can You Delete Dmg Files After Installing
![Windows files i can delete Windows files i can delete](/uploads/1/3/4/3/134376277/283840916.png)
My problem is that my downloads folder gets cluttered with dmg files. I can't remember which ones I've already installed. Some of them I have opened and installed, but I've forgotten to move them out of my downloads folder. Some of them I downloaded but haven't opened yet.
Os X Dmg File
My new version of the script moves the dmg file when it is mounted. To use it, save this script to '/Library/Scripts/Folder Action Scripts/' and attach this folder action script to the /Volumes directory. Ideally, my script would trigger when you eject the disk image, but by then it's too late; the disk image is gone, and there's nothing left for AppleScript to process. I figure triggering on mount was pretty good, since I really wanted to know what dmg files I had opened or not.
Windows Files I Can Delete
To answer your question(s), generally speaking, yes, you can delete the container file whether it be a.pkg,.dmg or.zip file. This of course assumes that all content of the container file has been installed. If you have many files and folders you want to securely delete, an encrypted disk image is a good solution. You can move the files and folders you want to delete into the disk image, lock the image, and then delete the.dmg file. The disk image encrypts the files so they’re unrecoverable. If the files’ size is different, they simply aren’t duplicated and you can safely ignore them. But if the file size also matches bit by bit, this is most probably a case of duplicates and you should carefully review all the suspect files. This was a neat little tip to further refine the suspected duplicate DMG files into a subset. Auto-delete a DMG file when ejecting a disk image. Yes, of course it's a very good idea to keep the.dmg's,.zip's, etc. That you might need in the future; but the internet-enabled disk images were cool, anyway (probably, they don't work anymore for security reasons; well, a.zip is almost equivalent, anyway).
Can We Delete Dmg Files After Installation
Most of you didn't want to delete the dmg file. That's a good idea. My script now moves it to a dmg_archive folder. Feel free to change this to suit your needs.