To your second question about autostart function, there are several ways to detect that a volume has been mounted and then used to start an action (for example, starting a program). But all of them require that your software is already installed, so that you can run the daemon to view volumes. I do not assume that a program should do such a thing (it almost never should), but it is a method. I suspect this is not what you are asking for.
The issue that the system automatically starts something based on the volume has been removed with the release of OS X. It is almost impossible to imagine that such behavior was re-added. This is an invitation to a wide range of abuses, and the user has very little benefit. OS X will open the Finder window when a new volume is installed, and you can provide a useful background image for your root directory that will instruct the user on how to start the application.
source share