Frequently the apple script would execute before the disk image had been fully mounted, and would fail. We now try to wait for the disk to be mounted first.
Configure our use of the CPack DragNDrop generator to specify a custom background image and script.