Adding Photoshop CC

Ok, so this is a working cask, but I'm also looking for some guidance on how to make express things a bit more nicely => see line comments
Ok, so running the following should uninstall it without gui:

    /Applications/Utilities/Adobe Application Manager/core/Adobe Application Manager.app/Contents/MacOS/PDApp" --mode=silent --action=uninstall --deploymentFile=Deployment.xml

I assume that after the install the dmg will be unmounted? If yes, where would be a good place to store this xml file?