I guess you might be able to do this. All you are doing is copying a file on the DMG to Applications. You don't need to simulate a drag or anything.
You'd need a rule to monitor the Volumes folder and then descend into the mounted DMGs, match the application in there and copy it. That all said, I'd say this would be dangerous to automate and I'd recommend against it.