Here's a way to get the contents of a DMG file, then throw it away and unmount the disk:
Here's my Hazel rule:
And here's the Automator workflow:
(I know there are similar processes here on the boards — which led me to this — but none of them did quite what I wanted. I hope this'll be helpful for anyone else who finds DMG-packaged installers a nuisance.)