Please refer this page: https://github.com/cocos2d-x/cocos2dx-win8
Can’t install the visual studio template?
Make sure you already have the path named "Visual C*+ Project" in your computer , it look like this:
C:_name\Documents\Visual Studio 12\Templates\ProjectTemplates\Visual C*+ Project
See more #issue3.
I am sorry for this template installer is very pool, all imporovements for this are welcome.