if not exist %UserProfile%\Documents\"Visual Studio 2015"\Templates\ItemTemplates\Regra.zip (
xcopy %cd:bin\Debug=Artefatos\Regra.zip% %UserProfile%\Documents\"Visual Studio 2015"\Templates\ItemTemplates\
)
The code above is a command line which is executed when build a project. It installs a template I've made for Visual Studio C# and it only installs if not installed yet. This code is working perfectly, but it don't update the template, it means if I make any change on the template it will continue installing only for who have not installed yet. I've tried do it checking the file hash, but unsuccessfully. Could someone help me with this question?