The script from Omar's site works for Release code out of the box. If you need to deploy Debug code, change the localdeploy.bat accordingly. Atmel Studio does not export the $(Configuration) property to external tools, at least not yet, therefore the localdeploy.bat is hard coded to the Release mode, but it can be easily changed. The next release of the installation script is going to address this problem.